Click here to Skip to main content
15,905,008 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: changing color of edit row in gridview Pin
dilipv21-Feb-08 0:16
dilipv21-Feb-08 0:16 
Questionwhy this error(Server Error in '/' Application) is distrubing the deployed application???? Pin
pashitech20-Feb-08 18:32
pashitech20-Feb-08 18:32 
AnswerRe: why this error(Server Error in '/' Application) is distrubing the deployed application???? Pin
N a v a n e e t h20-Feb-08 20:11
N a v a n e e t h20-Feb-08 20:11 
QuestionHow to use AnimationExtender of Ajax Control Toolkit [modified] Pin
ThienK2720-Feb-08 17:24
ThienK2720-Feb-08 17:24 
QuestionURGENT! - Passing value from one page to another? Pin
John Sundar20-Feb-08 17:12
John Sundar20-Feb-08 17:12 
GeneralRe: URGENT! - Passing value from one page to another? Pin
Abhijit Jana20-Feb-08 19:00
professionalAbhijit Jana20-Feb-08 19:00 
GeneralRe: URGENT! - Passing value from one page to another? Pin
John Sundar20-Feb-08 19:35
John Sundar20-Feb-08 19:35 
GeneralRe: URGENT! - Passing value from one page to another? Pin
Abhijit Jana20-Feb-08 20:35
professionalAbhijit Jana20-Feb-08 20:35 
GeneralRe: URGENT! - Passing value from one page to another? Pin
John Sundar20-Feb-08 20:50
John Sundar20-Feb-08 20:50 
GeneralRe: URGENT! - Passing value from one page to another? Pin
John Sundar20-Feb-08 21:04
John Sundar20-Feb-08 21:04 
GeneralRe: URGENT! - Passing value from one page to another? Pin
N a v a n e e t h20-Feb-08 19:36
N a v a n e e t h20-Feb-08 19:36 
GeneralRe: URGENT! - Passing value from one page to another? Pin
Christian Graus20-Feb-08 21:01
protectorChristian Graus20-Feb-08 21:01 
GeneralRe: URGENT! - Passing value from one page to another? Pin
J4amieC20-Feb-08 23:04
J4amieC20-Feb-08 23:04 
QuestionWhich control can I use? Pin
ss.mmm20-Feb-08 11:28
ss.mmm20-Feb-08 11:28 
AnswerRe: Which control can I use? Pin
Christian Graus20-Feb-08 11:51
protectorChristian Graus20-Feb-08 11:51 
General(performacne) difference between Session and static class Pin
Seishin#20-Feb-08 11:03
Seishin#20-Feb-08 11:03 
GeneralRe: (performacne) difference between Session and static class Pin
Guffa20-Feb-08 11:33
Guffa20-Feb-08 11:33 
Questionconfusion over asynchronous methods inside web service Pin
ekynox20-Feb-08 10:31
ekynox20-Feb-08 10:31 
GeneralRe: confusion over asynchronous methods inside web service Pin
Venkatesh Mookkan20-Feb-08 15:49
Venkatesh Mookkan20-Feb-08 15:49 
GeneralRe: confusion over asynchronous methods inside web service Pin
ekynox21-Feb-08 9:53
ekynox21-Feb-08 9:53 
GeneralDynamic linkbuttons and event wiring Pin
Glenn E. Lanier II20-Feb-08 9:17
Glenn E. Lanier II20-Feb-08 9:17 
GeneralRe: Dynamic linkbuttons and event wiring Pin
Christian Graus20-Feb-08 11:50
protectorChristian Graus20-Feb-08 11:50 
QuestionRe: Dynamic linkbuttons and event wiring Pin
Glenn E. Lanier II21-Feb-08 3:07
Glenn E. Lanier II21-Feb-08 3:07 
Christian,

I must be really dense here -- I've tried overriding the OnInit and/or the LoadViewState, and recreating the object in every Page_Load, but still no success.

Currently, I have a member variable, LinkButton lb. I have a method, CreateButton, that creates the button, sets the properties, and creates the CommandEventHandler. I call this method in various places, but no luck. What am I missing?

<br />
protected LinkButton lb = null;<br />
protected override void LoadViewState(object savedState)<br />
{<br />
   CreateButton();<br />
   base.LoadViewState(savedState);<br />
}<br />
<br />
protected void CreateButton()<br />
{<br />
   if (null == lb)<br />
   {<br />
      lb = new LinkButton();<br />
   }<br />
   lb.ID = "lbTest001";<br />
   lb.CommandName = "lbViewSystem_Click";<br />
   lb.CommandArgument = "1";<br />
   lb.Command += new CommandEventHandler(lbViewSystem_Click);<br />
   lb.Text = string.Format("System {0:000}", 1);<br />
}<br />
<br />
protected void lbViewSystem_Click(object sender, CommandEventArgs e)<br />
{<br />
   logger.Info("lbViewSystem_Click");<br />
   Literal1.Text = string.Format("Argument = {0} at {1}", e.CommandArgument, DateTime.Now.ToString("MM.dd.yyyy HHmmss"));<br />
}<br />


Again, any help is very much appreciated.

--G
AnswerRe: Dynamic linkbuttons and event wiring Pin
Glenn E. Lanier II21-Feb-08 4:10
Glenn E. Lanier II21-Feb-08 4:10 
GeneralProgrammatically Setting Virtual Direction Expiration Pin
crystal915420-Feb-08 8:17
crystal915420-Feb-08 8:17 

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.