Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Capture Browser screen


Message #1 by "Leitner Christoph" <christoph@o...> on Tue, 24 Jul 2001 13:57:58 +0200

How can I capture the browsers screen in the Page_Load funktion in an 

ASP.Net application ?



Christoph





Message #2 by "Thomas Tomiczek" <t.tomiczek@t...> on Tue, 24 Jul 2001 14:21:12 +0200
Not at all.



Period.



Why?



ASP.NET is generating HTML code. The Page_Load event has nothing to do

with the page loading on the lclient, but with the page loading on the

server in order to then generate the client HTML code.



Now, what HTML do you want to emit in order to catch the client Screen?



Would qou really like that any stupid webpage you visit (even the really

stupid private ones) can catch your whole screen?



Regards



Thomas Tomiczek

THONA Consulting Ltd.



-----Original Message-----

From: Leitner Christoph [mailto:christoph@o...]

Sent: Dienstag, 24. Juli 2001 13:58

To: ASP+

Subject: [aspx] Capture Browser screen





How can I capture the browsers screen in the Page_Load funktion in an 

=3D

ASP.Net application ?



Christoph





Message #3 by "Leitner Christoph" <christoph@o...> on Wed, 25 Jul 2001 12:18:33 +0200
I only need the solution of the client screen nothing more.



I have an Asp.Net application with c# code and I have an factor which should

change by the screen solution of the client.

schould work then like the teh following code

public class bottom : System.Web.UI.Page



{



    public double intFactorResize = 1 ;



    private void Page_Load(object sender, System.EventArgs e)



    {



        // Put user code to initialize the page here



        if(  ScreenSolution.width < 1280 )



            intFactorResize = 1.5 ;



    }



}



Christoph

----- Original Message -----

From: "Thomas Tomiczek" <t.tomiczek@t...>

To: "ASP+" <aspx@p...>

Sent: Tuesday, July 24, 2001 2:21 PM

Subject: [aspx] RE: Capture Browser screen





Not at all.



Period.



Why?



ASP.NET is generating HTML code. The Page_Load event has nothing to do

with the page loading on the lclient, but with the page loading on the

server in order to then generate the client HTML code.



Now, what HTML do you want to emit in order to catch the client Screen?



Would qou really like that any stupid webpage you visit (even the really

stupid private ones) can catch your whole screen?



Regards



Thomas Tomiczek

THONA Consulting Ltd.



-----Original Message-----

From: Leitner Christoph [mailto:christoph@o...]

Sent: Dienstag, 24. Juli 2001 13:58

To: ASP+

Subject: [aspx] Capture Browser screen





How can I capture the browsers screen in the Page_Load funktion in an 

ASP.Net application ?



Christoph
Message #4 by "Thomas Tomiczek" <t.tomiczek@t...> on Wed, 25 Jul 2001 13:20:41 +0200
Hm, looks like you first qustion was WAY off.



Some Browsers (IE) give you he resolution as a variable in the request

:-) Look through them - I don't have the variable name in my head.



Stil=F6l, you can NOT rely on it.



Thomas Tomiczek

THONA Consulting Ltd.





-----Original Message-----

From: Leitner Christoph [mailto:christoph@o...]

Sent: Mittwoch, 25. Juli 2001 12:19

To: ASP+

Subject: [aspx] RE: Capture Browser screen



I only need the solution of the client screen nothing more.



I have an Asp.Net application with c# code and I have an factor which

should

change by the screen solution of the client.

schould work then like the teh following code

public class bottom : System.Web.UI.Page



{



    public double intFactorResize =3D 1 ;



    private void Page_Load(object sender, System.EventArgs e)



    {



        // Put user code to initialize the page here



        if(  ScreenSolution.width < 1280 )



            intFactorResize =3D 1.5 ;



    }



}



Christoph

----- Original Message -----

From: "Thomas Tomiczek" <t.tomiczek@t...>

To: "ASP+" <aspx@p...>

Sent: Tuesday, July 24, 2001 2:21 PM

Subject: [aspx] RE: Capture Browser screen





Not at all.



Period.



Why?



ASP.NET is generating HTML code. The Page_Load event has nothing to do

with the page loading on the lclient, but with the page loading on the

server in order to then generate the client HTML code.



Now, what HTML do you want to emit in order to catch the client Screen?



Would qou really like that any stupid webpage you visit (even the really

stupid private ones) can catch your whole screen?



Regards



Thomas Tomiczek

THONA Consulting Ltd.



-----Original Message-----

From: Leitner Christoph [mailto:christoph@o...]

Sent: Dienstag, 24. Juli 2001 13:58

To: ASP+

Subject: [aspx] Capture Browser screen





How can I capture the browsers screen in the Page_Load funktion in an 

=3D

ASP.Net application ?



Christoph





Message #5 by "Leitner Christoph" <christoph@o...> on Wed, 25 Jul 2001 15:18:17 +0200
I can't find the variable !

I got



UserHostName

UserHostAddress

UserHostLanguages

but i found nothing for the solution of the client screen



Christoph



----- Original Message -----

From: "Thomas Tomiczek" <t.tomiczek@t...>

To: "ASP+" <aspx@p...>

Sent: Wednesday, July 25, 2001 1:20 PM

Subject: [aspx] RE: Capture Browser screen





Hm, looks like you first qustion was WAY off.



Some Browsers (IE) give you he resolution as a variable in the request

:-) Look through them - I don't have the variable name in my head.



Stilöl, you can NOT rely on it.



Thomas Tomiczek

THONA Consulting Ltd.





-----Original Message-----

From: Leitner Christoph [mailto:christoph@o...]

Sent: Mittwoch, 25. Juli 2001 12:19

To: ASP+

Subject: [aspx] RE: Capture Browser screen



I only need the solution of the client screen nothing more.



I have an Asp.Net application with c# code and I have an factor which

should

change by the screen solution of the client.

schould work then like the teh following code

public class bottom : System.Web.UI.Page



{



    public double intFactorResize = 1 ;



    private void Page_Load(object sender, System.EventArgs e)



    {



        // Put user code to initialize the page here



        if(  ScreenSolution.width < 1280 )



            intFactorResize = 1.5 ;



    }



}



Christoph

----- Original Message -----

From: "Thomas Tomiczek" <t.tomiczek@t...>

To: "ASP+" <aspx@p...>

Sent: Tuesday, July 24, 2001 2:21 PM

Subject: [aspx] RE: Capture Browser screen





Not at all.



Period.



Why?



ASP.NET is generating HTML code. The Page_Load event has nothing to do

with the page loading on the lclient, but with the page loading on the

server in order to then generate the client HTML code.



Now, what HTML do you want to emit in order to catch the client Screen?



Would qou really like that any stupid webpage you visit (even the really

stupid private ones) can catch your whole screen?



Regards



Thomas Tomiczek

THONA Consulting Ltd.



-----Original Message-----

From: Leitner Christoph [mailto:christoph@o...]

Sent: Dienstag, 24. Juli 2001 13:58

To: ASP+

Subject: [aspx] Capture Browser screen





How can I capture the browsers screen in the Page_Load funktion in an 

ASP.Net application ?



Christoph







---

Message #6 by Richard Purchas <rpurchas@f...> on Wed, 25 Jul 2001 23:34:44 +1000
It might be better to rely on information sourced at the client-end. 

i.e.

can you use the DOM to obtain this information and then post it back to 

the

server ?



> -----Original Message-----

> From: Leitner Christoph [mailto:christoph@o...]

> Sent: Wednesday, 25 July 2001 11:18 PM

> To: ASP+

> Subject: [aspx] RE: Capture Browser screen

>

>

> I can't find the variable !

> I got

>

> UserHostName

> UserHostAddress

> UserHostLanguages

> but i found nothing for the solution of the client screen

>

> Christoph

>

> ----- Original Message -----

> From: "Thomas Tomiczek" <t.tomiczek@t...>

> To: "ASP+" <aspx@p...>

> Sent: Wednesday, July 25, 2001 1:20 PM

> Subject: [aspx] RE: Capture Browser screen

>

>

> Hm, looks like you first qustion was WAY off.

>

> Some Browsers (IE) give you he resolution as a variable in the 

request

> :-) Look through them - I don't have the variable name in my head.

>

> Stil=F6l, you can NOT rely on it.

>

> Thomas Tomiczek

> THONA Consulting Ltd.

>

>

> -----Original Message-----

> From: Leitner Christoph [mailto:christoph@o...]

> Sent: Mittwoch, 25. Juli 2001 12:19

> To: ASP+

> Subject: [aspx] RE: Capture Browser screen

>

> I only need the solution of the client screen nothing more.

>

> I have an Asp.Net application with c# code and I have an factor which

> should

> change by the screen solution of the client.

> schould work then like the teh following code

> public class bottom : System.Web.UI.Page

>

> {

>

>     public double intFactorResize =3D 1 ;

>

>     private void Page_Load(object sender, System.EventArgs e)

>

>     {

>

>         // Put user code to initialize the page here

>

>         if(  ScreenSolution.width < 1280 )

>

>             intFactorResize =3D 1.5 ;

>

>     }

>

> }

>

> Christoph

> ----- Original Message -----

> From: "Thomas Tomiczek" <t.tomiczek@t...>

> To: "ASP+" <aspx@p...>

> Sent: Tuesday, July 24, 2001 2:21 PM

> Subject: [aspx] RE: Capture Browser screen

>

>

> Not at all.

>

> Period.

>

> Why?

>

> ASP.NET is generating HTML code. The Page_Load event has nothing to 

do

> with the page loading on the lclient, but with the page loading on 

the

> server in order to then generate the client HTML code.

>

> Now, what HTML do you want to emit in order to catch the

> client Screen?

>

> Would qou really like that any stupid webpage you visit (even

> the really

> stupid private ones) can catch your whole screen?

>

> Regards

>

> Thomas Tomiczek

> THONA Consulting Ltd.

>

> -----Original Message-----

> From: Leitner Christoph [mailto:christoph@o...]

> Sent: Dienstag, 24. Juli 2001 13:58

> To: ASP+

> Subject: [aspx] Capture Browser screen

>

>

> How can I capture the browsers screen in the Page_Load

> funktion in an =3D

> ASP.Net application ?

>

> Christoph

Message #7 by "Leitner Christoph" <christoph@o...> on Wed, 25 Jul 2001 15:44:38 +0200
I didn't try it with the DOM, but i don't want that the client must post it

back to me !



I only thought when I have an object with information about Browsertype,

clientIP, and much more information, the solution of the screen should be

also in it, because for a well done App which should run at 800x600,

1024x786 1280x1024 I need the solution for some resizeing !



Christoph



----- Original Message -----

From: "Richard Purchas" <rpurchas@f...>

To: "ASP+" <aspx@p...>

Sent: Wednesday, July 25, 2001 3:34 PM

Subject: [aspx] RE: Capture Browser screen





It might be better to rely on information sourced at the client-end. i.e.

can you use the DOM to obtain this information and then post it back to the

server ?



> -----Original Message-----

> From: Leitner Christoph [mailto:christoph@o...]

> Sent: Wednesday, 25 July 2001 11:18 PM

> To: ASP+

> Subject: [aspx] RE: Capture Browser screen

>

>

> I can't find the variable !

> I got

>

> UserHostName

> UserHostAddress

> UserHostLanguages

> but i found nothing for the solution of the client screen

>

> Christoph

>

> ----- Original Message -----

> From: "Thomas Tomiczek" <t.tomiczek@t...>

> To: "ASP+" <aspx@p...>

> Sent: Wednesday, July 25, 2001 1:20 PM

> Subject: [aspx] RE: Capture Browser screen

>

>

> Hm, looks like you first qustion was WAY off.

>

> Some Browsers (IE) give you he resolution as a variable in the request

> :-) Look through them - I don't have the variable name in my head.

>

> Stilöl, you can NOT rely on it.

>

> Thomas Tomiczek

> THONA Consulting Ltd.

>

>

> -----Original Message-----

> From: Leitner Christoph [mailto:christoph@o...]

> Sent: Mittwoch, 25. Juli 2001 12:19

> To: ASP+

> Subject: [aspx] RE: Capture Browser screen

>

> I only need the solution of the client screen nothing more.

>

> I have an Asp.Net application with c# code and I have an factor which

> should

> change by the screen solution of the client.

> schould work then like the teh following code

> public class bottom : System.Web.UI.Page

>

> {

>

>     public double intFactorResize = 1 ;

>

>     private void Page_Load(object sender, System.EventArgs e)

>

>     {

>

>         // Put user code to initialize the page here

>

>         if(  ScreenSolution.width < 1280 )

>

>             intFactorResize = 1.5 ;

>

>     }

>

> }

>

> Christoph

> ----- Original Message -----

> From: "Thomas Tomiczek" <t.tomiczek@t...>

> To: "ASP+" <aspx@p...>

> Sent: Tuesday, July 24, 2001 2:21 PM

> Subject: [aspx] RE: Capture Browser screen

>

>

> Not at all.

>

> Period.

>

> Why?

>

> ASP.NET is generating HTML code. The Page_Load event has nothing to do

> with the page loading on the lclient, but with the page loading on the

> server in order to then generate the client HTML code.

>

> Now, what HTML do you want to emit in order to catch the

> client Screen?

>

> Would qou really like that any stupid webpage you visit (even

> the really

> stupid private ones) can catch your whole screen?

>

> Regards

>

> Thomas Tomiczek

> THONA Consulting Ltd.

>

> -----Original Message-----

> From: Leitner Christoph [mailto:christoph@o...]

> Sent: Dienstag, 24. Juli 2001 13:58

> To: ASP+

> Subject: [aspx] Capture Browser screen

>

>

> How can I capture the browsers screen in the Page_Load

> funktion in an 

> ASP.Net application ?

>

> Christoph

Message #8 by "Thomas Tomiczek" <t.tomiczek@t...> on Wed, 25 Jul 2001 16:06:51 +0200
You are completely on the wrong topic here :-)



Sorry, it has been a long time since I made this work in ASP. Maybe

someone else can help you more, but



This information is transmitted, from CERTAIN browsers, in the request

as part of server variables. As such, it will be hidden somewhere in the

Request object - look at all the transmitted data.



If it is not there - then it is not there. I think it is an MS extension

to transmit this data. You are much better of redesigning your

application so that it works in a "variety of solutions" - actually, how

would you handle ms 1600x1200 screen? And what would you do if I

insisted on not giving you the whole screen estate - force me to have

the browser maximized?



Anyhow, the info is there.



Thomas Tomiczek

THONA Consulting Ltd.



-----Original Message-----

From: Leitner Christoph [mailto:christoph@o...]

Sent: Mittwoch, 25. Juli 2001 15:18

To: ASP+

Subject: [aspx] RE: Capture Browser screen



I can't find the variable !

I got



UserHostName

UserHostAddress

UserHostLanguages

but i found nothing for the solution of the client screen



Christoph



----- Original Message -----

From: "Thomas Tomiczek" <t.tomiczek@t...>

To: "ASP+" <aspx@p...>

Sent: Wednesday, July 25, 2001 1:20 PM

Subject: [aspx] RE: Capture Browser screen





Hm, looks like you first qustion was WAY off.



Some Browsers (IE) give you he resolution as a variable in the request

:-) Look through them - I don't have the variable name in my head.



Stil=F6l, you can NOT rely on it.



Thomas Tomiczek

THONA Consulting Ltd.





-----Original Message-----

From: Leitner Christoph [mailto:christoph@o...]

Sent: Mittwoch, 25. Juli 2001 12:19

To: ASP+

Subject: [aspx] RE: Capture Browser screen



I only need the solution of the client screen nothing more.



I have an Asp.Net application with c# code and I have an factor which

should

change by the screen solution of the client.

schould work then like the teh following code

public class bottom : System.Web.UI.Page



{



    public double intFactorResize =3D 1 ;



    private void Page_Load(object sender, System.EventArgs e)



    {



        // Put user code to initialize the page here



        if(  ScreenSolution.width < 1280 )



            intFactorResize =3D 1.5 ;



    }



}



Christoph

----- Original Message -----

From: "Thomas Tomiczek" <t.tomiczek@t...>

To: "ASP+" <aspx@p...>

Sent: Tuesday, July 24, 2001 2:21 PM

Subject: [aspx] RE: Capture Browser screen





Not at all.



Period.



Why?



