Hi,
I have a UserControl that contain :
1 treeview
1 datagrid
and so on ...
Is there a way to postback ONLY ONE control and not all content in my Usercontrol ?
(because all contents in my usercontrol in my aspx page flicker)
Thanks !
Dany 4 1786
No, the postback has to do with a post to the server. A post to the server
is an HTTP request for a page - not for parts of the page - IIS doesn't know
anything about that.
So the answer is no, that is just how it is. If you don't want flickering,
you will have to write lot's of javascript to do all the work on the client.
"Dan" <pr****@hotmail .com> wrote in message
news:b2******** *************** **@posting.goog le.com... Hi,
I have a UserControl that contain : 1 treeview 1 datagrid and so on ...
Is there a way to postback ONLY ONE control and not all content in my
Usercontrol ? (because all contents in my usercontrol in my aspx page flicker)
Thanks !
Dany
Dan, Marina,
There are several situations when posting the entire form is just overkill.
For those cases where you just need to post few values, something like what
Dan describes, you could use the XMLHttp component (or netscape's verbatim
XMLHttpRequest) to achieve a "soft" postback. This won't cause any
flickering. And yes, you will need to write some javascript in order to
handle this. Its not hard at all but you will need to get handy with these
components, etc. ASP.NET 2.0 will include built-in support for these
soft-postback (called "Callbacks" in the current alpha release) that should
simplify the required javascript thus making it easier to use these
functionallity in your webapps.
--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog: http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
"Marina" <so*****@nospam .com> wrote in message
news:eB******** ******@TK2MSFTN GP12.phx.gbl... No, the postback has to do with a post to the server. A post to the
server is an HTTP request for a page - not for parts of the page - IIS doesn't
know anything about that.
So the answer is no, that is just how it is. If you don't want
flickering, you will have to write lot's of javascript to do all the work on the
client. "Dan" <pr****@hotmail .com> wrote in message news:b2******** *************** **@posting.goog le.com... Hi,
I have a UserControl that contain : 1 treeview 1 datagrid and so on ...
Is there a way to postback ONLY ONE control and not all content in my Usercontrol ? (because all contents in my usercontrol in my aspx page flicker)
Thanks !
Dany
It's goods news that ASP.NET 2.0 will include built-in support for these
soft-postback !But what's time we can get ASP.NET 2.0?
--
=============== =============== =============== ========
* ÃλÃÈçÕ棡 ¡¡¡¡*
* ÎÒºÜÕæ³Ï£¬µ«ÎÒÉ ú»îÔÚ»ÑÑÔÖ®ÖС£ ¡¡¡¡*
* ¡¡¡¡*
* ÎÒÅ×ÆúÁËËùÓеÄÓ ÇÉËÓëÒÉÂÇ£¬È¥×· ÖðÄÇÎ޼ҵij±Ë®£ ¬ *
* ÖÕÓÚÕÒµ½ÁËÒ»¸ö° ®ÎÒµÄÅ®ÈË£¬´Ó´Ë ʧȥÁË×ÔÓÉ£¡ ¡¡ *
*[csharp] °ßÖñ ÌÀ½¨¾ü ¡¡ ¡¡*
=============== =============== =============== ========
"Victor Garcia Aprea [MVP]" <vg*@NOobiesSPA M.com> дÈëÏûÏ¢
news:uc******** ******@tk2msftn gp13.phx.gbl... Dan, Marina,
There are several situations when posting the entire form is just
overkill. For those cases where you just need to post few values, something like
what Dan describes, you could use the XMLHttp component (or netscape's verbatim XMLHttpRequest) to achieve a "soft" postback. This won't cause any flickering. And yes, you will need to write some javascript in order to handle this. Its not hard at all but you will need to get handy with these components, etc. ASP.NET 2.0 will include built-in support for these soft-postback (called "Callbacks" in the current alpha release) that
should simplify the required javascript thus making it easier to use these functionallity in your webapps.
-- Victor Garcia Aprea Microsoft MVP | ASP.NET Looking for insights on ASP.NET? Read my blog: http://obies.com/vga/blog.aspx To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
"Marina" <so*****@nospam .com> wrote in message news:eB******** ******@TK2MSFTN GP12.phx.gbl... No, the postback has to do with a post to the server. A post to the server is an HTTP request for a page - not for parts of the page - IIS doesn't know anything about that.
So the answer is no, that is just how it is. If you don't want flickering, you will have to write lot's of javascript to do all the work on the client. "Dan" <pr****@hotmail .com> wrote in message news:b2******** *************** **@posting.goog le.com... Hi,
I have a UserControl that contain : 1 treeview 1 datagrid and so on ...
Is there a way to postback ONLY ONE control and not all content in my Usercontrol ? (because all contents in my usercontrol in my aspx page flicker)
Thanks !
Dany
AFAIK, a public beta1 should be going out soon. As for the RTM bits, I
believe they should be out around mid-2005.
Please note that all these dates are MY speculation only, nothing official
:-)
--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog: http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
"ÌÀ½¨¾ü" <ta******@hotma il.com> wrote in message
news:Om******** *****@tk2msftng p13.phx.gbl... It's goods news that ASP.NET 2.0 will include built-in support for these soft-postback !But what's time we can get ASP.NET 2.0?
-- =============== =============== =============== ======== * ÃλÃÈçÕ棡 ¡¡¡¡* * ÎÒºÜÕæ³Ï£¬µ«ÎÒÉ ú»îÔÚ»ÑÑÔÖ®ÖС£ ¡¡¡¡* * ¡¡¡¡* * ÎÒÅ×ÆúÁËËùÓеÄÓ ÇÉËÓëÒÉÂÇ£¬È¥×· ÖðÄÇÎ޼ҵij±Ë®£ ¬ * * ÖÕÓÚÕÒµ½ÁËÒ»¸ö° ®ÎÒµÄÅ®ÈË£¬´Ó´Ë ʧȥÁË×ÔÓÉ£¡ ¡¡ * *[csharp] °ßÖñ ÌÀ½¨¾ü ¡¡ ¡¡* =============== =============== =============== ======== "Victor Garcia Aprea [MVP]" <vg*@NOobiesSPA M.com> дÈëÏûÏ¢ news:uc******** ******@tk2msftn gp13.phx.gbl... Dan, Marina,
There are several situations when posting the entire form is just overkill. For those cases where you just need to post few values, something like what Dan describes, you could use the XMLHttp component (or netscape's
verbatim XMLHttpRequest) to achieve a "soft" postback. This won't cause any flickering. And yes, you will need to write some javascript in order to handle this. Its not hard at all but you will need to get handy with
these components, etc. ASP.NET 2.0 will include built-in support for these soft-postback (called "Callbacks" in the current alpha release) that should simplify the required javascript thus making it easier to use these functionallity in your webapps.
-- Victor Garcia Aprea Microsoft MVP | ASP.NET Looking for insights on ASP.NET? Read my blog: http://obies.com/vga/blog.aspx To contact me remove 'NOSPAM'. Please post all questions to the
newsgroup "Marina" <so*****@nospam .com> wrote in message news:eB******** ******@TK2MSFTN GP12.phx.gbl... No, the postback has to do with a post to the server. A post to the server is an HTTP request for a page - not for parts of the page - IIS
doesn't know anything about that.
So the answer is no, that is just how it is. If you don't want flickering, you will have to write lot's of javascript to do all the work on the client. "Dan" <pr****@hotmail .com> wrote in message news:b2******** *************** **@posting.goog le.com... > Hi, > > I have a UserControl that contain : > 1 treeview > 1 datagrid > and so on ... > > Is there a way to postback ONLY ONE control and not all content in
my Usercontrol ? > > (because all contents in my usercontrol in my aspx page flicker) > > > Thanks ! > > Dany
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: moondaddy |
last post by:
I have a user control being used instead of a frame page. when the user
clicks on a menu item I need to send the ID (integer value) of that menu as
a parameter in the postback of the user control which will be used to query
sql server to repopulate the datagrid in the user control.
I also wrapped the user control in a panel element so I could position it on
the page.
I'm clueless on how to get started with this.
|
by: Mike Dole |
last post by:
I experimented with a usercontrol (TagedTextbox), I added a tag
property.
The tag value however is not persisted on postback (text value's
fine)?
I worked around it with:
Me.ViewState("tag") = txtToelichting.Tag
but what's wrong with my code?
|
by: Tim_Mac |
last post by:
hi,
i have an aspx page which dynamically loads a user control and adds it
to a placeholder. the control is recreated and added to the
placeholder for postbacks as well.
the user control contains a datagrid and some buttons and textboxes.
the button events fire correctly and execute their code. however, the
datagrid events fire a postback, and execute Page_load in the
usercontrol, but the Item_Command code is not executed. the code to...
|
by: jon |
last post by:
I'm trying to establish how to replace a usercontrol that has already
been loaded (using LoadControl in the Page.Load event) with a
different UserControl following a PostBack. Tying to call
LoadControl(<newControlName>) after the Page.Load routine has finished
does not appear to work. The only way I can think of doing this is to
call Server.Transfer or Request.Redirect to start a new instance of
the form but this means I loose ViewState...
|
by: DKode |
last post by:
Hello,
I am trying to call a UserControl after postback to save data filled
out on that usercontrol to sql server.
The problem I am having is this, I have 2 LinkButtons that I have setup
as tabs on my app, the user fills out information on UserControl_1,
when they click a different tab, I want to load UserControl_2 and save
the data that was entered into UserControl_1.
| |
by: Joanne |
last post by:
Hi,
I have an "interesting" problem with UserControls in a datagrid and I'm
desperate for your help as I work alone and have no-one else to ask. It
is quite complicated but I'll try to keep it to a simple example ...
FormQuestionAnswer.ascx
-----------------------
I have a user Control that displays a question (from a questionnaire)
and its answer (as previously selected by a user). The question has a
|
by: gregfocker |
last post by:
I'm playing w/this sample:
http://ajax.asp.net/docs/tutorials/CreateSimpleAJAXApplication.aspx
and am trying to get this to work in a UserControl. Clicking to select
a different page of data causes the page to PostBack. Is there a way
to prevent this and just have the async postback occur in the
UserControl without the postback.
fyi - Doing this directly on the page (instead of a UserControl) per
|
by: pearcewg |
last post by:
All:
I have a page with a form and fields on the form (checkboxes, grids,
etc).
This form contains a usercontrol which has a dynamic navigational menu
of buttons.
When a user clicks on one of the buttons in the usercontrol, it is
intended to save the updates information on the parent form. This is
done using a delegate/callback function to save the data. The
callback works great, and the save method is called on the parent
|
by: philippe sillon |
last post by:
I have a stupid problem but not able to find solution :(
I have repeater that create user control (WebUserControl1) . I pass parameter (InterationString) to user control that is "Container.DataItem" of repeater.
When Usercontrol postback page (autopostback=true on dropdownlist), UserControl lose parameter value. InterationString is correctly set on first loading but on postback, IterationString property is null.
Thank for your help.
...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |