Home All Groups Group Topic Archive Search About

ASP.NET rookie needs help finding control data



Author
20 Sep 2006 5:02 AM
jrett
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

Author
20 Sep 2006 6:17 AM
jrett
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.

--
Jaan


Show quote
"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
Author
20 Sep 2006 10:59 AM
Bob Barrows [MVP]
jrett wrote:
> I'm new to ASP.NET

There was no way for you to know it (except maybe by browsing through some
of 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"

AddThis Social Bookmark Button