|
The Session_End method only runs if there is a persistent session object that times out. The session object is only persisted if you have stored any session variables in it.
Also, a common misconception is that the session ends when the browser window is closed, which is not the case. The session ends when the session object on the server times out (by default 20 minutes after the last request).
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
HI
I had two textboxes username and password and a button(Submit).
Now if i press Enter Key from Keyboard instead of clicking on Submit button
the page should be automatically redirected to another page..........
Please some one help me..........
Thanks in Advance
|
|
|
|
|
in the password text box u write this javascript so that it will automatically calls the submit button when enter key is pressed...
go to source code and in password text box u write onkeydown ="return submitClick(window.event)"
in javascript
function suubmitClic()
{
if(event.keycode==13)//enter key asci code..
{
document.getElementbyid("sumit button name.ClientID").click();
}
}
|
|
|
|
|
Hi all I am using this code to retrive the HTML Table values
<script language="javascript">
function checkall()
{
debugger;
var tbl=document.getElementById('tblCycle');
var tblLength=tbl.rows.length;
for(intcount=1;intcount<tblLength;intcount++)
{
var tblCells=tbl.rows.item(intcount).cells;
var tblCellCount=tblCells.length;
for (icount=0;icount<tblCellCount;icount++)
{
}
}
}
</script>
But I am facing the otherProblem. I have added TextBoxes in my table. But the outText is not printing the value from the textbox. If i use the innerHTML then it just print the attributes. How can Retrive the textbox values ?
Dana
|
|
|
|
|
Use the value property of the textbox element.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
i want to filter a dropdown list with java script code.
my drop down contain 1 2 3 4 5 ...
and i want show just 1 or 2 just one of them. can i remove the others? how?
|
|
|
|
|
HI, i am doing webapplicaton using validation controls...
I have 5 textboxex and 1 button in my page. i set validation controls like RequiredFieldValidator and CompareFieldValidator.
When i click on button without filling the form, all error messages are displaying at a time.. But i need to display message one by one..
what to do for this?
Thank you
G. Satish
|
|
|
|
|
in vb.net we can stop the fuctionality of a code for some time usig threads.in the same way is it possible to stop a javascript fuction for some time
|
|
|
|
|
Not really. Javascript is strictly single threaded, so if you pause the script for a few seconds, the browser freezes up totally and does nothing until the script continues.
If you want the execution of a script to continue after a while, use a timeout to start a function:
function work() {
window.setTimeout('work2();', 5000);
}
function work2() {
}
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
function work() { // do something window.setTimeout('work2();', 5000); // continue after 5 seconds}function work2() { // continue doing something}
sir will u explain once again plz..this example
Thanks in advance....
|
|
|
|
|
The setTimeout method adds a timer in the window object. After the specified time (5000 milliseconds), the code ('work2();') is executed, which will run the work2 function.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
i need coding in asp.net for the version controlling of documents with name , date modified and version no in the same way like your quick search (i.e., in the same way where my question is posted ), could you please help me ASAP
Sahi
|
|
|
|
|
Hi Guys using stroed procedure i try to display some datas in my datagrid,
This stored procedure working good in my query analyzer,
o/p will be like this:
01/01/2008 101 108 Other Expense
01/01/2008 101 109 Own Vehicle Fuel
01/02/2008 101 100 Air
01/02/2008 101 101 Train
01/02/2008 101 102 Bus
01/02/2008 101 103 Local Conveyance
01/02/2008 101 104 Boarding
But when i bind the values in my datagrid,
Its showing the datagrid dateplace only,
01/01/1900, i dont know whats the probs,
Anyone have idea abt this?,
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
Hi Mageshh,
I think problem is the dateformat you are using..
Please check the date format u r using while binding with the datagrid
Happy programming.
|
|
|
|
|
Hi all,
I am adding one HyperLink Button in My HTML Table. Now I want to excute an Javascript Function on the click Event of that HyperLink Button. How can I. Here is the code I am using for creating the Hyperlink Button
Dim TH As New TableHeaderCell
Dim hlCopy As New HyperLink
hlCopy.ID = "hlCopy"
hlCopy.ImageUrl = "images/ArrowDownRed.gif"
hlCopy.BorderWidth = Unit.Pixel(1)
'hlCopy.NavigateUrl = "javscript:checkall()"
TH.HorizontalAlign = HorizontalAlign.Center
TH.Width = Unit.Percentage(Perc)
TH.Text = Text
th.Controls.Add(hlCopy)
TR.Cells.Add(TH)
|
|
|
|
|
Hi danasegaranea,
Try this one..
hyperlinkbuttonID.Attribute.Add("onclick","JavascriptFunctionName();");
Happy Programming
|
|
|
|
|
Hi danasegaranea,
Try this one..
hyperlinkbuttonID.Attributes.Add("onclick","JavascriptFunctionName();");
Happy Programming
|
|
|
|
|
Thanks Vijay,
I have done like this and its working
hlCopy.Attributes.Add("OnClick", "javascript:checkall()")
Dana
|
|
|
|
|
Pleae let me know the process of creating a chat application in ASP.Net
using C# .
Thanking u alll..
Happy Programming...
|
|
|
|
|
design it
build it
test it.
Hope that helps
|
|
|
|
|
Hi All i m using the datagrid but i m not able to update the data in my Table.
pls help me.
Manish
|
|
|
|
|
Hi i am working as a software engineer.
I have to develop an application specially for safari browser in which the scroll bar position will be maintained after the postback..
I am able to do it in IE,OPERA,FF using "MaintainScrollPositionOnPostback"
but not in safari.
Please help.
Thanks in advance.
Vijay kumar
|
|
|
|
|
Hello to all the ASP.Net programmers....
any one can please help me out to how to work with Data Viewer in
ASP.Net?Please.......Reply to my post....
thanking you all....
|
|
|
|
|
Dear Thota..
You can do it using gridview..
A grid view is very much similar to dataviewer
modified on Monday, February 04, 2008 5:15:47 AM
|
|
|
|
|
u have to two events at the server
1.Row data bound
2.and other one is pageindexchanging
modified on Monday, February 04, 2008 5:13:06 AM
|
|
|
|