ASP.NET is generating HTML code. The Page_Load event has nothing to do

with the page loading on the lclient, but with the page loading on the

server in order to then generate the client HTML code.



Now, what HTML do you want to emit in order to catch the client Screen?



Would qou really like that any stupid webpage you visit (even the really

stupid private ones) can catch your whole screen?



Regards



Thomas Tomiczek

THONA Consulting Ltd.



-----Original Message-----

From: Leitner Christoph [mailto:christoph@o...]

Sent: Dienstag, 24. Juli 2001 13:58

To: ASP+

Subject: [aspx] Capture Browser screen





How can I capture the browsers screen in the Page_Load funktion in an 

=3D

ASP.Net application ?



Christoph

Message #9 by "Chris Scott" <chris@e...> on Wed, 25 Jul 2001 15:24:07 -0700
Hi Christoph,



You could get the client dimensions using the javascript screen objects

width &  height properties, then store as cookies client side (or redirect

using document object and store as session if you don't want to use

cookies).



HTH



Chris





----- Original Message -----

From: "Leitner Christoph" <christoph@o...>

To: "ASP+" <aspx@p...>

Sent: Wednesday, July 25, 2001 3:18 AM

Subject: [aspx] RE: Capture Browser screen





> I only need the solution of the client screen nothing more.

>

> I have an Asp.Net application with c# code and I have an factor which

should

> change by the screen solution of the client.

> schould work then like the teh following code

> public class bottom : System.Web.UI.Page

>

> {

>

>     public double intFactorResize = 1 ;

>

>     private void Page_Load(object sender, System.EventArgs e)

>

>     {

>

>         // Put user code to initialize the page here

>

>         if(  ScreenSolution.width < 1280 )

>

>             intFactorResize = 1.5 ;

>

>     }

>

> }

>

> Christoph

> ----- Original Message -----

> From: "Thomas Tomiczek" <t.tomiczek@t...>

> To: "ASP+" <aspx@p...>

> Sent: Tuesday, July 24, 2001 2:21 PM

> Subject: [aspx] RE: Capture Browser screen

>

>

> Not at all.

>

> Period.

>

> Why?

>

> ASP.NET is generating HTML code. The Page_Load event has nothing to do

> with the page loading on the lclient, but with the page loading on the

> server in order to then generate the client HTML code.

>

> Now, what HTML do you want to emit in order to catch the client Screen?

>

> Would qou really like that any stupid webpage you visit (even the really

> stupid private ones) can catch your whole screen?

>

> Regards

>

> Thomas Tomiczek

> THONA Consulting Ltd.

>

> -----Original Message-----

> From: Leitner Christoph [mailto:christoph@o...]

> Sent: Dienstag, 24. Juli 2001 13:58

> To: ASP+

> Subject: [aspx] Capture Browser screen

>

>

> How can I capture the browsers screen in the Page_Load funktion in an 

> ASP.Net application ?

>

> Christoph

Message #10 by "Leitner Christoph" <christoph@o...> on Thu, 26 Jul 2001 09:07:10 +0200
How can I set an application or session varaible in javascript ?

Can you send me an example ?



Christoph



----- Original Message -----

From: "Chris Scott" <chris@e...>

To: "ASP+" <aspx@p...>

Sent: Thursday, July 26, 2001 12:24 AM

Subject: [aspx] RE: Capture Browser screen





> Hi Christoph,

>

> You could get the client dimensions using the javascript screen objects

> width &  height properties, then store as cookies client side (or redirect

> using document object and store as session if you don't want to use

> cookies).

>

> HTH

>

> Chris

>

>

> ----- Original Message -----

> From: "Leitner Christoph" <christoph@o...>

> To: "ASP+" <aspx@p...>

> Sent: Wednesday, July 25, 2001 3:18 AM

> Subject: [aspx] RE: Capture Browser screen

>

>

> > I only need the solution of the client screen nothing more.

> >

> > I have an Asp.Net application with c# code and I have an factor which

> should

> > change by the screen solution of the client.

> > schould work then like the teh following code

> > public class bottom : System.Web.UI.Page

> >

> > {

> >

> >     public double intFactorResize = 1 ;

> >

> >     private void Page_Load(object sender, System.EventArgs e)

> >

> >     {

> >

> >         // Put user code to initialize the page here

> >

> >         if(  ScreenSolution.width < 1280 )

> >

> >             intFactorResize = 1.5 ;

> >

> >     }

> >

> > }

> >

> > Christoph

> > ----- Original Message -----

> > From: "Thomas Tomiczek" <t.tomiczek@t...>

> > To: "ASP+" <aspx@p...>

> > Sent: Tuesday, July 24, 2001 2:21 PM

> > Subject: [aspx] RE: Capture Browser screen

> >

> >

> > Not at all.

> >

> > Period.

> >

> > Why?

> >

> > ASP.NET is generating HTML code. The Page_Load event has nothing to do

> > with the page loading on the lclient, but with the page loading on the

> > server in order to then generate the client HTML code.

> >

> > Now, what HTML do you want to emit in order to catch the client Screen?



> >

> > Would qou really like that any stupid webpage you visit (even the really

> > stupid private ones) can catch your whole screen?

> >

> > Regards

> >

> > Thomas Tomiczek

> > THONA Consulting Ltd.

> >

> > -----Original Message-----

> > From: Leitner Christoph [mailto:christoph@o...]

> > Sent: Dienstag, 24. Juli 2001 13:58

> > To: ASP+

> > Subject: [aspx] Capture Browser screen

> >

> >

> > How can I capture the browsers screen in the Page_Load funktion in an 

> > ASP.Net application ?

> >

> > Christoph

>
Message #11 by "Mats Boberg" <mats.boberg@n...> on Thu, 26 Jul 2001 11:35:30 +0200
I think you have to read the screen resolution, then redirect

the browser to a .aspx page with the resolution in the querystring with

javascript.

In the .aspx page read the resolution from the querystring and then save

the value in the session object.



Mats.



-----Original Message-----

From: Leitner Christoph [mailto:christoph@o...]

Sent: den 26 juli 2001 09:07

To: ASP+

Subject: [aspx] RE: Capture Browser screen





How can I set an application or session varaible in javascript ?

Can you send me an example ?



Christoph



----- Original Message -----

From: "Chris Scott" <chris@e...>

To: "ASP+" <aspx@p...>

Sent: Thursday, July 26, 2001 12:24 AM

Subject: [aspx] RE: Capture Browser screen





> Hi Christoph,

>

> You could get the client dimensions using the javascript screen objects

> width &  height properties, then store as cookies client side (or redirect

> using document object and store as session if you don't want to use

> cookies).

>

> HTH

>

> Chris

>

>

> ----- Original Message -----

> From: "Leitner Christoph" <christoph@o...>

> To: "ASP+" <aspx@p...>

> Sent: Wednesday, July 25, 2001 3:18 AM

> Subject: [aspx] RE: Capture Browser screen

>

>

> > I only need the solution of the client screen nothing more.

> >

> > I have an Asp.Net application with c# code and I have an factor which

> should

> > change by the screen solution of the client.

> > schould work then like the teh following code

> > public class bottom : System.Web.UI.Page

> >

> > {

> >

> >     public double intFactorResize =3D 1 ;

> >

> >     private void Page=5FLoad(object sender, System.EventArgs e)

> >

> >     {

> >

> >         // Put user code to initialize the page here

> >

> >         if(  ScreenSolution.width < 1280 )

> >

> >             intFactorResize =3D 1.5 ;

> >

> >     }

> >

> > }

> >

> > Christoph

> > ----- Original Message -----

> > From: "Thomas Tomiczek" <t.tomiczek@t...>

> > To: "ASP+" <aspx@p...>

> > Sent: Tuesday, July 24, 2001 2:21 PM

> > Subject: [aspx] RE: Capture Browser screen

> >

> >

> > Not at all.

> >

> > Period.

> >

> > Why?

> >

> > ASP.NET is generating HTML code. The Page=5FLoad event has nothing to do

> > with the page loading on the lclient, but with the page loading on the

> > server in order to then generate the client HTML code.

> >

> > Now, what HTML do you want to emit in order to catch the client Screen?



> >

> > Would qou really like that any stupid webpage you visit (even the really

> > stupid private ones) can catch your whole screen?

