Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 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 March 18th, 2007, 07:23 AM
Registered User
 
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jaber.moh
Default problem in gridview

hi: iwant to display field in the gridview with link to go to the location of this file like(ftp://gisappdata/PlansEdits/1422/1)this field will be filled in DataSet from Adapter and then filled in gridview ,i'm do many thing in using <A href> or buttonfield or hyperlinkfield or jscript but all of them failds iwant help to get code in gridview when click to this cell go to the location ,the location is not the same.
Thank's for help.

This code will fill the DataSet




Dim PlanMahderNo_Value As String = txtPlanNOValue.Text
            Dim sqlstatment_select As String = "SELECT GISMAHDER.PLANMAHDER.PLANMAHDERNO,GISMAHDER.PLANMA HDER.PLANMAHDERVERSION,GISMAHDER.MAHDER.MahdarID,G ISMAHDER.MAHDER.MAHDARNO,GISMAHDER.MAHDER.MAHDARYE AR,GISMAHDER.MAHDER.MAHDARREM, GISMAHDER.MAHDER.MAHDARSTATUS,GISMAHDER.MAHDER.REM ARKS,GISMAHDER.MAHDER.PATH FROM GISMAHDER.PLANMAHDERLINK INNER JOIN GISMAHDER.PLANMAHDER ON GISMAHDER.PLANMAHDERLINK.PLANMAHDERID = GISMAHDER.PLANMAHDER.PLANMAHDERID INNER JOIN GISMAHDER.MAHDER ON GISMAHDER.PLANMAHDERLINK.MAHDERID = GISMAHDER.MAHDER.MAHDARID WHERE(GISMAHDER.PLANMAHDER.PLANMAHDERNO = " & "'" & txtPlanNOValue.Text & "'" & ")"
            Dim constr As String = "Data Source=winsde;Persist Security Info=True;User ID=mahder;Password=mah;Unicode=True"
            Dim con As OracleConnection = New OracleConnection(constr)
            Dim ORAcom As OracleCommand = New OracleCommand(sqlstatment_select, con)
            Dim D_Adabter As OracleDataAdapter = New OracleDataAdapter
            Dim D_Set As DataSet = New DataSet
            D_Adabter.SelectCommand = ORAcom
            D_Adabter.Fill(D_Set)



----------------------------------
----------------------------------
  GVResult.DataSource = D_Set
   GVResult.DataBind()


 
Old March 19th, 2007, 02:47 AM
Authorized User
 
Join Date: Dec 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sunnys Send a message via Yahoo to Sunnys
Default

hi
U can make template column for your link i grid view. Use the GridView.OnRowCommand Method.
The RowCommand event is raised when a button is clicked in the GridView control use it to redirect to the
Location u like.
U can work with the grid view like DataGrid In ASp.net1.0,1.1.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Gridview problem in Binding ndramkumar ASP.NET 2.0 Professional 1 September 2nd, 2007 11:45 PM
GridView edit problem mike72 ASP.NET 2.0 Basics 8 January 3rd, 2007 07:59 PM
Gridview.SelectedRow problem toshesh ASP.NET 2.0 Professional 3 November 30th, 2006 01:01 PM
Problem in GridView mohsin_khan BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 1 November 15th, 2006 03:07 PM





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