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 Basics
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 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
Closed Thread
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 31st, 2004, 05:17 AM
Registered User
Join Date: Feb 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with datagrid insida a datalist


I have I datagrid nested within a datalist, and my problem is that I can`t seem to find a way to get the values (using VB.NET) from the controls inside the datagrid. (textbox etc).
Can anyone please help?


Here is a code snippet from my aspx file:

<asp:datalist id="dataliste" Runat="server" CellSpacing="2" DataKeyField="emneId" OnEditCommand="endreKategori" OnDeleteCommand="slettKategori" OnCancelCommand="cancel">

<asp:LinkButton Text='<%# Container.DataItem("emne")%>' Runat="server" CommandName="Show" id="btnVisKat">
<asp:Label Runat="server" id="lblEmne" visible="False" text='<%# Container.DataItem("emne")%>' >
<asp:DataGrid Runat="server" id="datagrid" visible="False" AutoGenerateColumns="False" OnEditCommand="endreKlikk" OnCancelCommand="cancelKlikk" OnDeleteCommand="deleteKlikk" OnUpdateCommand="updateKlikk">

<asp:EditCommandColumn ItemStyle-Width="25px" EditText="<img border=0 Alt='Endre kategori' src=../../img/Edit.gif>" CancelText="<img border=0 src=../../img/Cancel.gif>" UpdateText="<img border=0 src=../../img/OK.gif>" />

<asp:ButtonColumn ItemStyle-Width="25px" Text="<img border=0 Alt='Slette kategori' src=../../img/Delete.gif>" CommandName="delete" />

<asp:TemplateColumn HeaderText="Kategori" HeaderStyle-Font-Bold="True" SortExpression="Kategori" ItemStyle-Width="150px">


<asp:Label id="Label1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "kategori") %>' />

<asp:TextBox id="txtEndreKategori" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "kategori") %>' Width="150px" />
<asp:RequiredFieldValidator Id="ValidateEditName" runat="server" ControlToValidate="txtEndreKategori" Display="dynamic">
* Kategori må fylles ut


Closed Thread

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
moving datagrid contents into a datalist sarah lee ASP.NET 1.0 and 1.1 Basics 0 October 24th, 2006 10:52 AM
DataGrid row back color related to datalist id's jgd ASP.NET 2.0 Basics 0 May 4th, 2006 09:21 AM
Problem with datagrid inside a datalist hoeknu ASP.NET 1.0 and 1.1 Professional 3 April 4th, 2006 10:45 PM
Datalist , Datagrid, or Repeater question olambe BOOK: ASP.NET Website Programming Problem-Design-Solution 7 June 1st, 2004 01:00 PM

All times are GMT -4. The time now is 04:07 AM.

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