Dropdownlist Problem
-
Hi All I have two dropdownlist.first is ddl_category and second is ddl_op when i select value from ddl_category i want to set this value into ddl_op. declare str str=ddl_Category.Selectedvalue.text I write ddl_op.selectedItem.Text=str But it's not working.I am not getting exact problem.What happened in this situation?Can u help me how to write and assign value in dropdownlist in aspx page? Thanks monika
-
Hi All I have two dropdownlist.first is ddl_category and second is ddl_op when i select value from ddl_category i want to set this value into ddl_op. declare str str=ddl_Category.Selectedvalue.text I write ddl_op.selectedItem.Text=str But it's not working.I am not getting exact problem.What happened in this situation?Can u help me how to write and assign value in dropdownlist in aspx page? Thanks monika
hi, Set autopostback = true for the first dropdownlist...
Thanks & Regards... Amit
-
hi, Set autopostback = true for the first dropdownlist...
Thanks & Regards... Amit
Hi amit But my both dropdownlist are filled using javascript codeing.So it's not possible to set autopostback property to true. if u have solution pls reply me. Thanks monika
-
Hi amit But my both dropdownlist are filled using javascript codeing.So it's not possible to set autopostback property to true. if u have solution pls reply me. Thanks monika
Hi Monika, create a function in jscript to set the text of 2nd ddl and call this function on 1st ddl's indexchanged event at client side.
Thanks & Regards... Amit
-
Hi amit But my both dropdownlist are filled using javascript codeing.So it's not possible to set autopostback property to true. if u have solution pls reply me. Thanks monika
-
Hi Monika, create a function in jscript to set the text of 2nd ddl and call this function on 1st ddl's indexchanged event at client side.
Thanks & Regards... Amit
Hi amit I got my solution thanks. I have one confusion if u have solution pls reply me. I have one function in javascript.This function returns value. How to use this return value in aspx page? function call() { retrun val; } How to use this value in my aspx page? I call javascript function like:ddl_category,attributes.add("onchange","call();") I want a value from function in my aspx page. Pls help me Thanks monika
-
Hi amit I got my solution thanks. I have one confusion if u have solution pls reply me. I have one function in javascript.This function returns value. How to use this return value in aspx page? function call() { retrun val; } How to use this value in my aspx page? I call javascript function like:ddl_category,attributes.add("onchange","call();") I want a value from function in my aspx page. Pls help me Thanks monika
Hi Monika, in jscript function, u can store ur data in a label or hidden fields, which can be further access from code behind at the server...
Thanks & Regards... Amit