?
Solved

I need to understand where C# and Browser meet

Posted on 2011-03-14
5
Medium Priority
?
302 Views
Last Modified: 2012-05-11
From an ASP.NET C# program, what functions can be called in the browser? I need a complete list of functions and properties that I have at my disposal. I am trying to understand how the C# program can determine state of the browser, and want to understand all calls that can be made.

Thanks,
newbieweb
0
Comment
Question by:newbieweb
  • 3
  • 2
5 Comments
 
LVL 9

Assisted Solution

by:gery128
gery128 earned 2000 total points
ID: 35128836
ASP.NET is web technology, you don't have direct control on client browser. When a user interacts with browser (button click or some other action) the browser sends request to IIS (ASP.NET server), the server generates response according to user action and send back the response by parsing it into HTML. Because browsers only understands the HTML.

What exactly you want to achieve?
0
 

Author Comment

by:newbieweb
ID: 35128863
I want to be able to discern that the browser is in the process of being closed by the user. Then I would log off the user and allow the browser to close.
0
 

Author Comment

by:newbieweb
ID: 35128878
What "services" does the browser provide that can be queried from JavaScript? I know using the DOM that many attributes of the browser can be read.  Maybe the answer to my question is to learn about the DOM.
0
 
LVL 9

Accepted Solution

by:
gery128 earned 2000 total points
ID: 35129075
First of all, there is no solid way to determine if the browser is being closed by user. Similar questions have been posted earlier.

Secondly, if you want to play around with DOM using javascript,  you can refer following link, which is step by step explanation of accessing DOM.
http://geek.starbean.net/?page_id=71
0
 

Author Closing Comment

by:newbieweb
ID: 35129103
Thanks.
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Loops Section Overview
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question