Click here to Skip to main content
15,917,795 members
Home / Discussions / ASP.NET
   

ASP.NET

 
JokeRe: Page refresh inASP.NET2.0+c# Pin
Sathesh Sakthivel11-Jun-07 0:26
Sathesh Sakthivel11-Jun-07 0:26 
GeneralRe: Page refresh inASP.NET2.0+c# Pin
regin11-Jun-07 0:49
regin11-Jun-07 0:49 
AnswerRe: Page refresh inASP.NET2.0+c# Pin
chand1011-Jun-07 1:20
chand1011-Jun-07 1:20 
AnswerRe: Page refresh inASP.NET2.0+c# Pin
Biju Sam11-Jun-07 23:58
Biju Sam11-Jun-07 23:58 
QuestionGridView problem Pin
Amr M. K.11-Jun-07 0:12
Amr M. K.11-Jun-07 0:12 
AnswerRe: GridView problem Pin
WillemM11-Jun-07 0:49
WillemM11-Jun-07 0:49 
GeneralRe: GridView problem Pin
Amr M. K.11-Jun-07 1:00
Amr M. K.11-Jun-07 1:00 
QuestionProblem in maintaining value in ViewState? Pin
chand1010-Jun-07 23:49
chand1010-Jun-07 23:49 
Hi everyone,

My application is something like this.....

I have a TextBox and a Button in my Start Page.
When I click the button TextBox text is assigned to ViewState and the page should redirect to the next page.
In the second page I have a Button to redirect the page to the Start Page.

When I am doing so,I am not getting the text which I entered previously as I used ViewState.

My code is
Page 1:

protected void Page_Load(object sender, EventArgs e)
{
if (ViewState["Name"] != null)
{
txtName.Text = ViewState["Name"].ToString();
}
}
protected void btnEnter_Click(object sender, EventArgs e)
{
ViewState["Name"] = txtName.Text;
Response.Redirect("ViewState2.aspx");
}

Page 2:

protected void btnPrev_Click(object sender, EventArgs e)
{
Response.Redirect("ViewState1.aspx");
}

Help me in this regard.

Thank u
Chandu

AnswerRe: Problem in maintaining value in ViewState? Pin
Jay_se11-Jun-07 0:04
Jay_se11-Jun-07 0:04 
GeneralRe: Problem in maintaining value in ViewState? Pin
chand1011-Jun-07 0:24
chand1011-Jun-07 0:24 
GeneralRe: Problem in maintaining value in ViewState? Pin
Jay_se11-Jun-07 0:36
Jay_se11-Jun-07 0:36 
GeneralRe: Problem in maintaining value in ViewState? Pin
chand1011-Jun-07 0:55
chand1011-Jun-07 0:55 
GeneralRe: Problem in maintaining value in ViewState? Pin
chand1011-Jun-07 0:56
chand1011-Jun-07 0:56 
GeneralRe: Problem in maintaining value in ViewState? Pin
Jay_se11-Jun-07 1:10
Jay_se11-Jun-07 1:10 
GeneralRe: Problem in maintaining value in ViewState? Pin
chand1011-Jun-07 1:54
chand1011-Jun-07 1:54 
AnswerRe: Problem in maintaining value in ViewState? Pin
Christian Graus11-Jun-07 0:40
protectorChristian Graus11-Jun-07 0:40 
QuestionHow 2 bring a asp:BoundField DataField="someField" to a javascript function Pin
Herman<T>.Instance10-Jun-07 23:47
Herman<T>.Instance10-Jun-07 23:47 
AnswerRe: How 2 bring a asp:BoundField DataField="someField" to a javascript function Pin
Harini N K11-Jun-07 0:25
Harini N K11-Jun-07 0:25 
GeneralRe: How 2 bring a asp:BoundField DataField="someField" to a javascript function Pin
Herman<T>.Instance11-Jun-07 0:43
Herman<T>.Instance11-Jun-07 0:43 
QuestionCheck box.................. Pin
HemMagesh10-Jun-07 23:36
HemMagesh10-Jun-07 23:36 
AnswerRe: Check box.................. Pin
Harini N K10-Jun-07 23:47
Harini N K10-Jun-07 23:47 
GeneralRe: Check box.................. Pin
HemMagesh11-Jun-07 0:04
HemMagesh11-Jun-07 0:04 
GeneralRe: Check box.................. Pin
Harini N K11-Jun-07 0:11
Harini N K11-Jun-07 0:11 
AnswerRe: Check box.................. Pin
chand1011-Jun-07 0:06
chand1011-Jun-07 0:06 
Questiondropdownlist doubt Pin
saravanan0510-Jun-07 23:09
saravanan0510-Jun-07 23:09 

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.