This is a migrated thread and some comments may be shown as answers.

Linking 2 grids with primary keys

1 Answer 33 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Katlego
Top achievements
Rank 1
Katlego asked on 18 Jun 2011, 01:12 PM
Hi, im building a forum like website with 3 tables, (Topics, Threads & Messages). iv got 3 forms with the same names. I would like to pass the primary key of one table (Topic) on the 1st form to link up with the relevant Threads on the Threads form. Here is my code below on the topics form.

 <Columns>
        <telerik:GridHyperLinkColumn DataTextField="Name"
            DataNavigateUrlFields="TopicID" 
            DataNavigateUrlFormatString= "Threads.aspx?TopicID={0}" ItemStyle-Font-Bold="true" />
        <telerik:GridHyperLinkColumn DataNavigateUrlFields="TopicID" 
        DataNavigateUrlFormatString="Threads.aspx?TopicID={0}" HeaderText="Topic" />
  </Columns>

The primary key does get passed as i can see it in the address bar but how do i retrieve it on the threads form?

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Katlego
Top achievements
Rank 1
answered on 18 Jun 2011, 01:53 PM
Just figured it out...
Tags
Grid
Asked by
Katlego
Top achievements
Rank 1
Answers by
Katlego
Top achievements
Rank 1
Share this question
or