Click here to Skip to main content
15,907,281 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Retrieving a data element from a SQL view Pin
Not Active18-May-12 4:20
mentorNot Active18-May-12 4:20 
QuestionFile Encryption and Decryption Pin
yesu prakash17-May-12 19:00
yesu prakash17-May-12 19:00 
AnswerRe: File Encryption and Decryption Pin
Jack Li22-May-12 20:12
Jack Li22-May-12 20:12 
QuestionURGENT-error:the name"textbox" does not exist in the current context Pin
Member 896972317-May-12 15:41
Member 896972317-May-12 15:41 
QuestionCS0103: The name 'greencom' does not exist in the current context Pin
dababy17-May-12 4:39
dababy17-May-12 4:39 
AnswerRe: CS0103: The name 'greencom' does not exist in the current context Pin
Rocky2318-May-12 1:37
Rocky2318-May-12 1:37 
AnswerRe: CS0103: The name 'greencom' does not exist in the current context Pin
Jack Li22-May-12 20:18
Jack Li22-May-12 20:18 
QuestionMy Dropdown List not inserting selected value into database. Pin
dababy17-May-12 4:30
dababy17-May-12 4:30 
SQL
Sqlds.InsertCommandType = SqlDataSourceCommandType.Text;
Sqlds.InsertCommand = "insert into Population(States,LGA,Males,Females,Bothsexes,Landsize,Terrain,Remarks) values (@countryList,@statelist,@male,@fmale,@bsexes,@landsize,@terrain,@remarks)";
Sqlds.InsertParameters.Add("countryList",countryList.SelectedValue);
Sqlds.InsertParameters.Add("stateList", stateList.SelectedValue);
Sqlds.InsertParameters.Add("male", male.Text);
Sqlds.InsertParameters.Add("fmale", fmale.Text);
Sqlds.InsertParameters.Add("bsexes", bsexes.Text);
Sqlds.InsertParameters.Add("landsize", landsize.Text);
Sqlds.InsertParameters.Add("terrain", terrain.Text);
Sqlds.InsertParameters.Add("remarks", remarks.Text);
Sqlds.Insert();





I am having problem with my dropdownlist, Its not inserting selected values into database only the first value on the list that is inserted into the db.

Here is the varable for it.

Sqlds.InsertParameters.Add("stateList", stateList.SelectedValue);
AnswerRe: My Dropdown List not inserting selected value into database. Pin
padminiselvaraj18-May-12 17:11
padminiselvaraj18-May-12 17:11 
AnswerRe: My Dropdown List not inserting selected value into database. Pin
Apocalypse Now20-May-12 14:34
Apocalypse Now20-May-12 14:34 
GeneralRe: My Dropdown List not inserting selected value into database. Pin
Jack Li22-May-12 20:22
Jack Li22-May-12 20:22 
GeneralRe: My Dropdown List not inserting selected value into database. Pin
Apocalypse Now22-May-12 20:35
Apocalypse Now22-May-12 20:35 
GeneralRe: My Dropdown List not inserting selected value into database. Pin
dababy31-May-12 6:42
dababy31-May-12 6:42 
GeneralRe: My Dropdown List not inserting selected value into database. Pin
dababy31-May-12 6:43
dababy31-May-12 6:43 
AnswerRe: My Dropdown List not inserting selected value into database. Pin
vvashishta25-May-12 2:52
vvashishta25-May-12 2:52 
QuestionUpload file without using file upload control Pin
Member 834058716-May-12 23:18
Member 834058716-May-12 23:18 
AnswerRe: Upload file without using file upload control Pin
Jack Li22-May-12 20:27
Jack Li22-May-12 20:27 
QuestionPayable user creation Pin
anishkannan16-May-12 18:29
anishkannan16-May-12 18:29 
AnswerRe: Payable user creation Pin
egenis16-May-12 18:59
egenis16-May-12 18:59 
GeneralRe: Payable user creation Pin
anishkannan16-May-12 19:05
anishkannan16-May-12 19:05 
GeneralRe: Payable user creation Pin
Richard MacCutchan16-May-12 23:14
mveRichard MacCutchan16-May-12 23:14 
AnswerRe: Payable user creation Pin
jkirkerx19-May-12 19:23
professionaljkirkerx19-May-12 19:23 
QuestionWhen the width of DropDownList and TextBox seted to same, The width of the TextBox longer than the DropDownList's. Pin
Apocalypse Now16-May-12 16:09
Apocalypse Now16-May-12 16:09 
AnswerRe: When the width of DropDownList and TextBox seted to same, The width of the TextBox longer than the DropDownList's. Pin
jkirkerx16-May-12 17:41
professionaljkirkerx16-May-12 17:41 
GeneralRe: When the width of DropDownList and TextBox seted to same, The width of the TextBox longer than the DropDownList's. Pin
Apocalypse Now17-May-12 17:10
Apocalypse Now17-May-12 17:10 

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.