Newbie Question:
I have a dataset called "mxdata" that has a field called "mxorder" with an integer value.
I want to increment that value by 1 and pass the new value to a hidden form field.
ie:
variablex = mxdata.mxorder + 1
<input name="ordervalue" type="hidden" id="ordervalue" value="<%# variablex %>"/
Obviously this is incorrect. Can someone show me how I would do this?why not just add it to the viewstate?, the ultimate hidden field of all time :-)
ViewState("orderValue") = mxdata.mxorder + 1
then after a postback you can retrive it like this
somevar = cint(ViewState("orderValue"))
0 comments:
Post a Comment