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 !




please solve my problem its very urgent


Posted Date: 06 Aug 2007      Total Responses: 2

Posted By: sreeeeee       Member Level: Bronze     Points: 2


Hi,

I created dynamic buttons by using the class Button.

i created multiple buttons. so when i click on any one of these buttons , i lost all the buttons from the page. so what can i do to keep the buttons with the page after click on it and how handle the click event of these dynamically created buttons.

please try give me the code for this requirement

thanks.




Responses

Author: Gomathi NS    06 Aug 2007Member Level: SilverRating:     Points: 2
Hi,
You can maintain all your controls in a session so that you can see all the button after submitting too.

Also try the following code for getting the last fired button

if (Page.IsPostBack)
{
//*** Gets the Control that fires the event finally
string syscontrol = (string)Request.Form["__EVENTTARGET"];
}




Author: Ranjith    06 Aug 2007Member Level: SilverRating:     Points: 2
u put the code with in postback


Post Reply
You must Sign In to post a response.
Next : help met its urgent i am struggling
Previous : ASP.NET2.0 Login control
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

conference calls

Contact Us    Privacy Policy    Terms Of Use