|
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.
|
|
|
|
|
Hello,
I am trying to build a sample applicaion "address book". I have followed DAL, BLL and then the actual web page models till now.
But now I am trying my hands on VS 2008. And noticed lot of different type of projects. Like MVC Template, Dynamic Data web applicaion and so on.. and there are various ORM tools also not a days available.
How to identify which one should I use?
If we use the ORM tools like NHYBERNATE, LINQ can we blow them up to be an enterprise applicaion?
Regards,
Pavas
|
|
|
|
|
I would say use only tools that you understand. You can build any website without these tools. If you don't know how to use them, they will do more harm than good.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I agree with you. But there should be some purpose of these ORM tools and hence was trying to explore them.
Thanks for your response
Regards,
Pavas
|
|
|
|
|
mpavas wrote: But there should be some purpose of these ORM tools and hence was trying to explore them.
I think Google is the best friend to explore a new thing and technology.
Best of Luck !!
|
|
|
|
|
I am calling in another aspx page in javascript to get response. but during the execution the IE get frezzed.
any solution for this problem
One person's data is another person's program.
--J.Walia
|
|
|
|
|
Have you set breakpoints to see where the execution is freezing ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
i used for loop in javascript
this may be the cause?????
One person's data is another person's program.
--J.Walia
|
|
|
|
|
You can use the Fiddler or YSlow for detailed analysis.
Either you love IT or leave IT...
|
|
|
|
|
Hi,
My Project has references of Activeds and ADODB but as soon as i am building the setup it is asking for the Activeds and ADODB to be excluded. After these dlls are excluded the setup project is making a setup of the program. Now that i have excluded these dlls, the application is not running on another computer after the setup installation is complete.
Thanks
Shweta
|
|
|
|
|
Hello
I’m developing a website on tourism. It is public website where no authentication is required. I have around 200 topics which we need to cover. Instead of having 200 different html pages we were planning to have one single page which will display html content after fetching from database. We are planning to store all html for 200 topic in database table. We tested this approach with couple of topics and it is working fine.
Here I have a concern where I need your opinion:
Will above approach affect the google search engine to rate our different pages? Does this effect SEO activities…
Please suggest…Because for each topic meta tags will also be in database tables.
If your reply is yes please suggest some other alternative as we don’t want to maintain 200 different pages……..
PS: I had also posted the same question on Web Development forum, not sure who can reply in best way...........
Thanks,
Amit
|
|
|
|