Solved

I need to understand where C# and Browser meet

Posted on 2011-03-14
5
280 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 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now