?
Solved

I need to understand where C# and Browser meet

Posted on 2011-03-14
5
Medium Priority
?
293 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 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
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.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

771 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