Search

You searched for the word(s): userid:195583

Matching Posts

  • Re: Error in setting up IIS for Form Based authentication.

    When the user credentials have been checked you must tell the authentication module before redirecting, so that it doesn't bother your user again with this anoying login screen : if (Membership.Provider.ValidateUser(userName, userPass)) { FormsAuthentication.SetAuthCookie(userName, ckRememberMe.Checked); Response.Redirect( "~/home.aspx" ); } In this example I am using the asp.net Membership provider model (see Joe Stagner's tutos for more info on this ) but you could also replace
    Posted to Configuration and Deployment (Forum) by d.th on 1/23/2008
    Filed under: asp net, asp.net, ASP.NET 2.0, Authentication mode, membership, windows authentication
  • Re: Error in setting up IIS for Form Based authentication.

    It's perfectly coorect. In your Default.aspx Page_Load event you can eassy check if your user is already signed in and then redirect hime to your home.aspx protected void Page_Load( object sender, EventArgs args) { if (User.IsAuthenticated) Response.Redirect( "~/home.aspx" ); } Also, if you use the Login control in your Default.aspx, you can set the RedirectPage to "~/home.aspx" directly on the control. So, all together what your are trying to do is correct. I simply pointed
    Posted to Configuration and Deployment (Forum) by d.th on 1/23/2008
  • Re: Need your help!A question about Render!

    because, in first snippet : Render( HtmlTextWriter writer ) calls base.Render( tw ); where tw is a new HtmlTextWriter created on a memory stream (html = new System.IO.StringWriter()) thus, the page (or the control) writes its markup in tw, wich in turns writes it in the "html" stream So, to output the result to the page you then need to write the "html" stream to the original writer or to the underlying stream (Response) In the second case, however, Render( HtmlTextWriter writer
    Posted to Web Forms (Forum) by d.th on 1/23/2008
  • Re: Need your help!A question about Render!

    I'm not sure about your last question : protected override void Render( HtmlTextWriter writer ) { base.Render(writer); } should render the page: in fact it's exactly as if you put no code at all. So, if your page contains some markup it will be rendered. What do expect it should do that it doesn't (or vice-versa) ?
    Posted to Web Forms (Forum) by d.th on 1/23/2008
  • Re: Error in setting up IIS for Form Based authentication.

    I think you might have two distinct and cumulative errors : - having disabled Windows Integrated Security in IIS doesn't allow IIS to let you hook into the debugger ; you can very well leave Integrated Windows Identity and also enable Anonymous access to the web site - plus you probably have a problem with your web.config unless you showed only a part of it : < authorization > < deny users ="?"></ deny > </ authorization > will prevent non logged in useres to
    Posted to Configuration and Deployment (Forum) by d.th on 1/23/2008
  • Re: Need your help!A question about Render!

    The whole purpose of overriding the Render method in the page here seems (one can only guess the author's intent ;-)... ) to be able to capture the markup generated by the base.Render implementation into a "a.htm" file. If you keep the whole top block without the last line, nothing will be output to your page because the ancestor's render method has been given an in-memory writer. Hope this answers your question
    Posted to Web Forms (Forum) by d.th on 1/23/2008
  • Re: CalendarExtender and globalization.

    It's compiled into the dll's resources. To change it you need to donwload the Toolkit's sources. Then you either recompile or simply copy the CalendarBehaviour.js to your site and set it's path in the component's "ScriptPath" property.
    Posted to ASP.NET AJAX Control Toolkit (Forum) by d.th on 2/22/2007
  • Re: Instanciating Mock (or real-but-out-of-hosting-context) objects to test-run handlers and modules

    Solved ! Phillip Haack (of .subtext) has this excellent post on the subject : http://haacked.com/archive/2005/06/11/Simulating_HttpContext.aspx
    Posted to HttpHandlers and HttpModules (Forum) by d.th on 2/4/2007
  • Instanciating Mock (or real-but-out-of-hosting-context) objects to test-run handlers and modules

    Hi, we're working on an heavy traffic web site and want to deliver an as-tested-as-possible product to our client. So most of the project code is under unit tests and we have selenium tests on the client side to check a number of scenarios. However there's a big scale factor between close-to-the-class unit tests of server classes and full client side scenarios played with Selenium. So we've been playing with the idea of unit-testing some specific cases by injecting artificially built http request
    Posted to HttpHandlers and HttpModules (Forum) by d.th on 2/1/2007
    Filed under: unit-test http handler module asp.net
  • Re: "out" parameters in Web Service

    to state it in a VB-ish way : all web service parameters are "ByVal" ; remember the server gets called in an async way from a remote (javascript) client : there's no way actual references could survive this process... however, if your purpose is to return 2 values (e.g. two strings) you can always return a struct or a [serializable]class
Page 1 of 1 (10 items)