PC Review


Reply
Thread Tools Rate Thread

The best place

 
 
etam
Guest
Posts: n/a
 
      27th May 2007
Hi,

where is the best place for setting components on load but only if
this is not a postback?

protected void Page_Load(object sender, EventArgs e) {
if(!Page.IsPostBack) {
//here?
}
}

Regards,
Etam.

 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      27th May 2007
On May 27, 8:42 pm, etam <odwrot...@gmail.com> wrote:
> Hi,
>
> where is the best place for setting components on load but only if
> this is not a postback?
>
> protected void Page_Load(object sender, EventArgs e) {
> if(!Page.IsPostBack) {
> //here?
> }
> }
>
> Regards,
> Etam.


yup :-)

 
Reply With Quote
 
Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
Guest
Posts: n/a
 
      29th May 2007
That's not a terrible place, although the Page_Init event might be better
depending on exactly what it is you're trying to do.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net


"etam" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> where is the best place for setting components on load but only if
> this is not a postback?
>
> protected void Page_Load(object sender, EventArgs e) {
> if(!Page.IsPostBack) {
> //here?
> }
> }
>
> Regards,
> Etam.
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Putting a certificate in the proper place after accidentally puttingit in the wrong place Morris Cox Windows Vista Security 5 4th Sep 2007 06:46 PM
WORD, how do i place a SIMPLE BRIGHT bookmark to save my place =?Utf-8?B?cGV0ZXI=?= Microsoft Word Document Management 2 30th Sep 2006 10:22 PM
How do I place fields on a subform in specific place =?Utf-8?B?bWlrZXdlbGxz?= Microsoft Access VBA Modules 0 7th Sep 2004 06:37 AM
Can I change my physical place of a user profile place on hard disk? Vahid Windows XP Customization 2 21st Aug 2004 09:50 PM
Can I change my physical place of a user profile place on hard disk? Vahid Windows XP Customization 0 6th Aug 2004 09:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:39 AM.