473,770 Members | 4,198 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Postback issue?

Postbacks cause a webform to re-display the page at the top. Well, I have a
fairly long form and would like the page display to be re-positioned where
the user clicked the button that caused the postback to occur.

Is there a way to do this?

Mervin Williams

Nov 18 '05 #1
4 1284
That is the purpose of SmartNavigation . You can look into this. Be sure to
test your site thoroughly because the SmartNavigation architecture can cause
some problems with a site.

"Mervin Williams" <mw*******@inno vasolutions.net > wrote in message
news:O7******** *****@tk2msftng p13.phx.gbl...
Postbacks cause a webform to re-display the page at the top. Well, I have a fairly long form and would like the page display to be re-positioned where
the user clicked the button that caused the postback to occur.

Is there a way to do this?

Mervin Williams

Nov 18 '05 #2
Thanks much!

By the way, is there an article that spells out some of the problems
encountered when using SmartNavigation ?

Mervin Williams

"Peter Rilling" <pe***@nospam.r illing.net> wrote in message
news:OU******** ******@TK2MSFTN GP11.phx.gbl...
That is the purpose of SmartNavigation . You can look into this. Be sure to test your site thoroughly because the SmartNavigation architecture can cause some problems with a site.

"Mervin Williams" <mw*******@inno vasolutions.net > wrote in message
news:O7******** *****@tk2msftng p13.phx.gbl...
Postbacks cause a webform to re-display the page at the top. Well, I have
a
fairly long form and would like the page display to be re-positioned

where the user clicked the button that caused the postback to occur.

Is there a way to do this?

Mervin Williams


Nov 18 '05 #3
There might be, but what I know of SmartNavigation is though my own
questions on newsgroups. I have not seen any article that documents the
architecture's behavior.

It may just come through trial and error as you determine what does and does
not work.

Basically, here is how SmartNavigation works. When you turn SmartNavigation
on, the page is rendered with a hidden iframe (visible if you view the
page's source). This iframe is the container for all submit requests. If
you click the submit button, the form data is copied to the iframe and
submitted there. The iframe then returns from the server and some
JavaScript will copy the DOM from the iframe to the main page. That is how
the browser can stay at the same place, it is never reloaded.

If you dynamically create JavaScript that is returned from the server based
on posted conditions, then you may run into problems because the JavaScript
will run in the iframe, not the main page. Also, you cannot turn
SmartNavigation off once it is on because the main page is never refreshed.

"Mervin Williams" <mw*******@inno vasolutions.net > wrote in message
news:uo******** ******@TK2MSFTN GP11.phx.gbl...
Thanks much!

By the way, is there an article that spells out some of the problems
encountered when using SmartNavigation ?

Mervin Williams

"Peter Rilling" <pe***@nospam.r illing.net> wrote in message
news:OU******** ******@TK2MSFTN GP11.phx.gbl...
That is the purpose of SmartNavigation . You can look into this. Be sure
to
test your site thoroughly because the SmartNavigation architecture can

cause
some problems with a site.

"Mervin Williams" <mw*******@inno vasolutions.net > wrote in message
news:O7******** *****@tk2msftng p13.phx.gbl...
Postbacks cause a webform to re-display the page at the top. Well, I

have
a
fairly long form and would like the page display to be re-positioned

where the user clicked the button that caused the postback to occur.

Is there a way to do this?

Mervin Williams



Nov 18 '05 #4
I too have had problems with SmartNavigation , I personally would use set
focus to the control you want on postback.

"Peter Rilling" <pe***@nospam.r illing.net> wrote in message
news:e5******** ******@tk2msftn gp13.phx.gbl...
There might be, but what I know of SmartNavigation is though my own
questions on newsgroups. I have not seen any article that documents the
architecture's behavior.

It may just come through trial and error as you determine what does and does not work.

Basically, here is how SmartNavigation works. When you turn SmartNavigation on, the page is rendered with a hidden iframe (visible if you view the
page's source). This iframe is the container for all submit requests. If
you click the submit button, the form data is copied to the iframe and
submitted there. The iframe then returns from the server and some
JavaScript will copy the DOM from the iframe to the main page. That is how the browser can stay at the same place, it is never reloaded.

If you dynamically create JavaScript that is returned from the server based on posted conditions, then you may run into problems because the JavaScript will run in the iframe, not the main page. Also, you cannot turn
SmartNavigation off once it is on because the main page is never refreshed.
"Mervin Williams" <mw*******@inno vasolutions.net > wrote in message
news:uo******** ******@TK2MSFTN GP11.phx.gbl...
Thanks much!

By the way, is there an article that spells out some of the problems
encountered when using SmartNavigation ?

Mervin Williams

"Peter Rilling" <pe***@nospam.r illing.net> wrote in message
news:OU******** ******@TK2MSFTN GP11.phx.gbl...
That is the purpose of SmartNavigation . You can look into this. Be sure
to
test your site thoroughly because the SmartNavigation architecture can

cause
some problems with a site.

"Mervin Williams" <mw*******@inno vasolutions.net > wrote in message
news:O7******** *****@tk2msftng p13.phx.gbl...
> Postbacks cause a webform to re-display the page at the top. Well,

I have
a
> fairly long form and would like the page display to be re-positioned

where
> the user clicked the button that caused the postback to occur.
>
> Is there a way to do this?
>
> Mervin Williams
>
>
>



Nov 18 '05 #5

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

Similar topics

1
4712
by: Rhys | last post by:
I have a page which has an IFrame on it. The src of the IFrame is a page with a datagrid on it. The Datagrid has bound template columns. The columns of the datagrid pass the bound data value of each cell within it to my code behind file which generates the HTML to display the data in a formatted text box, some of which is editable, some of which is not. The idea here is that the user can look at a page with a scrolling 'window'. Move...
7
1850
by: Anand | last post by:
Hi All, The postback on my desktop stopped working. I am trying to run the webapplication locally on my desktop and the Postback on my home page won't trigger on any of my dropdown selections. The error on the displayed HTML points to the line in the PostBack event which is not my code but the auto generated code for the postback event. Have anybody else faced this issue. Any help appreciated. Thanks Anand
5
2433
by: Tom Anderson | last post by:
I am currently having an issue with an ASP.Net 1.1 Web page that does the following remotely but not locally. Click on a control Check for postback, if postback, handle the event, otherwise populate page with options. What is happening is that remotely the page is doing a double postback, then doing a post without data at all resulting in the event being fired twice, then redirecting to the incorrect option in a dropdown (going to...
2
620
by: Wizzard | last post by:
I have a repeater with and imagebutton on a page useing VS2005 ASP.Net 2.0 <asp:Repeater ID="Repeater1" runat="server" > <ItemTemplate> <div> <asp:ImageButton ImageUrl="button.gif" ID="ImageButton1" runat="server" /> <p><%# Eval("Name") %></p> </div> </ItemTemplate>
1
1373
by: Jason | last post by:
I have a webpage that I've wrapped in an Atlas UpdatePanel. This page contains four textboxes, each with AutoPostBack set to true. The problem comes when someone edits the first box and tabs to the second box. They have enough time to make a quick edit to the second box before the postback completes and then the value in the second textbox is reset to the original value. Is there anything I can do about this? It's really causing...
3
2760
by: teo | last post by:
Mozilla error on postback and validation ----------- A Button causes a Listbox to desappear. If no item has been selected on the Listbox, all is OK. If one or more items are selected,
11
14829
by: antonyliu2002 | last post by:
I know that this has been asked and answered thousands of times. As a matter of fact, I know that I need to say If Not Page.IsPostBack Then 'Do something End If for things that needs to be processed by the web server. I am still struggling to understand this postback logic, and hope that some kind gurus out there could help me clarify the confusion I have.
6
2904
by: Dmitry Duginov | last post by:
Hi, I have the following label markup (label is inside FormView): <asp:Label ID="lblIndicatorReady" runat="server" Text="RE" ToolTip="Ready" BackColor='<%# Eval("Ready").ToString()=="True"?System.Drawing.Color.FromName("#FFFF80"):System.Drawing.Color.White %>' Enabled='<%# Eval("Ready") %>'
2
2103
by: =?Utf-8?B?SlA=?= | last post by:
Hi all. I'm having a problem with a postback issue and I think it's cache related. Here's my setup: I have a web site that has a signup section. This has simple things like name, age, birth date, etc. When the user visits this page for the first time, a person's data object that is used to store the user's name, age, birth date, etc. is created and stored in session. On the first visit to this page, the object is empty. Whenever the...
4
1504
by: Doogie | last post by:
Basically, I have two custom dates the user can enter via a popup calendar. These dates are stored into text boxes. Then the user can click a button (Run Report) and those values (as well as others) are used to build an SRS url string. This used to work before I modified the page to make the calendar a popup. Now, the text boxes lose their value when the user clicks the run report button. I have verified this is happening because...
0
9425
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,...
0
10059
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
9871
tracyyun
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...
0
8887
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...
0
6679
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
5313
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
5452
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2817
bsmnconsultancy
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...

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.