> >

> > Regards

> >

> > Thomas Tomiczek

> > THONA Consulting Ltd.

> >

> > -----Original Message-----

> > From: Leitner Christoph [mailto:christoph@o...]

> > Sent: Dienstag, 24. Juli 2001 13:58

> > To: ASP+

> > Subject: [aspx] Capture Browser screen

> >

> >

> > How can I capture the browsers screen in the Page=5FLoad funktion in an

 =3D

> > ASP.Net application ?

> >

> > Christoph

>

Message #12 by "Chris Scott" <chris@e...> on Thu, 26 Jul 2001 10:45:49 -0700
Christoph,



You cannot write an application/session variable direct from javascript, but

you can get the data & redirect:



<script language="javascript">

<!--//

var myWidth=screen.width;

var myHeight=screen.height;

var myUrl="myurl.aspx?width=" + myWidth + "&height=" + myHeight;

document.location.href=myUrl;

//-->

</script>



Then just store the information in session/application variable from the

querystring.



Best Regards,



Chris



----- Original Message -----

From: "Leitner Christoph" <christoph@o...>

To: "ASP+" <aspx@p...>

Sent: Thursday, July 26, 2001 12:07 AM

Subject: [aspx] RE: Capture Browser screen





> How can I set an application or session varaible in javascript ?

> Can you send me an example ?

>

> Christoph

>

> ----- Original Message -----

> From: "Chris Scott" <chris@e...>

> To: "ASP+" <aspx@p...>

> Sent: Thursday, July 26, 2001 12:24 AM

> Subject: [aspx] RE: Capture Browser screen

>

>

> > Hi Christoph,

> >

> > You could get the client dimensions using the javascript screen objects

> > width &  height properties, then store as cookies client side (or

redirect

> > using document object and store as session if you don't want to use

> > cookies).

> >

> > HTH

> >

> > Chris

> >

> >

> > ----- Original Message -----

> > From: "Leitner Christoph" <christoph@o...>

> > To: "ASP+" <aspx@p...>

> > Sent: Wednesday, July 25, 2001 3:18 AM

> > Subject: [aspx] RE: Capture Browser screen

> >

> >

> > > I only need the solution of the client screen nothing more.

> > >

> > > I have an Asp.Net application with c# code and I have an factor which

> > should

> > > change by the screen solution of the client.

> > > schould work then like the teh following code

> > > public class bottom : System.Web.UI.Page

> > >

> > > {

> > >

> > >     public double intFactorResize = 1 ;

> > >

> > >     private void Page_Load(object sender, System.EventArgs e)

> > >

> > >     {

> > >

> > >         // Put user code to initialize the page here

> > >

> > >         if(  ScreenSolution.width < 1280 )

> > >

> > >             intFactorResize = 1.5 ;

> > >

> > >     }

> > >

> > > }

> > >

> > > Christoph

> > > ----- Original Message -----

> > > From: "Thomas Tomiczek" <t.tomiczek@t...>

> > > To: "ASP+" <aspx@p...>

> > > Sent: Tuesday, July 24, 2001 2:21 PM

> > > Subject: [aspx] RE: Capture Browser screen

> > >

> > >

> > > Not at all.

> > >

> > > Period.

> > >

> > > Why?

> > >

> > > ASP.NET is generating HTML code. The Page_Load event has nothing to do

> > > with the page loading on the lclient, but with the page loading on the

> > > server in order to then generate the client HTML code.

> > >

> > > Now, what HTML do you want to emit in order to catch the client

Screen?

>

> > >

> > > Would qou really like that any stupid webpage you visit (even the

really

> > > stupid private ones) can catch your whole screen?

> > >

> > > Regards

> > >

> > > Thomas Tomiczek

> > > THONA Consulting Ltd.

> > >

> > > -----Original Message-----

> > > From: Leitner Christoph [mailto:christoph@o...]

> > > Sent: Dienstag, 24. Juli 2001 13:58

> > > To: ASP+

> > > Subject: [aspx] Capture Browser screen

> > >

> > >

> > > How can I capture the browsers screen in the Page_Load funktion in an



> > > ASP.Net application ?

> > >

> > > Christoph

> >

>

  Return to Index