Click here to Skip to main content
16,004,969 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRe: Help with updating database with values in template field in gridview... Pin
Cavallmw8-Jun-09 4:36
Cavallmw8-Jun-09 4:36 
QuestionWindows 2003 64 bit IIS Manager - ASP.NET tab missing Pin
devvvy5-Jun-09 5:07
devvvy5-Jun-09 5:07 
AnswerRe: Windows 2003 64 bit IIS Manager - ASP.NET tab missing Pin
devvvy5-Jun-09 5:10
devvvy5-Jun-09 5:10 
GeneralRe: Windows 2003 64 bit IIS Manager - ASP.NET tab missing Pin
Manas Bhardwaj5-Jun-09 5:37
professionalManas Bhardwaj5-Jun-09 5:37 
AnswerRe: Windows 2003 64 bit IIS Manager - ASP.NET tab missing Pin
Abhijit Jana5-Jun-09 5:42
professionalAbhijit Jana5-Jun-09 5:42 
GeneralRe: Windows 2003 64 bit IIS Manager - ASP.NET tab missing [modified] Pin
devvvy5-Jun-09 8:11
devvvy5-Jun-09 8:11 
QuestionExporting Report in ReportViewer control Pin
jgotlt5-Jun-09 4:23
jgotlt5-Jun-09 4:23 
QuestionPost to Database and Return Identity Pin
Terick5-Jun-09 3:54
Terick5-Jun-09 3:54 
Hi,

I'm using ASP.NET with C# and SQL. I have a BLL and DAL set up for interaction with SQL. I have a user input webform with a link button. I need the link button to post the input to the database and pass the new identity value on to the page it navigates to. Can someone please help me on the code for this? This is what I have so far:

protected void LinkButton1_Click(object sender, EventArgs e)
{
ObjectDastaSource1.InsertParameters["Name"].DefaultValue=(FindControl("txtName") as Textbox).Text;
ObjectDataSource1.InsertParameters["User"].DefaultValue=(FindControl("ddlUser")as DropDownList).SelectedItem.Text;
ObjectDataSource1.InsertParameters["Email"].DefaultValue=(FindControl("txtEmail")as Textbox).Text;
ObjectDataSource1.InsertParameters["Start"].DefaultValue=(FindControl("cStart") as Calendar).SelectedDate.ToShortDateString();
ObjectDataSource1.Insertparameters["End"].DefaultValue=(FindControl("cEnd") as Calendar).SelectedDate.ToShortDateString();
ObjectDataSource.DataBind();

QuestionHow can I store an image in a session variable in asp.net Pin
Member 42602705-Jun-09 3:18
Member 42602705-Jun-09 3:18 
AnswerRe: How can I store an image in a session variable in asp.net Pin
Manas Bhardwaj5-Jun-09 3:37
professionalManas Bhardwaj5-Jun-09 3:37 
AnswerRe: How can I store an image in a session variable in asp.net Pin
Abhijit Jana5-Jun-09 5:40
professionalAbhijit Jana5-Jun-09 5:40 
AnswerRe: How can I store an image in a session variable in asp.net Pin
SunithaNallana5-Jun-09 20:48
SunithaNallana5-Jun-09 20:48 
QuestionSending mail with outlook from Asp.Net Pin
Milind R Chavan5-Jun-09 2:20
Milind R Chavan5-Jun-09 2:20 
AnswerRe: Sending mail with outlook from Asp.Net Pin
ToddHileHoffer5-Jun-09 2:31
ToddHileHoffer5-Jun-09 2:31 
AnswerRe: Sending mail with outlook from Asp.Net Pin
Abhijit Jana5-Jun-09 6:07
professionalAbhijit Jana5-Jun-09 6:07 
QuestionI want to draw a diagonal in a Panel control in Asp.net Pin
Member 42602705-Jun-09 2:15
Member 42602705-Jun-09 2:15 
AnswerRe: I want to draw a diagonal in a Panel control in Asp.net Pin
Christian Graus5-Jun-09 10:16
protectorChristian Graus5-Jun-09 10:16 
Question[Message Deleted] Pin
Kissy165-Jun-09 2:11
Kissy165-Jun-09 2:11 
AnswerRe: onclick event giving error in asp.net 1.1,not in asp.net2.0 Pin
ToddHileHoffer5-Jun-09 2:29
ToddHileHoffer5-Jun-09 2:29 
AnswerRe: onclick event giving error in asp.net 1.1,not in asp.net2.0 Pin
Christian Graus5-Jun-09 10:18
protectorChristian Graus5-Jun-09 10:18 
QuestionRadtreeview control/checkbox Pin
AndyInUK5-Jun-09 1:29
AndyInUK5-Jun-09 1:29 
Question[Message Deleted] Pin
Jain Vijay5-Jun-09 1:07
Jain Vijay5-Jun-09 1:07 
AnswerRe: How to find cursor position in HTML Editor Pin
Ashfield5-Jun-09 1:35
Ashfield5-Jun-09 1:35 
QuestionTurning off validateRequest for a user control [modified] Pin
c24235-Jun-09 0:37
c24235-Jun-09 0:37 
AnswerRe: Turning off validateRequest for a user control Pin
Alex Random1-Nov-10 3:55
Alex Random1-Nov-10 3:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.