How to embed invisible data in cells

O

Olivier Matrot

Hello,

I want to set invisible data into a cell control such as label. The goal is
to retrieve this information in a postback. How can I do this ? What about a
"viewstate" per row in a datagrid ??

TIA.
 
E

Eliyahu Goldin

Html control <input type=hidden ..> is made specially for this. AKA
HtmlInputHidden.

Eliyahu
 
S

Steven Cheng[MSFT]

Hi Oliver,

I think Eliyahu's suggestion on using the Html input hidden control is
quite a good suggestion. In addition, if you've already put some webserver
controls in the cells( of datagrid?). We can also use WebControl.Attributes
colleciton to add some simple string datas which is also non-visible but
can be retrieved at serverside across postback/client-server round trip.
Please feel free to post here if you have anything unclear. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: "Eliyahu Goldin" <[email protected]>
| References: <[email protected]>
| Subject: Re: How to embed invisible data in cells
| Date: Thu, 21 Jul 2005 16:26:21 +0200
| Lines: 20
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet.datagridcontrol
| NNTP-Posting-Host: 212.143.94.2
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet.datagridcontrol:5199
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.datagridcontrol
|
| Html control <input type=hidden ..> is made specially for this. AKA
| HtmlInputHidden.
|
| Eliyahu
|
| | > Hello,
| >
| > I want to set invisible data into a cell control such as label. The goal
| is
| > to retrieve this information in a postback. How can I do this ? What
about
| a
| > "viewstate" per row in a datagrid ??
| >
| > TIA.
| >
| >
|
|
|
 
S

Steven Cheng[MSFT]

You're welcome :)

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Olivier Matrot" <[email protected]>
| References: <[email protected]>
<#[email protected]>
<[email protected]>
| Subject: Re: How to embed invisible data in cells
| Date: Fri, 22 Jul 2005 14:51:51 +0200
| Lines: 66
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet.datagridcontrol
| NNTP-Posting-Host: reverse.completel.net 213.30.138.178
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet.datagridcontrol:5211
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.datagridcontrol
|
| This is perfect.
| Thanks for that.
|
| | > Hi Oliver,
| >
| > I think Eliyahu's suggestion on using the Html input hidden control is
| > quite a good suggestion. In addition, if you've already put some
webserver
| > controls in the cells( of datagrid?). We can also use
| > WebControl.Attributes
| > colleciton to add some simple string datas which is also non-visible but
| > can be retrieved at serverside across postback/client-server round trip.
| > Please feel free to post here if you have anything unclear. Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| > --------------------
| > | From: "Eliyahu Goldin" <[email protected]>
| > | References: <[email protected]>
| > | Subject: Re: How to embed invisible data in cells
| > | Date: Thu, 21 Jul 2005 16:26:21 +0200
| > | Lines: 20
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
| > | Message-ID: <#[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet.datagridcontrol
| > | NNTP-Posting-Host: 212.143.94.2
| > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl
| > microsoft.public.dotnet.framework.aspnet.datagridcontrol:5199
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.datagridcontrol
| > |
| > | Html control <input type=hidden ..> is made specially for this. AKA
| > | HtmlInputHidden.
| > |
| > | Eliyahu
| > |
| > | | > | > Hello,
| > | >
| > | > I want to set invisible data into a cell control such as label. The
| > goal
| > | is
| > | > to retrieve this information in a postback. How can I do this ? What
| > about
| > | a
| > | > "viewstate" per row in a datagrid ??
| > | >
| > | > TIA.
| > | >
| > | >
| > |
| > |
| > |
| >
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top