System.Web.UI.Page 
Author Message
 System.Web.UI.Page

I would like to pass a reference to System.Web.UI.Page to a .DLL as it
contains a more complete list of page data references.  Below is what I am
currently doing and would like to modify to pass a .Page reference, but I
don't no how to do it.  Could someone show me how to pass and receive a
.Page reference.

Currently I am doing the following:

.ASPX file

<%
 XML_Tests p = new XML_Tests();
 p.Test1( Session, Application, Request, Response);
%>

.cs File from seperate .DLL

namespace NSMAIN
{
 public class XML_Tests
 {
  HttpSessionState Session;
  HttpApplicationState Application;
  HttpRequest  Request;
  HttpResponse  Response;

  public void Test1( HttpSessionState pSession,
     HttpApplicationState pApplication,
     HttpRequest pRequest,
     HttpResponse pResponse )
  {
   Session  = pSession;
   Application = pApplication;
   Request  = pRequest;
   Response = pResponse;

   // Code Here.
  }
 }

Quote:
}



Sat, 18 Sep 2004 05:04:13 GMT  
 System.Web.UI.Page

Quote:
> I would like to pass a reference to System.Web.UI.Page to a .DLL as it
> contains a more complete list of page data references.  Below is what I am
> currently doing and would like to modify to pass a .Page reference, but I
> don't no how to do it.  Could someone show me how to pass and receive a
> .Page reference.

You can use the "this" keyword in your call to p.Test1(). I modified your
code below:

Quote:
> .ASPX file

> <%
>  XML_Tests p = new XML_Tests();
>  p.Test1( Session, Application, Request, Response, this);
> %>

> .cs File from seperate .DLL

> namespace NSMAIN
> {
>  public class XML_Tests
>  {
>   HttpSessionState Session;
>   HttpApplicationState Application;
>   HttpRequest  Request;
>   HttpResponse  Response;
>   System.Web.UI.Page page;

>   public void Test1( HttpSessionState pSession,
>      HttpApplicationState pApplication,
>      HttpRequest pRequest,
>      HttpResponse pResponse,
>      System.Web.UI.Page page )
>   {
>    Session  = pSession;
>    Application = pApplication;
>    Request  = pRequest;
>    Response = pResponse;
>    this.page = page

>    // Code Here.
>   }
>  }
> }

PMP

--

To respond by e-mail, remove DELETEME from the address.
To hire me, visit http://www.parkscomputing.com/resume.html



Sat, 18 Sep 2004 10:51:30 GMT  
 System.Web.UI.Page
Thank You.


Quote:


> > I would like to pass a reference to System.Web.UI.Page to a .DLL as it
> > contains a more complete list of page data references.  Below is what I
am
> > currently doing and would like to modify to pass a .Page reference, but
I
> > don't no how to do it.  Could someone show me how to pass and receive a
> > .Page reference.

> You can use the "this" keyword in your call to p.Test1(). I modified your
> code below:

> > .ASPX file

> > <%
> >  XML_Tests p = new XML_Tests();
> >  p.Test1( Session, Application, Request, Response, this);
> > %>

> > .cs File from seperate .DLL

> > namespace NSMAIN
> > {
> >  public class XML_Tests
> >  {
> >   HttpSessionState Session;
> >   HttpApplicationState Application;
> >   HttpRequest  Request;
> >   HttpResponse  Response;
> >   System.Web.UI.Page page;

> >   public void Test1( HttpSessionState pSession,
> >      HttpApplicationState pApplication,
> >      HttpRequest pRequest,
> >      HttpResponse pResponse,
> >      System.Web.UI.Page page )
> >   {
> >    Session  = pSession;
> >    Application = pApplication;
> >    Request  = pRequest;
> >    Response = pResponse;
> >    this.page = page

> >    // Code Here.
> >   }
> >  }
> > }

> PMP

> --

> To respond by e-mail, remove DELETEME from the address.
> To hire me, visit http://www.parkscomputing.com/resume.html



Sat, 18 Sep 2004 13:06:22 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Subclassing System.Web.UI.Page

2. Adding Web Controls to the System.Web.UI.WebControls namespace

3. Layout of Custom System.Web.UI.UserControl Objects added to parent

4. can't find namespace using System.Web.UI.Design

5. Q: SelectedIndexChanged event for System.Web.UI.WebControls.DropDownList

6. System.Web.UI.WebControls.FontInfo

7. I can not find System.Web.UI.WebControls

8. System.Web and web related questions

9. Web Application UI Template

10. Microsoft.Web.UI.WebControls.{MultiPage, TabStrip}

11. Creating a Web UI

12. Microsoft.Web.UI.WebControls

 

 
Powered by phpBB® Forum Software