Search:
Namespaces
Discussions
.NET v1.1
Feedback
CType
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
.
Administrator
-- Moved from [aspngdatagridrepeaterdatalist] to [aspngdatagridrepeaterdatalist] by Let the good times roll <
Click here to reveal e-mail address
> --
Hello All,
I am trying to grab the value of a HTMLInputHidden in a datagrid. This is the code I am using:
Dim dgi As
DataGridItem
CType(dgi.Cells(0).Controls(2), HTMLInputHidden).ToString
The position is right, but I keep getting an error. Does anyone know how to grab the value of an HTMLInputHidden from a datagrid?
Thanks.
John
Reply to this message...
Das
A better way to do this is as follows
Dim mydgi As String
mydgi = CType(dgi.Cells(0).Controls(2), HTMLInputHidden).ToString
or
Dim mydgi as HTMLInputHidden
mydgi = CType(dgi.Cells(0).Controls(2), HTMLInputHidden)
or
Dim mydgi as
DataGridItem
mydgi = CType(dgi.Cells(0).Controls(2), DataGridItem)
:-)
Jesudas Chinnathampi (Das)
Co-Author - Beginning ASP.NET Databases using VB.NET
http://www.amazon.com/exec/obidos/ASIN/1861006195
Co-Author - Beginning ASP.NET Databases using C#
http://www.amazon.com/exec/obidos/ASIN/1861007418
Read my articles on ASP .NET at
http://aspalliance.com/das
----- Original Message -----
From: "Administrator" <
Click here to reveal e-mail address
>
To: "aspngDataGridRepeaterDatalist"
<
Click here to reveal e-mail address
>
Sent: Thursday, July 25, 2002 9:08 PM
Subject: [aspngdatagridrepeaterdatalist] CType
> -- Moved from [aspngdatagridrepeaterdatalist] to
[aspngdatagridrepeaterdatalist] by Let the good times roll
<
Click here to reveal e-mail address
> --
[Original message clipped]
Reply to this message...
System.Web.UI.WebControls.DataGridItem
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com