Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Different NavigateUrlFormatString's


Message #1 by "Frode" <fstroemm@o...> on Mon, 20 May 2002 03:36:03
I have tried to do many of my asp projects in aspx format but I'm not sure 
how following piece of code could be done using a datagrid and C# for the 
codebehind:

do while Not schRS.EOF 

Select case schRS("schWid")
	  	Case("0") 
	      Response.Write "<a class ='schlnk' target='_blank' 
href='http://www.rtcw.no/league.asp?league=1'>" & _
          schRS("schTeam1") & " - " & schRS("schTeam2") & "</a></td></tr>" 

		Case("999") 
		  Response.Write "<a href='#' class='schlnk'>" & schRS
("schTeam1") & " - " & schRS("schTeam2") & "</a></td></tr>" 
	    Case else
	      Response.Write "<a class ='schlnk' target='_blank' 
href='http://www.clanbase.com/warinfo.php?wid=" & _
          Server.URLEncode(schRS("schWid")) & "'>" & Server.HTMLEncode
(schRS("schTeam1")) & " - " & Server.HTMLEncode(schRS("schTeam2")) 
& "</a></td></tr>" 
       end select
	   
schRS.MoveNext
Loop


For me it looks like hyperlinkcolumn sets a standard url navigate for all 
rows, but I have not seen any examples where the url changes based on the 
input from a querystring. 
Any suggestions or help?

thanks 

- Frode




  Return to Index