Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Forming links in ASP.NET

New Here ,
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!
TOPICS
Server side applications

Views

226
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 31, 2008 Aug 31, 2008

Copy link to clipboard

Copied

LATEST
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!
>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines