Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Redirect and passing url from within a datagrid

Reply
Thread Tools

Redirect and passing url from within a datagrid

 
 
AKJTR
Guest
Posts: n/a
 
      12-30-2004
I finnal got everyhting to work using

<asp:HyperLink Runat="server" Text =
'<%#DataBinder.Eval(Container.dataitem,"pdd_book" ) + " " +
DataBinder.Eval(Container.dataitem,"pdd_page")%>' Target = _blank NavigateUrl
= '<%#
"http://www.dnr.state.ak.us/recorders/cad_search.cfm?District=401&SearchType=book&Book="
+ DataBinder.Eval(Container.dataitem,"pdd_book") + "&Page=" +
Databinder.Eval(Container.DataItem,"pdd_page")%>'> </a>

Its a template column in a datagrid that inserts some selected data into a
url and then opens a new window using that url (querys someone elses
database).

Now they want an disclaimer page in between, that informs the user they are
leaving our site and going to somewhere elses.
My ? is how to create a disclaimer page and still pass the dynamic url.
Clear as mud?

tia
 
Reply With Quote
 
 
 
 
Scott Mitchell [MVP]
Guest
Posts: n/a
 
      01-04-2005
AKJTR wrote:
> Now they want an disclaimer page in between, that informs the user they are
> leaving our site and going to somewhere elses.
> My ? is how to create a disclaimer page and still pass the dynamic url.


You could create a new page, Disclaimer.aspx, that took in a URL through
a querystring parameter. This Disclaimer page would display the
disclaimer and provide a link to the URL in the querystring. So you'd
visit something like:

http://www.yoursite.com/Disclaimer.a....com/blah.aspx

This would display the disclaimer and provide a link to
http://someothersite.com/blah.aspx.

Make sense? Essentially you need to introduce an intermediate page
(Disclaimer.aspx). hth

--

Scott Mitchell [ASP.NET MVP]

http://www.4GuysFromRolla.com/ScottMitchell
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing an array from FORTRAN to C then passing it within C andReturning it to FORTRAN deadpickle C Programming 1 11-07-2010 02:38 PM
Redirect url if invalid entry into URL teser3@hotmail.com Java 0 05-18-2007 02:12 AM
Response.Redirect() converts relative URL to absolute URL =?Utf-8?B?UGF1bCBCb25mYW50aQ==?= ASP .Net 2 04-25-2006 01:07 AM
redirect URL's, return URL's, and URL Parameters Jon paugh ASP .Net 1 07-10-2004 05:29 AM
Basic Q - Response.Redirect, all redirect to first Response.Redirect statement Sal ASP .Net Web Controls 1 05-15-2004 03:46 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57