Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Design Time Support

Reply
Thread Tools

Design Time Support

 
 
Zviki Goldberg
Guest
Posts: n/a
 
      04-18-2004
Hi..

I need to know in design time in ASP.NET inside a control (for ex), who is
the Page that contain him. I tried to use the Pae property or the Parent
property but they are NULL.
I need tha page type or namr or something like that.

Is it possible ??

Thanks a lot

Zviki.


 
Reply With Quote
 
 
 
 
Rick Strahl [MVP]
Guest
Posts: n/a
 
      04-19-2004
Zviki,

I don't think so. The problem is that the page is basically a handler and
the handler is not really running. the DesignTime is only simulating a page
and firing off a few select events on each control (OnInit, Render
specifically).

Your best approach is most likely to check for designtime mode and dispay
information specifically for that. You can do this by checking
HttpContext.Current for null - if it's null you're in design time.

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
----------------------------------
Making waves on the Web


"Zviki Goldberg" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi..
>
> I need to know in design time in ASP.NET inside a control (for ex), who is
> the Page that contain him. I tried to use the Pae property or the Parent
> property but they are NULL.
> I need tha page type or namr or something like that.
>
> Is it possible ??
>
> Thanks a lot
>
> Zviki.
>
>



 
Reply With Quote
 
 
 
 
Zviki Goldberg
Guest
Posts: n/a
 
      04-19-2004
Hi

I need to go the the resource of the ASP.NET page and update it in design
time. Therefore, I need the page type or the page name which the control is
in.

Do you have maybe other ideas ??

Thanks..
Zviki

"Rick Strahl [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Zviki,
>
> I don't think so. The problem is that the page is basically a handler and
> the handler is not really running. the DesignTime is only simulating a

page
> and firing off a few select events on each control (OnInit, Render
> specifically).
>
> Your best approach is most likely to check for designtime mode and dispay
> information specifically for that. You can do this by checking
> HttpContext.Current for null - if it's null you're in design time.
>
> +++ Rick ---
>
> --
>
> Rick Strahl
> West Wind Technologies
> http://www.west-wind.com/
> http://www.west-wind.com/weblog/
> ----------------------------------
> Making waves on the Web
>
>
> "Zviki Goldberg" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi..
> >
> > I need to know in design time in ASP.NET inside a control (for ex), who

is
> > the Page that contain him. I tried to use the Pae property or the Parent
> > property but they are NULL.
> > I need tha page type or namr or something like that.
> >
> > Is it possible ??
> >
> > Thanks a lot
> >
> > Zviki.
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
URGENT opening- Technical Support Manager/ Lead/ Windows sys Support/admin- San Mateo, CA - Full Time prachi Java 0 01-17-2009 12:46 AM
Is time.time() < time.time() always true? flamesrock Python 8 11-24-2006 06:51 AM
Design Time support for custom ASP.Net controls onyxring ASP .Net 0 02-15-2006 04:01 AM
WebUserControl and design time support Christian H ASP .Net 0 09-30-2005 12:56 PM
How to Debug Design-Time support of ASP.NET Control =?Utf-8?B?amlt?= ASP .Net 4 11-30-2004 03:59 PM



Advertisments