473,387 Members | 1,785 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,387 software developers and data experts.

Anchor question

Hi

I have a rather lengthy web form. Near the end of the form (one must scroll
down to reach it) I have a dropdown list control w/ the autopostback set to
true. When the user changes the index the post back occurs, I handle the
code, no problem. However, what I wold like to happen is that when the html
is returned to the client that the page automatically shows the bottom
where the dropdown list is. I have placed an anchor tag in the html next to
the cbo control tag, but can't quite figure out how to use it correctly, or
rather modifying the return URL string so the client browser does what I
would like..

Anyone help out?

TIA
Steve
Nov 18 '05 #1
2 1256
Steve Peterson wrote:
Hi

I have a rather lengthy web form. Near the end of the form (one must
scroll down to reach it) I have a dropdown list control w/ the
autopostback set to true. When the user changes the index the post
back occurs, I handle the code, no problem. However, what I wold like
to happen is that when the html is returned to the client that the
page automatically shows the bottom where the dropdown list is. I
have placed an anchor tag in the html next to the cbo control tag,
but can't quite figure out how to use it correctly, or rather
modifying the return URL string so the client browser does what I
would like..
Anyone help out?

TIA
Steve


You can set "SmartNavigation" on. This should work in IE, not in other
browsers, but even there I had problems: external stylesheets got lost.

There are several components "out there" that try to maintain scrollposition
between postbacks.

Hans Kesting
Nov 18 '05 #2
Hi Hans

Thx for your reply. I tried turning on SmartNavigation and it seemed to work
fine. However, iexplorer.exe will throw an error if I close the browser at
this page. If I follow a link from this page to another page or hit "back"
button & close, then browser closes fine. I have no clue why the following
error is thrown:

"The instruction at "0x1003e8d" referenced memeory at "0x1003e8d" . The
memory could not be "read".
Click OK to terminate program

I'm running the latest version of IE
(6.0.2900.2180.xpsp2_rtm.0040803-2158)...

Like I said - this error only happens if I have SmartNavigation on (I tried
both ways - in @Page directive & setting it by code). Page closes fine w/
out SmartNavigation on..

mmmm, bug in IE?

Steve

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:uX*************@TK2MSFTNGP11.phx.gbl...
Steve Peterson wrote:
Hi

I have a rather lengthy web form. Near the end of the form (one must
scroll down to reach it) I have a dropdown list control w/ the
autopostback set to true. When the user changes the index the post
back occurs, I handle the code, no problem. However, what I wold like
to happen is that when the html is returned to the client that the
page automatically shows the bottom where the dropdown list is. I
have placed an anchor tag in the html next to the cbo control tag,
but can't quite figure out how to use it correctly, or rather
modifying the return URL string so the client browser does what I
would like..
Anyone help out?

TIA
Steve


You can set "SmartNavigation" on. This should work in IE, not in other
browsers, but even there I had problems: external stylesheets got lost.

There are several components "out there" that try to maintain
scrollposition
between postbacks.

Hans Kesting


Nov 18 '05 #3

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

Similar topics

7
by: Niall Linden | last post by:
i have a form with lots of data, and when they click on a button it calls some javascript which sets values in hidden fields then posts to itself (usual stuff) now the problem is that i would...
3
by: Ton den Hartog | last post by:
What is the difference between a link and an anchor in Javascript (DOM level 0) ? Ton -- Computer museum tonh: http://www.tonh.net/museum - 10.000 visitors !! GGGallery website generator:...
1
by: Jack Fox | last post by:
I am saving some formated html fragments (text, some formatting tags and anchor tags) in a SQL text column then writing it to a page. Something strange is happening with the anchor tags within the...
2
by: Frank Rizzo | last post by:
This maybe a very simple question, but i can't find the answer. I placed a button dead center in the middle of the form. How do I anchor it (or dock it or whatever), so that it always remains in...
3
by: gary | last post by:
Hi, I am trying to reference an anchor in a user control with a url. This worked in 1.1 but no longer works in 2.0. The ascx control is located in a "/include" folder If you have a...
10
by: elibol | last post by:
Hi, Is there an event that fires when the back or forward button on a browser is pressed? I need an event to fire when someone clicks the back or forward button after an anchor has been set. ...
1
by: sridev | last post by:
Hai all, I am working in ASP.NET. I my page I am having two user controls as usercontrol1, usercontrol2 In usercontrol1, i am having two anchor control and i will load the text for anchor...
5
by: Randy Webb | last post by:
The list below has the current section number, proposed anchor name, and then the current title of that section. Some make sense, some don't. There are a few that don't have proposed anchor names...
3
by: Joseph Gruber | last post by:
Hi all -- I have two questions. First, I'm adding a control to my form at runtime and the control/form seems to ignore the anchor property of the runtime control. Any idea how I can get a...
1
by: David C | last post by:
I have posted this question, which I think is very simple on several sites, and nobody seems to know what I am talking about. At my wits end here. Please help. I am putting together a site...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...

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.