|
yeh... well how can i trap this event ? i want to 'handle' this unhandled exception..
|
|
|
|
|
Or take the 'ryanair' approach - "Clicking this button more than once might result in the purchase of several flights..."
|
|
|
|
|
... or you can say "click only once, its not a shooting range"
|
|
|
|
|
Hai Guys,
In my project need to import contacts from various sites. I need code for importing contacts for hotmail/rediffmail in Asp.net
Can anybody help me out..urgent pls
Thanks
|
|
|
|
|
You may need to access the web services of the various websites to fetch the various contact list.
Either you love IT or leave IT...
|
|
|
|
|
can i have sample code for this please.
|
|
|
|
|
Think youself! Just not difficult. Trust you!
|
|
|
|
|
i have a week number and year
eg: week 34 of 2009
i wanna to know the date of the week
my week day start with Sunday
thanx
|
|
|
|
|
Find either the first Sunday of '09, or the last Sunday of '08 (depending on how you want to count that) and add 34*7 days.
10110011001111101010101000001000001101001010001010100000100000101000001000111100010110001011001011
|
|
|
|
|
In my aplication I've to trace logged in and logged out for an user. I've created a table that contains information about logged in and logged out time of an user. whenever an user logged in i simply add a record in this table and when user logged out i simply update this table. now suppose that when a user close its browser by clicking on cross icon of browser or after a session time out then in this case user logically time out. then in this case how i update table for user logged out?
|
|
|
|
|
Handle the Browser Close using Java script, Open a popup on Browser close and in the code behind, do the server side stuff for update the data and then close the popup.
This will resolve your issue.
|
|
|
|
|
How can I Handle the Browser Close using Java script? plz help me.
|
|
|
|
|
2489128 wrote: How can I Handle the Browser Close using Java script? plz help me.
function DeleteUserLog()
{
if(window.event.clientX < 0 && window.event.clientY <0)
{
window.open("CloseSession.aspx", "OpenWindow_Close_Session",'left=12000,top=1200,width=10,height=1');
}
}
and on CloseSession.aspx page do the staff.
modified on Friday, May 1, 2009 5:42 AM
|
|
|
|
|
thanks. on which event will i have to call method DeleteUserLog?
|
|
|
|
|
if you have the master page you can call it on Body Unload if you dont have the master page you have to give it on body unload of all form (If page number is very less ) other wise developed a Handler to do the stuff.
Cheers !!
|
|
|
|
|
hi. i have put this code in window.onload event: window.event.clientX < 0 && window.event.clientY <0 and on clicking browser's close button we always find window.event.clientY < 0 and window.event.clientX > 0. so i'm unable to track browser's close event.
|
|
|
|
|
Unless they have popups blocked?
|
|
|
|
|
never trust that your popup will go though use a web service or a hidden iframe
... free hand didn't test this code
var iframe = docuemnt.createElement("iframe")
docuemnt.body.appendChild(iframe);
iframe.setAttribute("src", "logOut.aspx");
|
|
|
|
|
could u provide code for it?
|
|
|
|
|
add the code from my last post the window.onbeforeunload event
|
|
|
|
|
|
Is there an example where I can see how exactly ASP.NET MVC will work with traditional ADO.NET approch. I see all the example implemented with ORM tools like LINQ or ADO.NET Entity data model.
All the ASP.NET MVC example use ADO.NET Entity data model.
Please suggest.
Regards,
Pavas
|
|
|
|
|
Did some one have a say on this!
Regards,
Pavas
|
|
|
|
|
Hello,
i want to create buttons in run time.as
for(int i=0;i<5;i++)
{
Button b1=new Button();
this.Controls,add(b1);
}
now how can i identify click event of these 5 b1 buttons. As they all have same name.can i create button as b1,b2--b5 in run time and identify click event of that.in vb i use control array for this.but haow can it be used in C#.
thanks,
Rahul
|
|
|
|
|
You have to add EventHandler .
btn.Click += new EventHandler(btn_Click);
But for all different button, you need to create Array of Button object and Add different method with different button click.
|
|
|
|