0
Forming links in ASP.NET
New Here
,
/t5/dreamweaver-discussions/forming-links-in-asp-net/td-p/112265
Aug 27, 2008
Aug 27, 2008
Copy link to clipboard
Copied
Hi, I have a link: <a
href=pottery.aspx?category=Tranquil&DataSet1_currentPage="&
(i-1) &">" & i &"</a>
that i need to change so that category=Tranquil becomes the value out of may data set for any category
<%# DataSet1.FieldValue("category", Container) %>. How can i do this?
The code is from a pager for a repeater:
The current page: <%# DataSet1.CurrentPage + 1%>
The total number of pages: <%# DataSet1.LastPage +1%>
<% dim i as integer
for i=1 to (DataSet1.LastPage+1)
if (DataSet1.CurrentPage + 1)=i then
response.Write("<font color=#FF0000><strong>" & i &"</strong> </font> ")
else
response.Write("<a href=saucy.aspx?category=Tranquil&DataSet1_currentPage="& (i-1) &">" & i &"</a> ")
end if
next%>
Any help would be amazing!
that i need to change so that category=Tranquil becomes the value out of may data set for any category
<%# DataSet1.FieldValue("category", Container) %>. How can i do this?
The code is from a pager for a repeater:
The current page: <%# DataSet1.CurrentPage + 1%>
The total number of pages: <%# DataSet1.LastPage +1%>
<% dim i as integer
for i=1 to (DataSet1.LastPage+1)
if (DataSet1.CurrentPage + 1)=i then
response.Write("<font color=#FF0000><strong>" & i &"</strong> </font> ")
else
response.Write("<a href=saucy.aspx?category=Tranquil&DataSet1_currentPage="& (i-1) &">" & i &"</a> ")
end if
next%>
Any help would be amazing!
TOPICS
Server side applications
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
LATEST
/t5/dreamweaver-discussions/forming-links-in-asp-net/m-p/112266#M135336
Aug 31, 2008
Aug 31, 2008
Copy link to clipboard
Copied
Yes, amazing. It is amazing how long it will take to read a
half dozen
documents that explain how to rewrite a URL but that's what you'll have to
search for and read.
"Bauhaus Boy" <webforumsuser@macromedia.com> wrote in message
news:g94nts$1tf$1@forums.macromedia.com...
> Hi, I have a link: <a
> href=pottery.aspx?category=Tranquil&DataSet1_currentPage="& (i-1) &">" & i
> &"</a>
> that i need to change so that category=Tranquil becomes the value out of
> may
> data set for any category
> <%# DataSet1.FieldValue("category", Container) %>. How can i do this?
>
> The code is from a pager for a repeater:
>
> The current page: <%# DataSet1.CurrentPage + 1%>
> The total number of pages: <%# DataSet1.LastPage +1%>
>
> <% dim i as integer
> for i=1 to (DataSet1.LastPage+1)
> if (DataSet1.CurrentPage + 1)=i then
> response.Write("<font color=#FF0000> " & i &" </font> ")
> else
> response.Write("<a
> href=saucy.aspx?category=Tranquil&DataSet1_currentPage="&
> (i-1) &">" & i &"</a> ")
> end if
> next%>
>
> Any help would be amazing!
>
documents that explain how to rewrite a URL but that's what you'll have to
search for and read.
"Bauhaus Boy" <webforumsuser@macromedia.com> wrote in message
news:g94nts$1tf$1@forums.macromedia.com...
> Hi, I have a link: <a
> href=pottery.aspx?category=Tranquil&DataSet1_currentPage="& (i-1) &">" & i
> &"</a>
> that i need to change so that category=Tranquil becomes the value out of
> may
> data set for any category
> <%# DataSet1.FieldValue("category", Container) %>. How can i do this?
>
> The code is from a pager for a repeater:
>
> The current page: <%# DataSet1.CurrentPage + 1%>
> The total number of pages: <%# DataSet1.LastPage +1%>
>
> <% dim i as integer
> for i=1 to (DataSet1.LastPage+1)
> if (DataSet1.CurrentPage + 1)=i then
> response.Write("<font color=#FF0000> " & i &" </font> ")
> else
> response.Write("<a
> href=saucy.aspx?category=Tranquil&DataSet1_currentPage="&
> (i-1) &">" & i &"</a> ")
> end if
> next%>
>
> Any help would be amazing!
>
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

