Solved

I need to understand where C# and Browser meet

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel file not created as expected 7 50
In WPF / C# binding a local database in code behind 1 24
Run time Error 4 34
Displaying a web form as a modal popup dialog box. 4 24
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 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

16 Experts available now in Live!

Get 1:1 Help Now