List Info

Thread: C-Sharp (C#) Group: Re: Help please with masterpages and postback????




C-Sharp (C#) Group: Re: Help please with masterpages and postback????
user name
2006-06-29 16:06:12
swatsonblackrapid.com wrote:
> When I use Respond.Redirect the master page get a none
post back load
> message so the dropdownlist clears itself and reloads
the companies
> (which is correct!) but I thought that postback==false
only happen once
> when the page is loaded, the masterpage gets this with
every change to
> the master content?

Actually, anytime you call a Response.Redirect() method, the
resulting
page will not be loaded by a postback, even if it is the
same page.

As far as whether the master page gets a postback every time
a content
page changes, I'm not sure I follow. The master pages are
not much more
than templates for your site. They can fire generic events
that are not
specific to pages in your site, use controls that you want
all pages to
have, and generally maintain a consistent look-and-feel for
your site.
Also, they give you the ability to not have to re-write a
whole lot of
your code if you have a "user friendly" or
"aesthetically pleasing" web
site.

If I knew a bit more what you were trying to accomplish, I
could
probably answer your questions better. Unfortunately, all I
got was
that you have a list of companies in a dropdown, and I'm
assuming when
the user selects one, you have the control post back
automatically to
then do something with it in the page code. Other than that,
I have no
idea what you are trying to accomplish, or what is standing
in your
way.

Sorry I couldn't be of more help, but I hope that did clear
up
something about master pages.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )