Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Databases
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 6th, 2004, 02:23 PM
Authorized User
 
Join Date: Aug 2004
Location: , , .
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using Datagrid...getting data on separate form

Hi,
I am new to .NET technology and trying to use Datagrid to retrieve data from the database. This part is working for me. Since I cannot accomodate all the fields on the datagrid, to edit the record I am transferring to another page on edit_command. At this point I have the row index available thru e.item.itemindex, but I need the value of the column so that on the detail page I can pull the selected record using the "where clause". I need the column value rather than row index. Any help on this will be greatly appreciated. Thanks.

Reply With Quote
  #2 (permalink)  
Old August 7th, 2004, 01:52 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

As this is a classic ASP forum, your post best fits into ASPX Beginners forum.

Just a guess, are you looking for e.Item.DataItem or e.Item.Cells(CELLNUMBER).Text ???

CELLNUMBER can be 1, 2, 3...

_________________________
- Vijay G
Strive for Perfection
Reply With Quote
  #3 (permalink)  
Old August 7th, 2004, 01:44 PM
Authorized User
 
Join Date: Aug 2004
Location: , , .
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Vijay. Thanks for your response. I tried this but it doesn't work. You are right I should have posted it in .NET section.f I will do so. In the meanwhile, if you find the answer, please post it.

Thanks.
Renu

Quote:
quote:Originally posted by happygv
 As this is a classic ASP forum, your post best fits into ASPX Beginners forum.

Just a guess, are you looking for e.Item.DataItem or e.Item.Cells(CELLNUMBER).Text ???

CELLNUMBER can be 1, 2, 3...

_________________________
- Vijay G
Strive for Perfection
Reply With Quote
  #4 (permalink)  
Old August 7th, 2004, 04:47 PM
Authorized User
 
Join Date: Aug 2004
Location: , , .
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Vijay,
I got it working. I don't know what I did wrong earlier. I used e.item.cells(0).text and I got the value. Thanks a lot for your help!
Renu

Quote:
quote:Originally posted by happygv
 As this is a classic ASP forum, your post best fits into ASPX Beginners forum.

Just a guess, are you looking for e.Item.DataItem or e.Item.Cells(CELLNUMBER).Text ???

CELLNUMBER can be 1, 2, 3...

_________________________
- Vijay G
Strive for Perfection
Reply With Quote
  #5 (permalink)  
Old August 7th, 2004, 09:52 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Renu,

Glad that I could help.:)

Also a point to note, while replying, please don't hit the "Reply with Quote" button, as that would contain the whole of the previous message and make the page look cluttered. I am not totally against it, just a thought. You can always delete the quote while replying.

Cheers!

_________________________
- Vijay G
Strive for Perfection
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
How to access form controls from separate class? paket C# 6 August 1st, 2007 06:18 AM
Highlit the new data over the old data in DataGrid kotanaresh_2003 ASP.NET 1.0 and 1.1 Basics 0 April 12th, 2007 10:26 PM
Merging data from separate forms SParisi Infopath 0 January 9th, 2006 02:58 PM
Opening a separate window from a Form PortGuy Javascript How-To 6 April 9th, 2004 01:40 AM



All times are GMT -4. The time now is 12:33 PM.


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