How do I get an HWND for an aspx page?

N

None

Hi,

How do I get an HWND for an aspx page? like
System.Windows.Forms.Form.ActiveForm.Handle.ToInt32() in Windows Forms.
If anybody knows solution please let me know it.

Thanks,
Vinoth
 
T

Tom Porterfield

Hi,

How do I get an HWND for an aspx page? like
System.Windows.Forms.Form.ActiveForm.Handle.ToInt32() in Windows Forms.
If anybody knows solution please let me know it.

Do you mean you want the handle of the web browser being used to view the
rendered output? An aspx page in and of itself doesn't have a handle. The
client application that is being used to view the rendered output of the
aspx page may have a handle but I'm not sure what good that would do you.
What exactly is it you are trying to do?
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,


You can't . all the asp.net code is executed server side, when it reach the
client browser it's just standard html.

why you want it in the first place?
what r u trying to do?


cheers,
 
J

John Timney \( MVP \)

You can only get a handle for the local browser window, the contents (the
aspx outpout) are rendered from a remote server which knows nothing about
windows handles.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top