Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 7th, 2007, 12:40 AM
BOS BOS is offline
Registered User
 
Join Date: Jul 2007
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");

    }



-








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 08:30 AM
Detailview with Checkbox kcsathish ASP.NET 1.0 and 1.1 Basics 1 July 10th, 2008 03:20 PM
Editing in DetailView using objectdatasourse balesh.mind ASP.NET 2.0 Professional 0 May 22nd, 2008 02:12 AM
Detailview insert tombert ASP.NET 2.0 Basics 1 April 26th, 2007 05:00 AM
DetailView Control Showkkath ASP.NET 2.0 Professional 1 November 23rd, 2005 02:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.