help.net

<font size="2"><br />Musing on .Net</font>

  • Interesting !


    For whoever read my last blog about a new feature in .Net 1.1, this is now to behave like a 'serious' issue.

    I was reading
    Brad Adams and  give this comment:

    NB: Interesting exception thrown when I tried to enter the "< NOSPAM >" in the e-mail address for this message. Remove the spaces between the angle brackets and the NOSPAM word to see the effect!

    Obviously I tried it and it give me the same exception message that I mentioned.

    Imagine this happens to our gurus ;-) More seriously is somebody from the .Net team can give a better alternative than the one proposed.

    I repeat I like this feature, but I dislike the way it was implemented.

  • Validation request in .Net 1.1


    I think this can be useful for everybody who can have this problem with .Net 1.1.

    I break a little project I run on one of my servers, just by installing .Net 1.1 instead of the 1.0, because this happened.

    I generated a database of usernames and password to provide an access for a vote section in this project.

    What I didn't know with .Net 1.1, is that the team added a new feature about request validation.

    So now if your user submit some specific characters like the one which can be interpreted as script functions, and submit the form, you might finish with a superb new error message like this :

    A potentially dangerous Request.form value was detected from the client.

    I am not complaining about this, I think it's a great security feature.

    Unfortunatly my password list contains some characters interpreted as tags part like < or >.

    However, the solution provided to this issue don't make me fully happy.

    What you can do is to disable this new feature by adding this in your Page directive line:

     <%@ Page validateRequest="false"  % >

  • ASP.NET hosting


    Fabrice I can help, I have my own hosting platform. Well the only restriction could be the traffic ;-)

    By the way, I think I read some time ago in this very blog space, that someone know another free hosting solution.

    I can't find anymore the details but I will let you know if I find it again.

  • Breadcrumbs code


    I am looking for an easy to implement breadcrumbs code for my project Scoilnet (VB if possible, C# is ok).

    I already code one but not totally happy with it, too much links hard-coded.

    What is also the best ? Having the links in a database, an xml file, or static links.

    I would like to have something like:

    Home / My Level 1 / My Level 2

    Thanks for any help !

  • Back button and .Net


    I have a good question here and I need some help. No idea if this is possible.

    Imagine this scenario: you go from a web page A to a page B by a click.
    OK. now I have on the page B some buttons to trigger some decorations changes on the page B, like having the text in three columns, the font size, etc...

    But of course, because of the server-side effect, the history include these changes.

    So now this is the challenge. How can I use the Back button of the browser and back automatically to the A page and not to the cache version of the modified page B.

    I can't think about disable viewstate because I need it to maintain some infos on the page.
    Maybe the cache ?!?

    My two cents on that will be probably to use the Javascript function History(), but not totally sure about that.
    I am sure that this is a task a lot of people would like to be solve.

    Any idea?

  • Thanks guys...


    Hey man, when are you going to leave me alone with your bazaar rhetoric and realise that you not offend me at all, but certainly a lot of people there who want just to read .Net stories and subjects related to technology and nothing else.

    Glad to see that you understand finally that your stuff has to be store in the backyard, not anymore posted on the front door !

    So thanks now to stop using my name everytime you start ranting, saying something like 'sorry if what follow going to offend Paschal'!