Solved

I need to understand where C# and Browser meet

Posted on 2011-03-14
5
286 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 9

Assisted Solution

by:gery128
gery128 earned 500 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 500 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

688 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