Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting a hidden value from an infragistics webgrid.
Message
 
À
03/12/2008 15:33:29
Tegron Tegron
Platinum Technologies
Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01365397
Message ID:
01365401
Vues:
10
>I have been researching and attempting various methods for the past two days without success. I am fairly new at writing ASP.NET applications, but I would think that it would be relatively simple to grab a value from a grid to store it into a variable that I could use to pass as a querystring to another page. This was simple when using the windows version of the grid.
>

I would probably just use the CommandArgument property on the button and store the ID there, ex.
<asp:Button runat="server" id="btnSample" CommandArgument='<%# Eval("NameOfIDField") %' OnClick="btnSample_Click" /> 
Then, inside the handler for the Click event you have access to the CommandArgument.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform