Accessing original (html tag) value of a control property

  • Thread starter Thread starter HoustonFreeways
  • Start date Start date
H

HoustonFreeways

Suppose I have a datagrid control which defines the showfooter property

<dg:datagridconfirm id="dg_inbox" Runat="server" showfooter=false>

During subsequent postbacks of the page, I change the showfooter value to
true or false depending on the number of items in the datagrid

If me.Items.Count = 0 Then
ShowFooter = True
Else
ShowFooter = False
End If

The question is:
Is there any way I can reference the original value that was set in the tag?
(In this case false).

I realize I can set a viewstate variable when page.isPostBack is false, but
it seems to me there should be some way to access the original tag value.
 
The question is:
Is there any way I can reference the original value that was set in
the tag? (In this case false).

I realize I can set a viewstate variable when page.isPostBack is
false, but it seems to me there should be some way to access the
original tag value.

That's what viewstate or session variables are for.
 
Back
Top