15,891,704 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Rohit More (Top 11 by date)
Rohit More
26-Aug-13 5:11am
View
Thank you for your kind reply Mr.Prafulhk,
yeah I can solve this problem with using hidden field. but its alternative. Actually, I didnt get this thing that why class member variable loosing its values when submitting form.
Rohit More
23-Apr-13 5:32am
View
I have traced out my problem, just I have modified my Question.
now problem is that if I remove modifyXmlFile()function then it works fine. but if I includes it then session gets lost.
and whatever I am modifying xml file, it contains around 15000 elements.
basic structure of my xml file is as following
<root>
<ListItem visited="No" value="ABC"/>
<ListItem visited="No" value="PQR"/>
..
Rohit More
19-Apr-13 8:56am
View
If add this Line before ie
Response.AddHeader("P3P", "CP=""CAO PSA OUR""")
Response.Redirect("default2.aspx", False)
Then I got same Session Id . but Value is null
Rohit More
19-Apr-13 8:55am
View
Deleted
If add this Line before ie
Response.AddHeader("P3P", "CP=""CAO PSA OUR""")
Response.Redirect("default2.aspx", False)
Then I got same Session Id . but Value is null
Rohit More
19-Apr-13 8:29am
View
just checked this link.
I checked session id of both pages so results are
when I used Response.Redirect() method -> Session Id gets Different
and when I use Server.Execute() method -> Session Id is Same but that Page (default2.aspx) didnt appear.
Everything is running within single Web Application. so , I think that situation is not applicable for this situation.
Rohit More
19-Apr-13 8:17am
View
Hello Sir,
just tried this thing.
when I used Response.Redirect() method -> Session Id gets Different
and when I use Server.Execute() method -> Session Id is Same but that Page (default2.aspx) didnt appear.
Rohit More
19-Apr-13 8:07am
View
well, as timeout concern I removed this but no change, and
about assigning direct string like Session("success")="Success", I tried before but no output.
The strange thing is that , as I mentioned above in my question,
when I use Server.Execute("default.aspx", false), It holds the Session values and even it do visit to another page (default2.aspx) Page Load event but it always shows default1.aspx page.
dont know why this? In default2.aspx does not contain any comparison and all kinds of stuff. there I am simply print Session variable and print "Thank you" message
Rohit More
19-Apr-13 7:50am
View
default1.aspx
Dim success As String = "Success"
...
try
....
Session("success") = success
MsgBox(Session("success") ' O/p: Success
Response.Redirect("default2.aspx", False)
catch ex As Exception
MsgBox("Exception" + ex.Message)
End Try
defualt2.aspx
inside page_Load()
'MsgBox(System.Web.HttpContext.Current.Session("success")) ' o/p : Empty
Dim success As String = Session("success").toString
MsgBox(success) 'o/p : Empty
End Sub
Yes Sir I tried debugging, session get destroyed after redirection.
even I used that variable in multiple functions before redirection.
Rohit More
19-Apr-13 7:44am
View
Thank you for you kind reply Sir :),
but success is not direct String its String Variable....!
Rohit More
19-Apr-13 7:16am
View
yeah sure.
inside page_Load()
'MsgBox(System.Web.HttpContext.Current.Session("success")) ' o/p : Empty
Dim success As String = Session("success").toString
MsgBox(success) 'o/p : Empty
End Sub
Rohit More
19-Apr-13 6:10am
View
No , "success" is string variable and holds "Success" string.
Show More