473,765 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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*******@nospa m.com
Nov 18 '05 #1
7 5730
This should be accomplished using anabling smartNavigatio at either
application level (in Web.Config file) or at page level (in Page directive)

"moondaddy" <mo*******@nosp am.com> ha scritto nel messaggio
news:uG******** ********@TK2MSF TNGP10.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*******@nospa m.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.i t> wrote in message
news:uV******** ******@TK2MSFTN GP12.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*******@nosp am.com> ha scritto nel messaggio
news:uG******** ********@TK2MSF TNGP10.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*******@nospa m.com


Nov 18 '05 #3
Hi moondaddy,

I'm reviewing the messages and find that this one is similiar with another
one:
"Subject:Ho w 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.m icrosoft.com> wrote in message
news:DM******** *****@cpmsftngx a07.phx.gbl...
Hi moondaddy,

I'm reviewing the messages and find that this one is similiar with another
one:
"Subject:Ho w 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(containe r) 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.m icrosoft.com> wrote in message
news:pW******** ******@cpmsftng xa07.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(containe r) 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
3180
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. When I try to add a new row to UC1 the requiredfieldvalidators for UC2 fire and therefore the page is not posted. If I remove one control, everything works fine. I have 2 questions. 1. How can I get the validators for each control to only...
2
3404
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 information, but when it comes to loading the data for the user control, nothing loads. From my understanding, during postback, the user control should reload the new information based on the postback. Some information: The aspx dynamically...
11
1252
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 rk.aspnet&sMessageID=%253C7d8d01c3b4a1%2524412f7770% 2524a601280a@phx.gbl%253E The problem has not fixed till now.
2
1465
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 on each postback. It needs one postback roundtrip to "get it back". Form has an "add panel" button. Using it I dynamically add 3 panels with a remove button on each, A B C, to the page.
0
2292
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 at the bottom. In my controlling .aspx page, in the page_init() sub, if not postback, I load two user controls and place them in placeholders. This works and a trace statement in each user control's page load handler is executed on initial...
1
2904
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 these values (i.e., no button to cause a postback). The problem I'm having is that I need a number of validations to be performed on the data entry, but I don't know how to do this without having the user control/page posted back to the server. ...
9
3191
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 load with different data (locations, departments, etc.).
15
3627
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" and the other listing "Linked Tasks", I have two buttons which in javascript move items from the first list into the second. Then when a user clicks a thrid button I would like to save this data.
2
3017
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 large datagrid or form), we store the grid or form in Session Object. On PostBack we grab the control from the session, add it to our main form. In VS 2003 (1.1), the page will fire any event called in the custom control, e.g, cmdSave_Click. ...
0
10156
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8831
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7375
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5419
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.