DataNavigateUrlFormatString Problem

Results 1 to 2 of 2

Thread: DataNavigateUrlFormatString Problem

  1. #1
    Join Date
    Dec 1969

    Default DataNavigateUrlFormatString Problem

    I have a datagrid and i know you can do<BR>DataNavigateUrlFormatString="page1.aspx?id={ 0}"<BR><BR>I need to pass 2 querystring to this page but i dont know how <BR>ie I want <BR>DataNavigateUrlFormatString="page1.aspx?id={0} &name={1}"<BR><BR>I have the below in the &#060;columns&#062; section<BR><BR>&#060;asp:HyperLinkColumn DataNavigateUrlField="ID"<BR>Text="Edit" HeaderText="Edit"<BR>DataNavigateUrlFormatString=" page1.aspx?id={0}" /&#062;<BR><BR>Any ideas????

  2. #2
    Join Date
    Dec 1969

    Default RE: DataNavigateUrlFormatString Problem

    You could do it on the fly. Create an event handler for the datagrid&#039;s ItemDataBound Event and build the DataNavigateUrlFormatString value there. There could be an easier way to do it in the same approach that you are trying, but I do not know what it would be.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts