Click here to Skip to main content
15,911,141 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Can i add the database item to drop down list Pin
Abhijit Jana3-Aug-08 22:47
professionalAbhijit Jana3-Aug-08 22:47 
AnswerRe: Can i add the database item to drop down list Pin
Imran Khan Pathan3-Aug-08 22:57
Imran Khan Pathan3-Aug-08 22:57 
AnswerRe: Can i add the database item to drop down list Pin
Anand Desai3-Aug-08 23:26
Anand Desai3-Aug-08 23:26 
GeneralRe: Can i add the database item to drop down list Pin
Imran Khan Pathan3-Aug-08 23:50
Imran Khan Pathan3-Aug-08 23:50 
AnswerRe: Can i add the database item to drop down list Pin
Anand Desai3-Aug-08 23:57
Anand Desai3-Aug-08 23:57 
AnswerRe: Can i add the database item to drop down list Pin
Sandeep Akhare4-Aug-08 0:35
Sandeep Akhare4-Aug-08 0:35 
GeneralRe: Can i add the database item to drop down list Pin
Anand Desai4-Aug-08 0:47
Anand Desai4-Aug-08 0:47 
AnswerRe: Can i add the database item to drop down list Pin
chandralekha4-Aug-08 1:53
chandralekha4-Aug-08 1:53 
I think your update form's city dropdownlist and country dropdownlist contains list of city and country.And you want the particular city and country to come as selected.

For that by using the select query you take the value to the form.You assign that to a string variable.For example the city value is assigned to strCity and country to strCountry.If the city's dropdownlist is DropDownList1 and country's is DropDownList2.
Then you can use the following code

if (DropDownList1.Items[0].Text == strCity)
{
DropDownList1.SelectedItem.Text =strCity;
}
else
{
DropDownList1.Items.Insert(0, strCity);
}

if (DropDownList2.Items[0].Text == strCountry)
{
DropDownList2.SelectedItem.Text =strCountry;
}
else
{
DropDownList2.Items.Insert(0, strCountry);
}


Hope This Code Help You
Question(i m in big prob and need help) How to Assign Some text in a text box in Detail view Pin
Member 46590013-Aug-08 21:47
Member 46590013-Aug-08 21:47 
AnswerRe: (i m in big prob and need help) How to Assign Some text in a text box in Detail view Pin
Imran Khan Pathan3-Aug-08 23:17
Imran Khan Pathan3-Aug-08 23:17 
QuestionProblem with UpdatePanel And ListBox as Select ListBox Pin
Bardia Shahini3-Aug-08 21:37
Bardia Shahini3-Aug-08 21:37 
AnswerRe: Problem with UpdatePanel And ListBox as Select ListBox Pin
eyeseetee3-Aug-08 21:42
eyeseetee3-Aug-08 21:42 
AnswerRe: Problem with UpdatePanel And ListBox as Select ListBox Pin
Abhijit Jana3-Aug-08 21:48
professionalAbhijit Jana3-Aug-08 21:48 
QuestionRe: Problem with UpdatePanel And ListBox as Select ListBox Pin
Bardia Shahini4-Aug-08 20:24
Bardia Shahini4-Aug-08 20:24 
QuestionServer site problem Pin
krishnaveer3-Aug-08 21:28
krishnaveer3-Aug-08 21:28 
QuestionRe: Server site problem Pin
Abhijit Jana3-Aug-08 21:32
professionalAbhijit Jana3-Aug-08 21:32 
AnswerRe: Server site problem Pin
krishnaveer3-Aug-08 21:45
krishnaveer3-Aug-08 21:45 
AnswerRe: Server site problem Pin
Abhijit Jana3-Aug-08 22:50
professionalAbhijit Jana3-Aug-08 22:50 
GeneralRe: Server site problem Pin
krishnaveer4-Aug-08 2:33
krishnaveer4-Aug-08 2:33 
AnswerRe: Server site problem Pin
eyeseetee3-Aug-08 21:40
eyeseetee3-Aug-08 21:40 
GeneralRe: Server site problem Pin
krishnaveer3-Aug-08 21:48
krishnaveer3-Aug-08 21:48 
Questionhow to apply security Pin
gaurav mangal3-Aug-08 20:59
gaurav mangal3-Aug-08 20:59 
AnswerRe: how to apply security Pin
Abhijit Jana3-Aug-08 21:18
professionalAbhijit Jana3-Aug-08 21:18 
Questionbutton control and resource file [modified] Pin
farabba3-Aug-08 20:37
farabba3-Aug-08 20:37 
AnswerRe: button control and resource file Pin
eyeseetee3-Aug-08 21:44
eyeseetee3-Aug-08 21:44 

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.