Current location: Hot Scripts Forums » Programming Languages » ASP.NET » Linking Datagrids


Linking Datagrids

Reply
  #1 (permalink)  
Old 09-29-04, 06:09 AM
andreasberglind andreasberglind is offline
Newbie Coder
 
Join Date: Jul 2003
Location: Sweden
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Linking Datagrids

I have a page with a datagrid displaying movie titles. I have recently added the ability to search for actors via the same textbox as you search for movies.

Currently, when you enter an actor and search, you get movies where this actor appears. Not very good if the search matches more than on name.

I want to add a datagrid displaying actors, and the name should be clickable.
When you click a name it should take you to the other datagrid, displaying the movies where this actor appears.

Hopefully this is not very difficult. i would be very thankful if someone can help me.....
Reply With Quote
  #2 (permalink)  
Old 10-19-04, 10:33 PM
thuenb thuenb is offline
Newbie Coder
 
Join Date: Oct 2004
Location: MI
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
If I am understanding your question correctly..

You can make a conditional statement that detects if the search result is an actor before displaying the movies?

The other thing I was thinking is if you setup your program to store your variable once found in Server.Request.item's...

Such as mypage.aspx?Actor=JoeBob&Movie=KillerAsp.Net

So then you could use two datagrids. One reacts and is visible when an actor has something in it, and the other reacts when movie holds a variable.

You could do the same using session variables.

Hope this helps...
__________________
Best Regards,
Brian Thuen
http://www.AdvisedSolutions.com
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking iFrame Torito HTML/XHTML/XML 32 03-13-06 07:12 AM
iframe linking not working under url masking willNoClue HTML/XHTML/XML 1 08-02-04 10:34 AM
Multiple datagrids andreasberglind ASP.NET 3 03-24-04 01:07 AM
Help! I facing trouble by linking access database Kenyiew ASP 1 01-25-04 08:52 PM
Linking to a DB Fred Everything Java 1 01-19-04 09:45 AM


All times are GMT -5. The time now is 12:55 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.