Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Datagrid Control (http://www.velocityreviews.com/forums/f60-asp-net-datagrid-control.html)
-   -   Redirect and passing url from within a datagrid (http://www.velocityreviews.com/forums/t761447-redirect-and-passing-url-from-within-a-datagrid.html)

AKJTR 12-30-2004 08:49 PM

Redirect and passing url from within a datagrid
 
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

Scott Mitchell [MVP] 01-04-2005 07:41 PM

Re: Redirect and passing url from within a datagrid
 
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]
mitchell@4GuysFromRolla.com
http://www.4GuysFromRolla.com/ScottMitchell


All times are GMT. The time now is 12:36 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.