Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 7th, 2007, 01:40 AM
BOS BOS is offline
Registered User
 
Join Date: Jul 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Linking GridView to DetailView

Hello again everyone,

I have a GridView to display part of the data in the db (not all), and on the GridView, I have a link of "Edit"(Update&Cancel), "Delete", "All Detail" and "Exit"(re-direct to.aspx), I also create another web form for DetailsView.aspx to display all information from db, viewing all data from db one at a time is base on the StateID drop down list from databound placed above the Detail1View1

- So my first question is how do I link the "StateID" drop down list from databound to the DetailsView1, ex: if I select the State Id #1, it shows all information in StateID #1 and for StateID #2 if selected should show all information in StateID #2

-Second question is, how do I link the DetailsView1 to GridView1, when click "All Detail" link on the GridView, mostly in GridView form, I wrote a code behind for binding, edit, delete and Exit command link I called it in the GridView1_SelectedIndexChanged and re-directed back to the original form, I try to call the same way to "All Detail", but it's not working, can somone guide me thru this? below is my exit called to re-directed back to the original form

 protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {

          // Response.Redirect("DetailsView");

            Response.Redirect("bsform.aspx");

    }



-



 


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 Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Get GridView Cell Value Based on GridView Column stublair C# 2008 aka C# 3.0 0 September 4th, 2008 09:30 AM
Detailview with Checkbox kcsathish ASP.NET 1.0 and 1.1 Basics 1 July 10th, 2008 04:20 PM
Editing in DetailView using objectdatasourse balesh.mind ASP.NET 2.0 Professional 0 May 22nd, 2008 03:12 AM
Detailview insert tombert ASP.NET 2.0 Basics 1 April 26th, 2007 06:00 AM
DetailView Control Showkkath ASP.NET 2.0 Professional 1 November 23rd, 2005 02:48 PM



All times are GMT -4. The time now is 09:10 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.