.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

CheckBoxList checked changed event on Javascript (URGENT)

Posted By: Senthilnathan     Posted Date: September 08, 2011    Points:5   Category :ASP.Net
Hi Friends,

I'm working on ASP.NET. I Have textbox and checkboxlist with 5 items on my aspx page.

When I check the item in checkboxlist then corresponding item should be display in textbox.

Is it possible to do with Javascript. If so please give me some idea or sample code.

If can't possible with javascript, Can it possible on AJAX? Please send me sample code for this.

Please help as soon as posssible.


Responses
Author: Narayanan             
Posted Date: September 08, 2011     Points: 20   

Hi,
try this link.you get some idea.
JavaScript:
http://forums.asp.net/t/985229.aspx/1?Get+checkboxlist+in+javascript+and+check+the+status+of+the+checkboxes
http://hspinfo.wordpress.com/2008/08/14/get-checkboxlist-values-using-javascript/
http://www.dotnetboss.com/2010/05/25/how-to-get-the-checkboxlist-value-using-javascript/
Ajax:
http://www.vbknowledgebase.com/?Id=123&Desc=Asp.Net-Ajax-CheckBoxList
http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=859
Regards,
Lakshmi Narayanan.S

Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
Author: Sasi Prabhu             
Posted Date: September 09, 2011     Points: 20   

Try:

CheckBoxList1_SelectedIndexChanged(object sender, EventArgs e)
{
foreach (ListItem lstm in CheckBoxList1.Items)
{
if (lstm.Selected == true)
{
TextBox1.Text = lstm.Text;
}
}
}





Thanks & Regards,
Sasi Prabhu.


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend