Re: asp.net server side debugging

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi,

To learn the validation controls I suggest you follow this tutorial:

http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/validation/defau
lt.aspx

From the code you provided it seems you're not using cache. So I'm not sure
if the cache will cause this problem. Could you send me a demo project that
can reproduce this issue? My email is v-alchen@xxxxxxxxxxxxxx I'll test it
and see what the problem is.

Regards,
Allen Chen
Microsoft Online Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| Thread-Topic: asp.net server side debugging
| thread-index: Ack/uzM/E3MYF/AXS9G3uitb6tgB/Q==
| From: =?Utf-8?B?dXNmaW5lY2F0cw==?= <usfinecats@xxxxxxxxxxxxx>
| References: <4247D31B-91BF-4DDA-A99B-D50CACF92FD0@xxxxxxxxxxxxx>
<uGPJLd7PJHA.4864@xxxxxxxxxxxxxxxxxxxx>
| Subject: Re: asp.net server side debugging
| Date: Wed, 5 Nov 2008 18:56:00 -0800
| Lines: 91
| Message-ID: <A78DF5F7-5CAC-4123-B34D-C4F9F38E791C@xxxxxxxxxxxxx>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.3168
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Path: TK2MSFTNGHUB02.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet:79312
| NNTP-Posting-Host: tk2msftibfm01.phx.gbl 10.40.244.149
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Thanks for the reply, the validator I'm using is just the one from the
| tutorial...
| I forced some print statements to be dumped, and that just confirmed that
| values are being cached, so I'm out of the looney bin.
|
| I don't understand the caching though. If I fill in a form , then submit
| it, then edit it and submit it again I don't find that the result is
| processed correctly.
|
| I guess I'm don't understand the execution model and when things get
| processed.
| Maybe a couple pointers on that would be informative.
|
|
| --
| Gak -
| Finecats
|
|
| "Cowboy (Gregory A. Beamer)" wrote:
|
| > What kinds of validators are you using? If you have custom validators,
you
| > might have an issue there, based on how they are set up.
| >
| > Personally, I run data through a secondary validation on the server
side to
| > be safe. I like having the validation in a business component, as it is
| > portable to other forms of application faceplates (like Windows Forms
and
| > WPF/Silverlight). I cannot do this if all of the validation is buried
in the
| > ASP.NET code.
| >
| > --
| > Gregory A. Beamer
| > MVP, MCP: +I, SE, SD, DBA
| >
| > Subscribe to my blog
| > http://feeds.feedburner.com/GregoryBeamer#
| >
| > or just read it:
| > http://feeds.feedburner.com/GregoryBeamer
| >
| > ********************************************
| > | Think outside the box! |
| > ********************************************
| > "usfinecats" <usfinecats@xxxxxxxxxxxxx> wrote in message
| > news:4247D31B-91BF-4DDA-A99B-D50CACF92FD0@xxxxxxxxxxxxxxxx
| > > I'm new to asp.net. I'm trying to follow the tutorial walkthroughs
and
| > > have
| > > got a few done. Now I'm doing the one about validating input, and
I've
| > > run
| > > into some problems.
| > >
| > > In particular, I am watching very intermittent behavior of my ASP
page.
| > >
| > > when I execute:
| > >
| > > protected void buttonSubmit_Click(object sender, EventArgs e)
| > > {
| > > if(Page.IsValid) {
| > > labelMessage.Text = "Your reservation has been processed.";
| > > }
| > > else
| > > {
| > > labelMessage.Text = "Page is not valid.";
| > > }
| > > }
| > >
| > > the Page.IsValid is returning true even when it has produced errors
that
| > > the
| > > Validators have caught.
| > >
| > > 2ndly the Validator for ONE of my controls is randomly incorrect.
| > >
| > > So, how might I debug this? The client side is not where MY PROBLEMS
lie.
| > > I need
| > > to debug the SERVER side to understand if my properties on the
validators
| > > are not correct.
| > >
| > > Is there caching of prior data going on that I'm not aware of?
| > > How do I go about cleaning this out?
| > >
| > > How do I debug this odd/frustrating behavior?
| > >
| > > TIA
| > >
| > >
| > >
| > > --
| > > Gak -
| > > Finecats
| >
| >
|

.


Quantcast