Click here to Skip to main content
15,892,059 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Confirmation Box Problem Pin
Nisha Agrawal24-Sep-09 1:11
Nisha Agrawal24-Sep-09 1:11 
GeneralRe: Confirmation Box Problem Pin
nagendrathecoder24-Sep-09 1:18
nagendrathecoder24-Sep-09 1:18 
JokeRe: Confirmation Box Problem Pin
sashidhar24-Sep-09 1:33
sashidhar24-Sep-09 1:33 
GeneralRe: Confirmation Box Problem Pin
nagendrathecoder24-Sep-09 1:34
nagendrathecoder24-Sep-09 1:34 
QuestionUpdate panel in asp.net Pin
Harry@NewDelhi24-Sep-09 0:21
Harry@NewDelhi24-Sep-09 0:21 
AnswerRe: Update panel in asp.net Pin
Christian Graus24-Sep-09 0:34
protectorChristian Graus24-Sep-09 0:34 
AnswerRe: Update panel in asp.net Pin
sashidhar24-Sep-09 0:46
sashidhar24-Sep-09 0:46 
QuestionFetch value from dropdown into a text box using javascript Pin
amittinku24-Sep-09 0:17
amittinku24-Sep-09 0:17 
1. Used ASP.NET controls: dropdown and textbox.
2. For the 1st time at page load, some default values should be populated in dropdown and 1st value in text box.

Written the below code
protected void Page_Load(object sender, EventArgs e)
      {
            if (!IsPostBack)
            {
                  DropDownList1.Items.Add("a");
                  DropDownList1.Items.Add("b");
                  DropDownList1.Items.Add("c");
            TextBox1.Text = DropDownList1.SelectedValue;
           
            }
      }

3. Set the autopostback of dropdown=False. So "DropDownList1_SelectedIndexChanged1" will not work. I have done this because after selecting any value in dropdown, post back should   not take place.

4. Now we have values in drop down. I want to select a value in dropdown and same selected value should be visible in text box.
I want a java script for this. Not able to write it as not able to find any client event for dropdown.
Actually there is event "onclientclick" for an asp.net button control, but did not find any such event for dropdown.
So how to write java script code.
AnswerRe: Fetch value from dropdown into a text box using javascript Pin
sris 42624-Sep-09 0:23
sris 42624-Sep-09 0:23 
GeneralRe: Fetch value from dropdown into a text box using javascript Pin
Christian Graus24-Sep-09 0:37
protectorChristian Graus24-Sep-09 0:37 
QuestionDate using Calendar.setup Pin
Harry@NewDelhi24-Sep-09 0:15
Harry@NewDelhi24-Sep-09 0:15 
AnswerRe: Date using Calendar.setup Pin
sashidhar24-Sep-09 0:31
sashidhar24-Sep-09 0:31 
Questionto store connection string in different web.config files in different loacations and machines Pin
myms.net24-Sep-09 0:13
myms.net24-Sep-09 0:13 
AnswerRe: to store connection string in different web.config files in different loacations and machines Pin
sashidhar24-Sep-09 0:19
sashidhar24-Sep-09 0:19 
GeneralRe: to store connection string in different web.config files in different loacations and machines Pin
myms.net24-Sep-09 0:32
myms.net24-Sep-09 0:32 
GeneralRe: to store connection string in different web.config files in different loacations and machines Pin
sashidhar24-Sep-09 0:49
sashidhar24-Sep-09 0:49 
GeneralRe: to store connection string in different web.config files in different loacations and machines Pin
myms.net24-Sep-09 1:02
myms.net24-Sep-09 1:02 
AnswerRe: to store connection string in different web.config files in different loacations and machines Pin
Gamzun24-Sep-09 8:36
Gamzun24-Sep-09 8:36 
Questionasp.net Pin
rajni_nanu23-Sep-09 23:50
rajni_nanu23-Sep-09 23:50 
AnswerRe: asp.net Pin
sashidhar23-Sep-09 23:54
sashidhar23-Sep-09 23:54 
AnswerRe: asp.net Pin
Christian Graus24-Sep-09 0:39
protectorChristian Graus24-Sep-09 0:39 
Questionsubstring Pin
ritasaumya23-Sep-09 23:50
ritasaumya23-Sep-09 23:50 
AnswerRe: substring Pin
N a v a n e e t h23-Sep-09 23:55
N a v a n e e t h23-Sep-09 23:55 
AnswerRe: substring Pin
sashidhar23-Sep-09 23:56
sashidhar23-Sep-09 23:56 
AnswerRe: substring Pin
sris 42624-Sep-09 0:05
sris 42624-Sep-09 0:05 

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.