|
just3ala2 wrote: i think that there is a default timeout for the sessions, right?
Yes. The default timeout is 20 minutes.
---
b { font-weight: normal; }
|
|
|
|
|
Default Timeout is 20 seconds.
You can have a hidden IFRAME with a page like pingserver.aspx which would have a META Httpequiv TAG to the server.
Or without IFRAMES, you can have a JavaScript Timer and send a AJAX request to the server.
|
|
|
|
|
Type the following code, in the logout(link) button event.
Session.Clear()
Response.Redirect("Login.aspx")
Regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|
|
HI..
Suppose I have two application A and B. I want to redirect from one page of application A to one page of application B along with some variables. how can I do this?.. plz help me..
Gurudatta B. Shelke
|
|
|
|
|
You can pass a value in form a Query string to other application like,
You can place the value inside the session from one application to the other application,This solution will be workable only if these two apps share a common session, means same server
If this two application is in different server then try this,
http://ServerName/AliasName/FileName.aspx?name=value, just pass the value as a query string
Mohan
|
|
|
|
|
Thanks for Your guidance
but How can i access session variable of one application in other application
Gurudatta B. Shelke
|
|
|
|
|
If you passed the varaible as:
http://ServerName/AliasName/FileName.aspx?name=value
Then, in C# you could access the variable 'name' as:
Request["name"]
This returns the string 'value' (always a string!!!)
The best times in life are the ones you can't remember!!!
|
|
|
|
|
Sorry, I was referring to accessing the query string varaibles. I don't think there is any way to access session variables across web applications. ASP.NET registers the session variables with the application so each application has it's own variables.
I just use query strings cause it's easier.
The best times in life are the ones you can't remember!!!
|
|
|
|
|
Hi,
I have one work around for this,
Any have this applications (A & B) are gonna be available on the same server and share the same machin.config file, So what you can do is add a new key and have some default value set for the key and during runtime set the value for that key from Application 'A' and access the same from the Application 'B' ensure there is no default value so that you can get the value set by the Application 'A'
Mohan
|
|
|
|
|
The second work around is:
1) Have a common helper class in the Application class that should be a static singleton class and define the attributes according to your requirement(s) in the class
2) Set the value in the respective variable of that class(Singleton) from Application 'A'
3) Add the refernce of the application in Applicatin 'B' and include the namespace and access call the custom method(has to be defined in the Singleton class of app 'A') that inturn returns the required value also it is persist accross applications
I'm sure this would be the appropriate solution
Mohan
|
|
|
|
|
Form Posting should be more safe, secure and reliable.
|
|
|
|
|
Hi,
Can you guide me how to create a XSD schema in VS 2005 adhearing webservice as a source for the schema?
From the Visual Studio 2005, I can able to create a new XSD from the New Item dialog box, but I culd not able to proceed to create a XSD for a webservice? Please give me the solutin for this?
Thanks in advance
Mohan
|
|
|
|
|
Hi Dear All,
"Having problem in making of website in ASP.NET using C#.NET with MS-Access"
I having problem with textbox
I want to add date in textbox in date formate
what should i do?
like. Date is 12/11/2006 i want directly add date in textbox The TextBox should Look Like
" __/__/____" and also Time for TextBox " _ _:_ _ p.m."
I hope u understand
please reply me as soon as possible
Thanks,
Vipul
Vipul
|
|
|
|
|
http://www.cnblogs.com/codingcow/archive/2006/07/23/113339.html
TextBox1.Text = DateTime.Now.ToString("MM/dd/yyyy");
TextBox1.Text = DateTime.Now.ToString("hh:mm tt");
|
|
|
|
|
Thanks
Dear
But Dear I dont want coding format I want in design time disply when i run my web application my TEXTBOX should LOOK LIKE "__/__/____" and Time will be "__:__" on Textbox
{If u know the VB 6.0, MaskedBox Control is there for date/time/etc.,,}
and when i entered my date my TextBox should Look Like as a "12/12/2006" and Time "12:00"
I think u understood very well
Please reply ASAP.
Thanks
Vipul
Vipul
|
|
|
|
|
|
Thanx Once again Dear
I instal custom Control but how can i use this ctl in ASP.net how can i designing,scripting i dnt know so plz give right direction as well as complete description
Thanx
Vipul
Vipul
|
|
|
|
|
You could try something like DateTime.Now.ToString("dd/MM/yyyy")
|
|
|
|
|
Thanks
Dear
But Dear I dont want coding format I want in design time disply when i run my web application my TEXTBOX should LOOK LIKE "__/__/____" and Time will be "__:__" on Textbox
{If u know the VB 6.0, MaskedBox Control is there for date/time/etc.,,}
and when i entered my date my TextBox should Look Like as a "12/12/2006" and Time "12:00"
I think u understood very well
Please reply ASAP.
Thanks
Vipul
|
|
|
|
|
I have seen an article in the asp.net articles section on here that deals with this somebody had developed a control that extends the textbox control to do exactly what you need
|
|
|
|
|
|
hi all,
my problem as follows, here i am using datagrid for display of persons name and ticket numbers in item template . it is working fine . the problem here i am getting is i want to display winning ticket number as bold in group of tickect nmbers . which are sparated by comma . can u help me in this please .
regards ,
guru
P.gurukiran
|
|
|
|
|
try to make a template column
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
hi Tamimi ,
i am displaying data in label by using template colum only but i am trying lot to display perticular ticket number in bold .
P.gurukiran
|
|
|
|
|