Search

You searched for the word(s): userid:655568

Matching Posts

  • Attaching a Detailsiew to an Email

    Ive got a page with three text boxes subject, sender and body. The page sends emails to a set address and woorks fine. I want to add a gridview to the page with a linked detailsview. When the user selects the item in the gridview, it is then displayed in more detail in the detailsview. Can anyone suggest how i go about attaching the detailsview to the email, so that when the user click send, it will send the email together with the data from the detailsview to me. heres my code for the send button
    Posted to Data Presentation Controls (Forum) by kingbal on 5/2/2006
  • Attaching a detailsview to an email

    Hi guys, ive got an email page with three text boxes for sender, subject and body. The page works fine and the recipient email address recieves them; i want to add a detailsview to the page, and i want this grid to be sent along with the subject and body, maybe even in the body. heres my code for the 'Send' button: protected void cmdSend_Click( object sender, EventArgs e) { SmtpClient Mail = new SmtpClient ( "SMTPClient" ); Mail.Send( txtSender.Text, "Admin@myorg.com " , txtSubject.Text, txtBody
    Posted to Web Forms (Forum) by kingbal on 5/2/2006
  • Attaching a detailsview to an Email

    Hi guys, ive currently got an email page with 3 text boxes for sender, subject and body. The 'send email' button has the following code to send the email to the admin@myorg.com as shown below: protected void cmdSend_Click( object sender, EventArgs e) { SmtpClient Mail = new SmtpClient ( "smtpClient" ); Mail.Send( txtSender.Text, admin@myorg.com , txtSubject.Text, txtBody.Text); } Now this works fine and the page can send emails. Ive got a detailsview table with data that i will add to the page. How
    Posted to Web Forms (Forum) by kingbal on 5/2/2006
  • Re: Insert and Update problems with detailsview

    Well i removed the CarID from the insert parameters, and still when i try to insert i get : Incorrect syntax near 'nvarchar'. If i try to edit and update, i get: Incorrect syntax near 'nvarchar'. Must declare the scalar variable "@CarID". I then removed all of the update parameters as you said and tried to update; this time, i got this error message relating to another of the fields in the table: Incorrect syntax near 'nvarchar'. Must declare the scalar variable "@Fuel_Type". then tryin to insert
    Posted to Data Presentation Controls (Forum) by kingbal on 5/2/2006
  • Re: Insert and Update problems with detailsview

    < asp : DetailsView ID ="DetailsView1" runat ="server" AutoGenerateRows ="False" DataKeyNames ="CarID" DataSourceID ="SqlDataSource1" Height ="50px" Width ="125px"> < Fields > < asp : BoundField DataField ="CarID" HeaderText ="CarID" ReadOnly ="True" SortExpression ="CarID" /> < asp : BoundField DataField ="Make" HeaderText ="Make" SortExpression ="Make" /> < asp : BoundField DataField ="Model" HeaderText ="Model" SortExpression ="Model" /> < asp : BoundField DataField
    Posted to Data Presentation Controls (Forum) by kingbal on 5/1/2006
  • Re: Insert and Update problems with detailsview

    Yea i do the primary key is in Data key names, any other ideas? cheers
    Posted to Data Presentation Controls (Forum) by kingbal on 5/1/2006
  • Insert and Update problems with detailsview

    Ive got a detailsview on my main page thats linked to a table in my sql database. When setting up the data source, i checked the box to generate Insert, Update and Delete statements. However, when i run the page and try to update or insert data, i get this error: Incorrect syntax near 'nvarchar'. Must declare the scalar variable "@CarID". CarID is the primary key of the table. Anyone know what the problem is here and how i can rectify? thanks guys
    Posted to Data Presentation Controls (Forum) by kingbal on 5/1/2006
  • Update and Insert problems with detailsview

    Ive dropped a detailsview onto a page, and linked it to a table. When i run it, the table shows the data fine, but i cant insert or update any of the data. I get this error: Incorrect syntax near 'nvarchar'. Must declare the scalar variable "@CarID". What does this mean and how can i get the detailsview to allow updates and inserts? CarID is the primary key of the table by the way. thanks guys
    Posted to Data Presentation Controls (Forum) by kingbal on 5/1/2006
  • Re: Automatic Role Assignment?

    Cheers etheren worked like a dream!
    Posted to Security (Forum) by kingbal on 5/1/2006
  • Automatic Role Assignment?

    Hi, im currently making a site that has two user authentication roles, members and admin. Ive added a create user wizard to one of the pages, but when i sign a new user up, they are not assigned a role and hence can access both admin and members areas. How would i go about setting it up so that all new users that are created through the wizard are automatically assigned the members role? thanks in advance! Jo
    Posted to Security (Forum) by kingbal on 5/1/2006
Page 1 of 1 (10 items)