Click here to Skip to main content
16,005,491 members
Home / Discussions / ASP.NET
   

ASP.NET

 
JokeRe: Search on the webpage Pin
Rocky#17-Dec-07 4:59
Rocky#17-Dec-07 4:59 
GeneralRe: Search on the webpage Pin
Paddy Boyd17-Dec-07 22:12
Paddy Boyd17-Dec-07 22:12 
GeneralRe: Search on the webpage Pin
Gandalf_TheWhite17-Dec-07 18:17
professionalGandalf_TheWhite17-Dec-07 18:17 
GeneralRegular Expression for Validate Url Pin
kinnuP17-Dec-07 1:43
kinnuP17-Dec-07 1:43 
GeneralRe: Regular Expression for Validate Url Pin
Rocky#17-Dec-07 4:53
Rocky#17-Dec-07 4:53 
GeneralChanging text of embedded image in email Pin
Kapil Thakur17-Dec-07 1:37
Kapil Thakur17-Dec-07 1:37 
Questionhow to handle dynamicaly created button in asp.net with c#?? Pin
yogesh_softworld12317-Dec-07 1:33
yogesh_softworld12317-Dec-07 1:33 
AnswerRe: how to handle dynamicaly created button in asp.net with c#?? Pin
Abhijit Jana17-Dec-07 2:16
professionalAbhijit Jana17-Dec-07 2:16 
Ho yougesh,
using Delegation u can easily do it.
Check the following code
protected void Page_Load(object sender, EventArgs e)
   {
       Button mybtn = new Button();
       mybtn.Text = "Dynamic Button";
       Panel1.Controls.Add(mybtn);
       mybtn.Click += new System.EventHandler(mybtn_Click);

   }

   public void mybtn_Click(object sender, EventArgs e)
   {
       Response.Write("You have click on this");
       // you can store session over here
   }


Hope this will help you !!!!

Best Regards
-----------------
Abhijit Jana
View My CodeProject Articles

"Success is Journey it's not a destination"

GeneralRe: how to handle dynamicaly created button in asp.net with c#?? [modified] Pin
yogesh_softworld12317-Dec-07 3:20
yogesh_softworld12317-Dec-07 3:20 
GeneralRe: how to handle dynamicaly created button in asp.net with c#?? Pin
Abhijit Jana17-Dec-07 19:10
professionalAbhijit Jana17-Dec-07 19:10 
QuestionIs there a way to handle right click close button's event of IE title bar ? Pin
garimajain_mca17-Dec-07 1:15
garimajain_mca17-Dec-07 1:15 
GeneralRe: Is there a way to handle right click close button's event of IE title bar ? Pin
Vasudevan Deepak Kumar17-Dec-07 1:20
Vasudevan Deepak Kumar17-Dec-07 1:20 
GeneralRe: Is there a way to handle right click close button's event of IE title bar ? Pin
Pete O'Hanlon17-Dec-07 1:26
mvePete O'Hanlon17-Dec-07 1:26 
Generalenum +c# Pin
ritu432117-Dec-07 1:10
ritu432117-Dec-07 1:10 
GeneralRe: enum +c# Pin
Pete O'Hanlon17-Dec-07 1:32
mvePete O'Hanlon17-Dec-07 1:32 
QuestionMouse Click doesn't work on Control Pin
mpavas16-Dec-07 23:48
mpavas16-Dec-07 23:48 
GeneralBig image onMouseover Pin
.NET- India 16-Dec-07 23:24
.NET- India 16-Dec-07 23:24 
GeneralRe: Big image onMouseover Pin
Paddy Boyd17-Dec-07 0:28
Paddy Boyd17-Dec-07 0:28 
GeneralRe: Big image onMouseover Pin
.NET- India 17-Dec-07 0:42
.NET- India 17-Dec-07 0:42 
Questioncreating dynamic webpage Pin
rajanandal16-Dec-07 23:16
rajanandal16-Dec-07 23:16 
GeneralRe: creating dynamic webpage Pin
Paddy Boyd16-Dec-07 23:27
Paddy Boyd16-Dec-07 23:27 
GeneralRe: creating dynamic webpage Pin
rajanandal16-Dec-07 23:48
rajanandal16-Dec-07 23:48 
GeneralRe: creating dynamic webpage Pin
Paddy Boyd17-Dec-07 1:13
Paddy Boyd17-Dec-07 1:13 
GeneralRe: creating dynamic webpage Pin
rajanandal17-Dec-07 1:59
rajanandal17-Dec-07 1:59 
GeneralConfirm Message while Delete Row From GridView [modified] Pin
R.Palanivel16-Dec-07 22:50
R.Palanivel16-Dec-07 22:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.