Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bookmarks on web forms 1

Status
Not open for further replies.

shangrilla

Programmer
Nov 21, 2001
360
US
Hi:

I am redirecting users from one form to another -->
Redirect("WebForm.aspx?id="1234)

How can I put a bookmark on the webform and redirect them to a certain portion of the form where the bookmark is placed.
Sonmthing Like("WebForm.aspx?id="1234"#PSR")

The insert bookmark option is disabled.

Thanks in advance.
 
Add an anchor tag into the HTML where you want the bookmark:

Code:
<a name=&quot;psr&quot;>

--James
 
OK I did put the anchor tag by going in the html design view of the web form.

<asp:dropdownlist id=&quot;cboPay&quot; runat=&quot;server&quot; </asp:dropdownlist>
<a>name=&quot;PSR&quot; </a>
<asp:label id=&quot;Label6&quot; runat=&quot;server&quot; Payer Patient Primary ID:</asp:label>

I tried putting the anchor in other ways also, but that didn't seem to help either.
<a name=&quot;PSR&quot; >
<a name=&quot;PSR&quot; </a>

The link to this page looks like:


The link goes to right page, but it doesn't goes to the bookmark because both label6 and cboPay are at the bottom of the page.

What am I doing wrong?
 
<a name=&quot;PSR&quot;></a> This is how your anchor tag should look like. As for the link you've got that part right. I just tried this myself so I am sure it'll work for you. GLuck

That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Hi Mark:

This bookmark is at the bottom of the page but the link just loads the page and doesn't go to the bottom where the bookmark is.

Also was I supposed to highlight anything before adding the anchor or do I just type the html before the <asp:textbox> tag.

I also tried adding the anchor within <asp:textbox> tags like: <asp:textbox> <a name=&quot;PSR&quot;></a> </asp:textbox>, but still the same problem.

????
 
Just type the html before the <asp:textbox> tag. One thing to note is that since your anchor is at the bottom of the page your link will relocate the page to the bottom. Your anchor will not show up at the top of the page since there is no more space below it. I hope your following what I am trying to say here. One solution could be to put a bunch of return characters at the bottom of you page. I don't really advise this since it means that vistors can scroll down to an area of the page that shows nothing but blank space.

Hope I helped.

That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Hi:

It was rendering the link at the top of the page. So I did the following to move the anchor down to where I need it.

<br>
<br>
<br>.....<br>
<A name=&quot;PSR></A>

Thanks for all your help.
 
Glad I could be of assistance

That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top