|
hai friends
in a page,i enabled sessionstate as true
and time out is 20 min
after 20 min , session will be expired and if user performs any operation
then he will be redirected to "sessionexpired message" page
now how can i know(find) the session is expired for the user account....
plz help me
thanks in advance
vijay
|
|
|
|
|
Check this out:
http://aspalliance.com/520_Detecting_ASPNET_Session_Timeouts.2
We are not a Code Charity
|
|
|
|
|
Hi
Iam consuming the webservice on remote server in my webapplication on
local machine .iam getting one excetion in my webapplication.i mentioned
exception details below,
exceptionSystem.Web.Services.Protocols.SoapHeaderException:
Server unavailable, please try later
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at TTL.Noads.Client.UIBridge.ClusterWS.ClusterWSWse.ReadTestMessage()
in C:\kona\documents\uibridge\TTL.Noads.Client.UIBridge\Web References\ClusterWS\Reference.cs:line 445
at TTL.Noads.Client.UIBridge.ClusterManager.ReadTestMessage()
in C:\kona\documents\uibridge\TTL.Noads.Client.UIBridge\ClusterManager.cs:line 57
at TestApplication.Test.Page_Load(Object sender, EventArgs e)
in C:\kona\documents\uibridge\TestApplication\Test.aspx.cs:line 26
please help me
madhavi.kona
|
|
|
|
|
Did you query through InnerException?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
|
When I am using Server.CreateObject( "MSWC.ContentRotator" ) in Asp.Net page I am getting 'No such interface support' error.
Can any one help how can I use this file.
|
|
|
|
|
|
Hi all,
Like the Hashtable in .Net, I want to have a collection in javascript in order to store some predefined key value pair.
Is there any such collection available in JavaScript?
Kindly help me in this regard.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
|
Dear Vasu,
Thanks a lot.
I will go through it.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Dear Vasu,
I have downloaded and included in my applcation.
Now in the page onload client side event I have invoked a jayavascript function. In that function I have declared a variable and initialized as follows:
var keyValuePair;
keyValuePair = new Hashtable();
It is giving "Hastable is undefined".
Can you tell me why?
And in what way it has to be used in the application.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Its because javascript don't know what is HashTable,
there is not object with this name in javascript
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Did you include the prototype definitions in the article? That actually defines an object called 'HashTable'.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Dear Vasu,
I am new to JavaScript.
Vasudevan Deepak Kumar wrote: prototype definitions
What do you mean by it?
How can I include that to my application?
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
There is a downloadable example of hashtable:
http://www.comet.co.il/en/articles/hash/hashtable.zip[^]
Nevertheless, the code snippets near the top of the article like
Hashtable.prototype ... are declarations.
You ought to include the function Hashtable and its associated get and put to define the structure.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi Friends,
How to pass FileName Path as querystring in javascript.I have passed like this var file='comment_popup.aspx?Path='+hid.value; when i put alert(file) its getting D:workReview115-02.xml but the path name should come like this D:\work\Review\15-02.xml.How to pass the correct path name as querystring please help me.
Thanks in Advance
|
|
|
|
|
Have the value UrlEncoded before passing it in the querystring.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi Vasudevan Deepak Kumar,
Thanks for reply i have one doubt whether we have to put UrlEncode(hid.value) in the querystring.
Thanks in Advance
|
|
|
|
|
If you are building a querystring from serverside, use Server.UrlEncode() .
You can encode the querystring from JavaScript, you ought to use escape function.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi Vasudevan Deepak Kumar,
I m passing querystring from javascript, as you told i have used escape(hid.value) but when i retreving the value at server side Request.QueryString["Path"].ToString() its not getting right path and also its getting half of the letter from filename.Please Help me Sorry for disturbing.
Thanks in Advance
|
|
|
|
|
Hai friends,
I hava a javascript function like this in aspx page's html side.
function calculate()
{
alert('welcome');
document.getElementById("<%=lbl_netamount.ClientID%>").innerText
= currency_show_conversion(document.getElementById("lbl_netamt").innerText,"INR","USD");
var amount= document.getElementById("<%=lbl_netamount.ClientID%>").innerText;
'<%=Session["Amount"]%>'=amount;
document.getElementById("lbl_netamount").value = '<%=Session["Amount"]%>';
}
I need to take the value from this scipt function into aspx.cs page.what I need to do for that?I write in Pageload event that
btn_checkout.Attributes.Add("OnClick", "javascript:calculate()");
But while clicking the button btn_checkout nothing is happend.What wrong with my code.Please give any solution.How can i take value from html side to aspx.cs page.and also check if any mistake in my script.....Please help.
Thanks
Bijesh
|
|
|
|
|
Use Hidden field and make it run at server access this hidden field by using its id and assign the value
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi,
Thanks for ur reply.
Please give some sample code .How assign to hidden field and take the values to aspx.cs part.
Thanks agaain,
Bijesh
|
|
|
|
|
Are U getting values into amount??
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On load in .aspx
onload="setThankMessage();
in .aspx.cs page
function setThankMessage() {
document.getElementById('relationship').value = '<%=Session["hydPatientRelatnshipPR"]%>';
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~JJ
<div class="ForumSig">My Blogs...
<a href="http://programmingmaterials.blogspot.com" target="_blank">.Net Interview Questions</a><br>
<a href="http://nseonlinetrading.blogspot.com" target="_blank">All about my Online Trading</a></br></div>
|
|
|
|
|
hello,
I got the value,it is printing in form.but i need it in any label or text box controls.
Thanks
Bijesh
|
|
|
|