hai..
i created some input check boxes using response.write();
eg:Response.Write("");
myreader is my datareader values from databse..that doesnt a matter....
help me to get onclick serevr side coding....
how can we add function to this..(on click)
Loading
Kirtan PatelPosted Aug 10, 2009, 8:13 AM
get onclick serevr side coding ?
can you tell me lil bit more what you exactly whant to do ? it will help me to understand your problem better to reply
Kirtan PatelPosted Aug 10, 2009, 10:49 AM
http://www.dotnet247.com/247reference/msgs/42/211693.aspx
Use CheckBoxList Instead :)
or Use JQuery instead but i have no knowledge of that
http://dropdown-check-list.googlecode.com/svn/trunk/demo.html
or If you can afford Some Commercial Developed Control than they are Well Designed and bug Free
Take a Look Here for that
SreekanthPosted Aug 10, 2009, 10:15 AM
Now am using div and input type check boxes for this...i post question in this forum later and didnt get my requirement..can u help me..
exact dropdown with check boxes...and selected index change must possible thre...
m in ????????
pls....and m in 1.1 framework and VS 2003
SreekanthPosted Aug 10, 2009, 10:06 AM
but i didnt eventhough i didnt get the answer...m K with ur replay...
Kirtan PatelPosted Aug 10, 2009, 9:33 AM
bye looking at your requirement if you dont whant to use CheckListBox you can also Use Standard Asp.net checkBoxes
instead of using That cumbersome process of using Simple HTML controls and it can not be used to Raise Events Thats Why Microsoft has Introduce ServerSide Controls in asp.net .
and by any way you are successfull to raise event in HTML Check box it will be by Using javaScript and it will be much more complex than simply using Standard Asp.net Check boxes That can easily Raise Event and Do postback .
you Understand what i m telling you :)
Happy Coding :)
SreekanthPosted Aug 10, 2009, 8:32 AM
i have to create some checkboxes with data from my databse..ie. why im using this..(there is away using check box list..but m not inetrested)..
so i cretaed input type check boxes with run at server...
then i need click event(server side) for these check boxes..then i can write function in c#..
help me?
my probs is it is list of somtimes may be country then on selecting one country other list will show states in that country..in the similar manner..
click event server side means smthng like
private void Chkbras_CheckedChanged(object sender, System.EventArgs e)
{
}
chkbras is a checkbox