Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 02, 2012 01:45 PM by SubaAberdeen
Mar 01, 2008 10:01 AM|LINK
The simple way I think is in the first Dropdown list' selected event write the following code(two DropdownList DDL1, DDL2)
protected void DDL1_SelectedIndexChanged(object sender,EventArgs e)
Mar 04, 2008 05:55 AM|LINK
Sorry for the delay...
but nothing happens...
and if i try to use
ScriptManagerProxy1.Page.ClientScript.RegisterStartupScript(this.GetType(), "ReturnScript", "document.getElementById('"+cmbSettlementDate.ClientID +"').focus();", true);
it works only in Page_Load event and doesn't work if i want to use it in any event or method
can u plzzzzzzzzz help me in this case
Mar 04, 2008 06:16 AM|LINK
try the below one...
Mar 04, 2008 06:29 AM|LINK
Thank you sir for ur Quick Reply
plz plz plz help me
Mar 04, 2008 07:29 AM|LINK
I will list my test environment for this..
1. I have master page in which Script managner and update panel is present.
2. User controls with 2 dropdowns... in which I had written the above code in onselectedindex changed event of first dropdowm..
3. One content page for master... and user control added to it..
please let me know whether both of us using the same flow.....
Mar 04, 2008 08:54 AM|LINK
1- I've a MasterPage in which only ScriptManager is present and
NOT an UpdatePanel...
2- UserControls in which ScriptManagerProxy and UpdatePanel is Present and in this UpdatePanel all the remaining controls are present.
3- On My DropDownList AutoPostBack is true, and 2nd DropDownList is filled using 1st DropDownList Selected value on run time...
4- One ContentPlaceHolder in Master Page.
Mar 04, 2008 10:47 AM|LINK
sorry for the delay...
I hope this will be the last post for this problem...
try the below one....
Mar 04, 2008 12:31 PM|LINK
Thank you sooooo much Mr. Vasanthakumar ...
Ya this is the last Post on this Topic [:D] ...
U really give me toooo much time and um really very much thankful....
GOD Bless you and grant u with more Knowledge... Take Care
Mar 05, 2008 03:39 AM|LINK
May 02, 2012 01:45 PM|LINK
Thanks for this code. It is working fine for me