Author: callvj1981 | Posted on: 10/28/2009 11:26:45 PM | Views : 949

Hi,
I am getting a strange exception. I am creating a string control
s1 = "test";
This string I am adding in a literal control
Control c = new LiteralControl(s1);
Form1.Controls.Add(c);
Now I am doing a form post like this
form1.method = "post";
form1.action  = "Defaul2.aspx";
 
Now my form gets posted to the 2nd page. On the 2nd page I am trying to read the same hidden field added to the page request.
But somehow I am not able to get my literal control according to my knowledge this data should be present on the 2nd page that is Default2.aspx and I should be able to read it but why I am not able to read this data...
Seems like I am asking question in a recursive format :) but please do help....
 
 
...

Go to the complete details ...