|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ASP.NET rookie needs help finding control data
but I've been a professional software dev for over 10 years, C++, Unix and windows, C# the past 4 years. I've been working on a personal ASP.NET project, basically as a learning tool and I have a major issue which is really really getting on my nerves. I'm creating a web application in ASP.NET 2.0 which dynamically populates a table with text and text boxes. This table has two columns; in the left colum are fields labelling the text boxes on the right column. After post back, I cannot for the life of me find the values that were entered into the text boxes. When I turn tracing on, I see in the 'Form Collection' that my values have in fact been kept via ViewState, but when I go into the Table object, the 'rows' are empty. I'm sure this is going to be a difficult one to diagnose via this post as it appears to be pretty vague, bug perhaps if you can explain to me how to find a control by either the control ID or by the Unique ID? The Unique ID is shown in the trace output. I've tried using a debugger and examined the Table object in a watch window, but there are a million nodes on that. Please help!! This has been keeping me up at night. It seems like such a simple friggin thing. -- Jaan Actually, I'm not sure if I'm reading the Trace log correctly. I don't know
if I'm seeing what was on the form, or if I'm seeing the viewstate info. Anyway, I've been looking around the web and apparently there's a bug in ASP.NET 2.0 in regards to the text boxes. If anyone can elaborate on this I'd appreciate it. I'll try to do the same. -- Show quoteJaan "jrett" wrote: > I'm new to ASP.NET and fairly inexperienced with web development in general, > but I've been a professional software dev for over 10 years, C++, Unix and > windows, C# the past 4 years. > > I've been working on a personal ASP.NET project, basically as a learning > tool and I have a major issue which is really really getting on my nerves. > > I'm creating a web application in ASP.NET 2.0 which dynamically populates a > table with text and text boxes. This table has two columns; in the left colum > are fields labelling the text boxes on the right column. > > After post back, I cannot for the life of me find the values that were > entered into the text boxes. When I turn tracing on, I see in the 'Form > Collection' that my values have in fact been kept via ViewState, but when I > go into the Table object, the 'rows' are empty. > > I'm sure this is going to be a difficult one to diagnose via this post as it > appears to be pretty vague, bug perhaps if you can explain to me how to find > a control by either the control ID or by the Unique ID? The Unique ID is > shown in the trace output. I've tried using a debugger and examined the > Table object in a watch window, but there are a million nodes on that. > > Please help!! This has been keeping me up at night. It seems like such a > simple friggin thing. > -- > Jaan jrett wrote:
> I'm new to ASP.NET There was no way for you to know it (except maybe by browsing through someof the previous questions in this newsgroup before posting yours - always a recommended practice) , but this is a classic asp newsgroup. ASP.Net bears very little resemblance to classic ASP so, while you may be lucky enough to find a dotnet-knowledgeable person here who can answer your question, you can eliminate the luck factor by posting your question to a group where those dotnet-knowledgeable people hang out. I suggest microsoft.public.dotnet.framework.aspnet. -- Microsoft MVP - ASP/ASP.NET Please reply to the newsgroup. This email account is my spam trap so I don't check it very often. If you must reply off-line, then remove the "NO SPAM" |
|||||||||||||||||||||||