473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Have only one user control do postback and parent page does not

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
Nov 18 '05 #1
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

Nov 18 '05 #2
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


Nov 18 '05 #3
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.)

Nov 18 '05 #4
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.)


Nov 18 '05 #5
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.)
Nov 18 '05 #6
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.)

Nov 18 '05 #7
Hi moondaddy,
Thanks for the followup. As for the capatibility of iFrame tag with
different browsers, base on my research, the most latest version of other
browsers all support the Iframe element. But since it is a relatively new
tag, some older browser may not support it, for example the Netscape4 and
its lower version. And here is a web link to a articel which discussing on
this topic:

#[thelist] iFrame Browser Compatibility
http://lists.evolt.org/archive/Week-...03/133862.html

In addtion, here is some other tech refereces on iframe:
#Description of Frames in W3C
http://www.w3.org/TR/REC-html40/present/frames.html

#TAG: iframe
http://www.devguru.com/Technologies/...ml_iframe.html

Hope they're helpful.
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.)

Nov 18 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
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....
2
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...
11
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...
2
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...
0
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...
1
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...
9
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...
15
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"...
2
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...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
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...
0
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
Oralloy
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.