IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New ASP.NET has a HiddenField control
ASP.NET has a HiddenField control that does exactly what it's name suggests, so I'm not sure why it would be an issue.

It really sounds like there is something else going on here though. How can you have a per customer shopping cart but not be able to handle some additional bit of information per customer? Even if there is some technical reason why they can't use a HiddenField control in the application framework, it should be possible to add the HTML hidden field to the text of the HTML directly. It would be ugly, but it would work.

As for being much harder, there is really not such thing as a trivial ASP.NET application. There is a lot of setup and tear down in even the simplest of applications, and most .NET frameworks make it worse.

Jay
New That's what I'm thinking
This just can't be hard. But our framework is typical of these things: No one ever writes HTML any more, so without knowing the language better than I do I have to rely on my expectations of what should be hard and what should be easy.
--

Drew
New What's it written in?
The primary languages that Microsoft want you to use in the .Net framework are C# and VB.Net, both easy enough to understand.

As far as this being "hard" -- what he said. It's no more than defining the field as <asp:HiddenField ID="HiddenField1" Runat="server" /> on your .aspx web page and putting "container_variable = HiddenField1.Value" in the code in your Page_Load event.

When the page reloads, ASP.Net can detect if the value changed and you deal with it in the ValueChanged event for the HiddenField1 control. If the value hasn't changed, then the HiddenField1_ValueChanged method is not triggered.





"Chicago to my mind was the only place to be. ... I above all liked the city because it was filled with people all a-bustle, and the clatter of hooves and carriages, and with delivery wagons and drays and peddlers and the boom and clank of freight trains. And when those black clouds came sailing in from the west, pouring thunderstorms upon us so that you couldn't hear the cries or curses of humankind, I liked that best of all. Chicago could stand up to the worst God had to offer. I understood why it was built--a place for trade, of course, with railroads and ships and so on, but mostly to give all of us a magnitude of defiance that is not provided by one house on the plains. And the plains is where those storms come from."

-- E.L. Doctorow
New This is at at least one removed...
... since I'm not and have never been a .NET programmer. However I've worked closely with several over the years with different projects and got an insight into how a typical .NET programmer needs to think.

It sounds a bit like you're approaching the problem with a PHP+HTML mindset when you need a Microsoft mindset. .NET has a reputation for doing it's best to turn a web-site into an application and doing a lot of shenanigans with the HTTP+HTML to make that work. Whoever wrote your framework was probably deeply in Microsoft mode.

Wade.

Q:Is it proper to eat cheeseburgers with your fingers?
A:No, the fingers should be eaten separately.
New Truth
Say the word "stateless" and they look at you like you sprouted a third eye.
--

Drew
     .NET question -- it can't be this hard, can it? - (drook) - (9)
         ASP.NET has a HiddenField control - (jay) - (4)
             That's what I'm thinking - (drook) - (3)
                 What's it written in? - (lincoln)
                 This is at at least one removed... - (static) - (1)
                     Truth - (drook)
         Got an update for us? -NT - (lincoln) - (3)
             Yeah - (drook) - (2)
                 Well, at least you are getting paid! -NT - (folkert) - (1)
                     Yup ... better than the alternative -NT - (drook)

For Wade, it is to wait.
94 ms