Click here to Skip to main content
15,914,408 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDot Net Nuke Pin
Ravi_2113-Nov-07 23:36
Ravi_2113-Nov-07 23:36 
AnswerRe: Dot Net Nuke Pin
Christian Graus14-Nov-07 0:07
protectorChristian Graus14-Nov-07 0:07 
QuestionDoubt in partial class Pin
Kissy1613-Nov-07 23:07
Kissy1613-Nov-07 23:07 
AnswerRe: Doubt in partial class Pin
Christian Graus13-Nov-07 23:14
protectorChristian Graus13-Nov-07 23:14 
AnswerRe: Doubt in partial class Pin
N a v a n e e t h13-Nov-07 23:14
N a v a n e e t h13-Nov-07 23:14 
QuestionWebParts... Pin
Mr.Sam13-Nov-07 23:06
Mr.Sam13-Nov-07 23:06 
QuestionForm unload Pin
ps.srinivasan13-Nov-07 22:43
ps.srinivasan13-Nov-07 22:43 
AnswerRe: Form unload Pin
N a v a n e e t h13-Nov-07 22:47
N a v a n e e t h13-Nov-07 22:47 
ps.srinivasan wrote:
I Declared one global variable


How you declared this ? in Global.asax ? I don't think it's a good solution and in which scenarion you require this ?

ps.srinivasan wrote:
if i am going the webform1 to webform2 i want to set that variable false.in which event i want to write the code?


How you are going from one page to other ? Using a Response.Redirect() ? then set the value just before this line. There is no event fired when you move from one page to other using normal hyperlinks. You need to hook a javascript function on body unload event and using an AJAX call set the variable value to false.

ps.srinivasan wrote:
(i wrote the code varname=false in form_unload but before moving other form that code executed)


Yes, when page requests, it will load the page and call unload. See the ASP.NET page lifecycle.

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

My Website | Ask smart questions

GeneralRe: Form unload Pin
ps.srinivasan13-Nov-07 23:10
ps.srinivasan13-Nov-07 23:10 
GeneralRe: Form unload Pin
N a v a n e e t h13-Nov-07 23:21
N a v a n e e t h13-Nov-07 23:21 
AnswerRe: Form unload Pin
Christian Graus13-Nov-07 22:48
protectorChristian Graus13-Nov-07 22:48 
AnswerRe: Form unload Pin
Michael Sync13-Nov-07 22:51
Michael Sync13-Nov-07 22:51 
GeneralRe: Form unload Pin
N a v a n e e t h13-Nov-07 22:58
N a v a n e e t h13-Nov-07 22:58 
GeneralRe: Form unload Pin
Michael Sync13-Nov-07 23:06
Michael Sync13-Nov-07 23:06 
GeneralRe: Form unload Pin
ps.srinivasan13-Nov-07 23:11
ps.srinivasan13-Nov-07 23:11 
GeneralRe: Form unload Pin
Christian Graus13-Nov-07 23:16
protectorChristian Graus13-Nov-07 23:16 
GeneralRe: Form unload Pin
Michael Sync13-Nov-07 23:41
Michael Sync13-Nov-07 23:41 
Questionopen file Pin
venky45613-Nov-07 22:20
venky45613-Nov-07 22:20 
AnswerRe: open file Pin
N a v a n e e t h13-Nov-07 22:34
N a v a n e e t h13-Nov-07 22:34 
GeneralRe: open file Pin
venky45613-Nov-07 23:19
venky45613-Nov-07 23:19 
GeneralRe: open file Pin
N a v a n e e t h13-Nov-07 23:23
N a v a n e e t h13-Nov-07 23:23 
Questionhow to use paypal controls in asp.net for transaction [modified] Pin
gopal_Pandey13-Nov-07 22:14
gopal_Pandey13-Nov-07 22:14 
AnswerRe: how to use paypal controls in asp.net for transaction Pin
gopal_Pandey23-Nov-07 1:32
gopal_Pandey23-Nov-07 1:32 
Questionproblem to read data Pin
Deepak Nigam13-Nov-07 22:07
Deepak Nigam13-Nov-07 22:07 
AnswerRe: problem to read data Pin
Christian Graus13-Nov-07 22:16
protectorChristian Graus13-Nov-07 22:16 

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.