|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Setting Hyperlink URL in GridviewI have a gridview in which I include a hyperlink column. That link points to
a document whose name is in the "urllink" field in the record for that row. I know that I can use the following to link to the appropriate document: DataNavigateUrlFields="urllink" But how do I code that if I want to put all the documents in a "docs" subdirectory? Wayne Hi,
If I understood ur question correctly, This should work fine, In itemdatabound event of your datagrid CType(e.Item.Cells(0).Controls(1), HyperLink).NavigateUrl = String.Format("frmviewsplit.aspx?id={0}&pr={1}", oSplit.NumeroRichiesta, oSplit.ProgressivoNumero) Where cell(0) is your hyperlink column. HTH, Holy Show quoteHide quote "Wayne Wengert" wrote: > I have a gridview in which I include a hyperlink column. That link points to > a document whose name is in the "urllink" field in the record for that row. > I know that I can use the following to link to the appropriate document: > > DataNavigateUrlFields="urllink" > > But how do I code that if I want to put all the documents in a "docs" > subdirectory? > > > > Wayne > > >
Master Pages and Cross-Page Form Information
Listbox is overlapping the Textbox in Asp.net Basic formatting for HTML text in ASP.NET 1.1 ? Adding Access keys to menu items in the Menu control Is there a way to set onmouseover for a LinkButton in ASP.NET 2.0 ? Broswer Compatibility timer functionality Localize control file upload control - ASP2.0 Adding DataMember support to SqlDataSource |
|||||||||||||||||||||||