Adobe Dreamweaver Forums



Last 10 THreads :         Unable to create SWC in Flash CS4 (Last Post : nrajbhan - Replies : 1 - Views : 2 )           »          Flash CS4 External Lirbrary (Last Post : nrajbhan - Replies : 1 - Views : 2 )           »          Opening different Flash Galleries with differentlinks... (Last Post : Nancy O - Replies : 8 - Views : 9 )           »          Favicon for context-sensitive Help (WebHelp) (Last Post : LuckyClover - Replies : 5 - Views : 6 )           »          Re: Help authenticating installer (Last Post : scarletnew - Replies : 2 - Views : 5 )           »          unlinking shared assets (Last Post : dmodie - Replies : 0 - Views : 1 )           »          Spry Accordion Panel Default State All Closed? (Last Post : Steven_K - Replies : 2 - Views : 3 )           »          Re: export image in D11 (Last Post : Applied CD - Replies : 0 - Views : 1 )           »          Re: Adobe Capture?? (Last Post : CatBandit - Replies : 0 - Views : 1 )           »          catching errors from remotely invoked processes (Last Post : Cr99 - Replies : 2 - Views : 3 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver Application Development
 
Tags: , ,



Reply
  #1 (permalink)  
Old 08-28-2008, 01:05 AM
Bauhaus Boy
 
Posts: n/a
Diggs:
Default Forming links in ASP.NET

Hi, I have a link: <a
href=pottery.aspx?category=Tranquil&DataSet1_curre ntPage="& (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_current Page="&
(i-1) &">" & i &"</a> ")
end if
next%>

Any help would be amazing!



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-01-2008, 01:40 AM
JackPot
 
Posts: n/a
Diggs:
Default Re: Forming links in ASP.NET

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_curre ntPage="& (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_current Page="&
> (i-1) &">" & i &"</a> ")
> end if
> next%>
>
> Any help would be amazing!
>


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 06:49 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk