Using POST or SESSION to capture data

Posted by Karinne on Stack Overflow See other posts from Stack Overflow or by Karinne
Published on 2010-03-31T14:32:13Z Indexed on 2010/03/31 14:53 UTC
Read the original article Hit count: 260

Filed under:
|
|

Hi all!

I'm currently working on web application using VB in ASP.NET.

Right now I have 1 page with panels that we are using to show/hide depending on the flow. When the user first comes in, he/she is presented with a gridview containing a list of clients. Then the user, clicks a link from a row and is presented a form where he/she can update the clients' info.

Originally, I had a HYPERLINKFIELD that put the clientId in the url, then I'd grab the url and do the code appropriately

<asp:HyperLinkField Text='<%$ Resources:Resource, ManageClient %>' DataNavigateUrlFields="CLIENT_ID" DataNavigateUrlFormatString="~/clients/manage.aspx?clientId={0}" />

Now, I'm rethinking that and wondering if it's better to use SESSIONs to grab the clientID via this instead

<asp:TemplateField Visible="false"><ItemTemplate><asp:Label runat="server" ID="hidClientId" Text='<%# Bind("CLIENT_ID")%>' Visible="false" /></ItemTemplate></asp:TemplateField>
<asp:ButtonField Text='<%$ Resources:Resource, ManageClient %>' CommandName="Manage" />

Or use the POST method, which I'm not sure how it works in .NET (but I've used it in PHP)

Any help would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about .NET