Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 September 9th, 2004, 12:55 PM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to RPG SEARCH
Default datagrid, checkboxes and more!

Hi all,

I dont want a complete solution. As i am trying to learn, but i really a stuttering on starting this bit.

I have the following at the moment: A datagrid that is populated with Category Names (CategoryName) and ID numbers for the name (CategoryID) in two columns. The third and fourth columns have check boxes in them, one is for edit and the other is for delete. What i want is for a fifth column with a button in it that when clicked finds out wether it is an edit or a delete command. If delete then it wipes the entry from the database and then postback without the entry appearing. if an edit then i want it to display a text box anywhere on the page with the old value in so they can retype over it. All in VB.

Some hints and tips are needed like how to make sure that its going to edit or delete the right entry. I tried something before with delete and ending up wiping the whole table contents.:D

thanks for any help.


David
__________________
David Jenkins
 
Old September 9th, 2004, 01:25 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Here is an article that is in 16 parts and, as the title says, it is an extensive examination of the datagrid. See if this helps.

http://aspnet.4guysfromrolla.com/articles/040502-1.aspx

J
 
Old September 9th, 2004, 04:28 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

There are custom EditCommand and DeleteCommand buttons for you already, and corresponding EditCommand and DeleteCommand events that handle this. You don't have to make any determinations yourself.

Brian
 
Old September 10th, 2004, 03:25 AM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to RPG SEARCH
Default

Cheers I will check those articles out. Is there anything better than web matrix out there for coding vb.net as I really do not like web matrix that much. I use dreamweaver mx 2004 for normal html and xhtml coding but i dont like what it does with asp.net.

Thank you both for help.



David
 
Old September 10th, 2004, 08:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Are you talking free? There is always Visual Studio .Net, but it is pretty pricey.

J
 
Old September 11th, 2004, 05:01 AM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to RPG SEARCH
Default

I am starting uni on monday to study e-business, so as a student i don't have a lot of cash. but if something is worth investing then i will do it. What Visual Studio .NET like? Where can I get a demo from? Any free applications are cool aswell anyone know of any?

David
 
Old September 13th, 2004, 07:18 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

VS.NET has an online thing you can try; you may be able to request a DVD somehow. If you are a student, you usually can get software discounted. Don't know of any freebies other than Web Matrix.

Brian
 
Old September 15th, 2004, 09:16 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Yes, where I went to school, they gave the software to the students for $5 (as opposed to $700-900), but that was a few years ago. I would definitely look into this option first.

As Brian said, the web matrix is another way to go. Remember that you can build ASP.Net pages using only notepad, so if you are as poor as I was in college, that would have been my option (Web Matrix wasn't around - sigh - showing my age :(). There are several books out there that teach you how to do this.

J
 
Old September 15th, 2004, 10:09 AM
Authorized User
 
Join Date: Sep 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi

you can try downloading vs.net 2005 for free

http://msdn.microsoft.com/vstudio/downloads/

but it is just a beta version...so iguess u will have some bugs...but it should give u a good start

good luck

 
Old September 15th, 2004, 10:13 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

However, because VS 2005 is built on top of framework 2.0, you can't use it for building applications in another framework version.





Similar Threads
Thread Thread Starter Forum Replies Last Post
selection of all checkboxes inside the datagrid yes_no ASP.NET 1.0 and 1.1 Professional 4 April 15th, 2008 07:31 AM
Select all checkboxes in a datagrid kawal.singh C# 2 May 7th, 2007 02:09 PM
C# Datagrid Help foreach statement checkboxes mbge9pjb C# 4 December 20th, 2005 09:43 AM
Using Checkboxes in datagrid ractim General .NET 2 September 21st, 2004 05:14 AM





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