I'm building a page in vb.net with several user controls on it. I'm using
user controls instead of a frames page since I've seen this recommended many
times in this user group. I want just one of the user controls to do a
postback but not the rest of the page. Is this possible? it seems like it
should be. If it is, please explain how I can do it.
Thanks.
-- mo*******@nospam.com 7 5709
This should be accomplished using anabling smartNavigatio at either
application level (in Web.Config file) or at page level (in Page directive)
"moondaddy" <mo*******@nospam.com> ha scritto nel messaggio
news:uG****************@TK2MSFTNGP10.phx.gbl... I'm building a page in vb.net with several user controls on it. I'm using user controls instead of a frames page since I've seen this recommended
many times in this user group. I want just one of the user controls to do a postback but not the rest of the page. Is this possible? it seems like
it should be. If it is, please explain how I can do it.
Thanks.
-- mo*******@nospam.com
Thanks Stefano,
Although SmartNavigation offers a lot of benefit, its not a fix-all all the
time and its still very different from having only the content of a user
control doing the postback while the rest of the page stays put. I'm still
looking for a way to have a user control postback while preventing the
parent page from posting back.
"stefano mostarda" <st**************@fastwebnet.it> wrote in message
news:uV**************@TK2MSFTNGP12.phx.gbl... This should be accomplished using anabling smartNavigatio at either application level (in Web.Config file) or at page level (in Page
directive) "moondaddy" <mo*******@nospam.com> ha scritto nel messaggio news:uG****************@TK2MSFTNGP10.phx.gbl... I'm building a page in vb.net with several user controls on it. I'm
using user controls instead of a frames page since I've seen this recommended many times in this user group. I want just one of the user controls to do a postback but not the rest of the page. Is this possible? it seems like it should be. If it is, please explain how I can do it.
Thanks.
-- mo*******@nospam.com
Hi moondaddy,
I'm reviewing the messages and find that this one is similiar with another
one:
"Subject:How to send parameter to user control postback"
Please feel free to post in that thread if you have any questions or need
any assistance. I'll be willing to help you. Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Actually Steven, the reply in the thread you mention below helped me get
past that challenge with brought me to the next challenge which is this one
which is " Have only one user control do postback and parent page does not"
which is very different from the parameter question. I'm still searching
the universe for a clear answer on this one. I've gotten lots of answers
telling me how to make it look like just the user control is doing a
postback, but in reality, the whole page is posting back. I know there's
lots you can do with caching and I'm trying to learn about the many
different ways to cache a page or part of the page, but I haven't found
anything that clearly shows how to force only the contents of the user
control to postback while the remaining content of the parent page does no
postback. It would be great if you could help me on this task.
Thanks.
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:DM*************@cpmsftngxa07.phx.gbl... Hi moondaddy,
I'm reviewing the messages and find that this one is similiar with another one: "Subject:How to send parameter to user control postback" Please feel free to post in that thread if you have any questions or need any assistance. I'll be willing to help you. Thanks.
Regards,
Steven Cheng Microsoft Online Support
Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.)
Hi moondaddy,
Thanks for your followup. I've posted the reply in another thread of yours
subjected "Are Frame pages really taboo in ASP.NET". In fact, the two
problems can be conclued into the same. Since in the frame based pages, for
example a page contains a iframe. Then, the iframe's page is totally a
different page from its parent(container) page, so when the iframe 's page
is posted back, it won't affect its parent page. However, as for the
UserControl, it is a part of the parent page, what's why we can't prevent
the parent page being posted back when the sub page is posted back. So I
still recommend that you use the iframe if you do want to prevent the
container page from being posted back. Do you think so?
If you still feel anything unclear on this issue, please feel free to let
me know.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
How about the iFrame's compatibility with other browsers like older Netscape
browsers?
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:pW**************@cpmsftngxa07.phx.gbl... Hi moondaddy,
Thanks for your followup. I've posted the reply in another thread of yours subjected "Are Frame pages really taboo in ASP.NET". In fact, the two problems can be conclued into the same. Since in the frame based pages,
for example a page contains a iframe. Then, the iframe's page is totally a different page from its parent(container) page, so when the iframe 's page is posted back, it won't affect its parent page. However, as for the UserControl, it is a part of the parent page, what's why we can't prevent the parent page being posted back when the sub page is posted back. So I still recommend that you use the iframe if you do want to prevent the container page from being posted back. Do you think so? If you still feel anything unclear on this issue, please feel free to let me know.
Regards,
Steven Cheng Microsoft Online Support
Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.)
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Alphonse Giambrone |
last post by:
I have a web form with 2 user controls on it (UC1 and UC2).
Each control has a bound datagrid with textboxes in the footer to add a new
row. There are also requiredfieldvalidators in each footer....
|
by: Duwayne |
last post by:
I am having lots of trouble with one of my user controls (ascx) not
automatically loading postback data. An image on the aspx page starts
the postback and the parent has no problem loading it's own...
|
by: Tom |
last post by:
Hi all,
I posted the same question one week ago in
http://communities.microsoft.com/newsgroups/previewFrame.as
p?
ICP=msdn&sLCID=us&sgroupURL=microsoft.public.dotnet.framewo...
|
by: mawi |
last post by:
Hi there,
When removing page children controls created dynamically
not in last-to-first order, the close button of the last
control looses its event wiring, even though the handler is
rewired...
|
by: jonelling |
last post by:
I am having a problem where the page load event is not being fired
for certain user controls that I load dynamically in placeholders.
Here is what I'm doing in brief, with full test code supplied...
|
by: panche |
last post by:
I'm developing a fairly simple user control that has two textboxes for
date/time entry (a from date/time and a to date/time). One of my
requirements is that there should be no button that sets...
|
by: Gummy |
last post by:
Hello,
I created a user control that has a ListBox and a RadioButtonList (and other
stuff). The idea is that I put the user control on the ASPX page multiple
times and each user control will...
|
by: mc |
last post by:
I'm writing an app for managing Task Lists, I'm trying to add some
controls to a form that I can use to link tasks, my original intention
was to: -
Add two list boxes, one listing "all Tasks"...
|
by: HammRadio |
last post by:
I am exploring converting my web app (current Framework 1.1) to
Framework 2.0. Everything went smoothly save for one item. To reduce
the trips to the database, when loading user controls (like a...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |