Click here to Skip to main content
15,893,401 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Master page and nested master page Pin
Yusuf6-Mar-09 16:06
Yusuf6-Mar-09 16:06 
AnswerRe: Master page and nested master page Pin
Vasudevan Deepak Kumar6-Mar-09 21:36
Vasudevan Deepak Kumar6-Mar-09 21:36 
QuestionMaster page and nested master page Pin
Catfelix6-Mar-09 13:36
Catfelix6-Mar-09 13:36 
AnswerRe: Master page and nested master page Pin
Vasudevan Deepak Kumar6-Mar-09 21:35
Vasudevan Deepak Kumar6-Mar-09 21:35 
GeneralRe: Master page and nested master page Pin
Catfelix8-Mar-09 3:55
Catfelix8-Mar-09 3:55 
QuestionProblem with Form and Sessions Pin
AndyASPVB6-Mar-09 12:00
AndyASPVB6-Mar-09 12:00 
AnswerRe: Problem with Form and Sessions Pin
Yusuf6-Mar-09 16:10
Yusuf6-Mar-09 16:10 
GeneralRe: Problem with Form and Sessions Pin
AndyASPVB6-Mar-09 23:04
AndyASPVB6-Mar-09 23:04 
Hi
On my page load I have set a Session Flag called keepsession, which is set by the result page. If this flag is true on load of the page then the session variables, which are set when the submit button is clicked will pass the values from the sessions to the textboxes and dropdown lists, else nothing goes to them. This is working, because if I enter the form from a different part of the site, the boxes and lists are empty, which is what I want, and if I enter the page from the results page, the parameters from the first query are present.

The problem being is that I can't enter in new values to overwrite the old ones.



On my Page Load on the form page, I have

If keepsession = true then

TextBox1.Text = Session("var1")

TextBox2.Text = Session("var2")

Else

Session.Remove("var1")

Session.Remove("var2")

End If



On my button Submit

'Make sure sessions are cleared down



Session.Remove("var1")

Session.Remove("var2")

Session("var1") = TextBox1.text

Session("var2") = TextBox2.Text

'Stored Procedures go here to pass parameters to Db

Gridview takes the result from the stored procedure, which goes into a session variable. This session variable is taken in to a SqlDataSource called by the gridview to show the results on the second result page.

This is all I have done. It is not really complicated stuff.

On the debug in my button submit method and on the page load method the text boxes etc shows the values from the first query not the new values I have entered in

What do you know what the problem is?
GeneralRe: Problem with Form and Sessions Pin
Yusuf7-Mar-09 3:58
Yusuf7-Mar-09 3:58 
GeneralRe: Problem with Form and Sessions Pin
ian dennis9-Mar-09 13:43
ian dennis9-Mar-09 13:43 
AnswerRe: Problem with Form and Sessions Pin
Dev S7-Mar-09 0:30
Dev S7-Mar-09 0:30 
General[Message Deleted] Pin
keralaman6-Mar-09 9:34
keralaman6-Mar-09 9:34 
GeneralRe: Personal Tutor wanted to teach Microsoft Technologies PinPopular
CPallini6-Mar-09 10:34
mveCPallini6-Mar-09 10:34 
GeneralRe: Personal Tutor wanted to teach Microsoft Technologies Pin
Vasudevan Deepak Kumar6-Mar-09 21:37
Vasudevan Deepak Kumar6-Mar-09 21:37 
GeneralRe: Personal Tutor wanted to teach Microsoft Technologies PinPopular
#realJSOP6-Mar-09 10:41
mve#realJSOP6-Mar-09 10:41 
GeneralRe: Personal Tutor wanted to teach Microsoft Technologies Pin
Pete O'Hanlon6-Mar-09 10:52
mvePete O'Hanlon6-Mar-09 10:52 
GeneralRe: Personal Tutor wanted to teach Microsoft Technologies Pin
Steve Mayfield6-Mar-09 12:14
Steve Mayfield6-Mar-09 12:14 
GeneralRe: Personal Tutor wanted to teach Microsoft Technologies Pin
keralaman6-Mar-09 12:39
keralaman6-Mar-09 12:39 
GeneralRe: Personal Tutor wanted to teach Microsoft Technologies Pin
Yusuf6-Mar-09 13:07
Yusuf6-Mar-09 13:07 
GeneralRe: Personal Tutor wanted to teach Microsoft Technologies Pin
Mycroft Holmes6-Mar-09 13:41
professionalMycroft Holmes6-Mar-09 13:41 
GeneralRe: Personal Tutor wanted to teach Microsoft Technologies Pin
Vasudevan Deepak Kumar6-Mar-09 21:38
Vasudevan Deepak Kumar6-Mar-09 21:38 
GeneralRe: Personal Tutor wanted to teach Microsoft Technologies Pin
#realJSOP7-Mar-09 2:14
mve#realJSOP7-Mar-09 2:14 
GeneralRe: Personal Tutor wanted to teach Microsoft Technologies Pin
l a u r e n7-Mar-09 3:34
l a u r e n7-Mar-09 3:34 
GeneralGoing distant places in search of a great master is centuries old eastern tradition Pin
keralaman7-Mar-09 14:31
keralaman7-Mar-09 14:31 
GeneralRe: Going distant places in search of a great master is centuries old eastern tradition Pin
Colin Angus Mackay7-Mar-09 15:14
Colin Angus Mackay7-Mar-09 15:14 

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.