Um.
Look at what your code is doing!
There are a number of obvious problems here: the first is that
GetData
doesn't do anything. You append lots of items to a StringBuilder, but as it's local to the method it's all thrown away when the method exits - so effectively your method does nothing at all!
Second,
hdnfld
is also local to the method, so setting it's value to anything doesn't do anything useful either, as it is also discarded when the method ends.
Thirdly, even if you send the StringBuilder content to your website at the end of the method, it's not going to do anything useful, because the hidden field you set will not be part of the page!
So have a look at the documentation:
HtmlInputHidden Class (System.Web.UI.HtmlControls)[
^] and see what their example does!