C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Dynamic Controls


Posted Date: 29 Aug 2008      Total Responses: 2

Posted By: Ajay       Member Level: Silver     Points: 1


Hi,
I've a dynamic Htmltable with some controls like button,checkboxes,textbox and radio button. By default all the controls will be displayed except the check boxes. I have to display the checkboxes on the button click event.

Let's say I have five rows in the table.
When I click on the button in the first row the check boxes in the first row needs to be displayed likewise the rest.

Please give me any solution for this like how to trigger the event of the dynamic control and how to capture which button is clicked.




Responses

Author: Praveen    29 Aug 2008Member Level: GoldRating:     Points: 5
see maintain a html hidden input type with that write javascript to load the value of that hidden input. at the time of your dynamic creation of your control button.Attributes.Add("onclick","ButtonClick(this.id);"); write like this then all the buttons will load at ur javascript load that id in to ur html hidden and inur cs you'll get the button which the user clicked then u regenerate controls again and at appropriate buttonclick field add checkbox

hope this information give some idea to you.



Author: karthik    29 Aug 2008Member Level: SilverRating:     Points: 3
Hai,

when the page load all the check box also loaded with Visible property as false. When button click using javascript set the visible property as true.




Post Reply
You must Sign In to post a response.
Next : Very useful for all (Dynamic creation of textbox,button etc in asp.net 2005)
Previous : .NET
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

fax server

Contact Us    Privacy Policy    Terms Of Use