Search

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

Matching Posts

  • How to let logged in user to change their username?

    I know SQL security provider doesn't allow you change username, you need write query to change aspnet_users table. And after username changed, user has to log out and login again since the username is in cookie, which need to be reset. My problem now is when I change username in aspnet_users table and then call FormsAuthentication.SignOut to sign out the current user, it will a postback to change(clear) the cookie, but since the username is changed already, the postback cannot find the user so
    Posted to Security (Forum) by wyx2000 on 11/12/2009
  • Re: How to let logged in user to change their username?

    User could change their username (username is their email, and they can change their email), actually there are two problems, when user change their username, how do I log them out and then change the table? Even when admin change for them, what if they are logged in at that time, in either way, they end up with a login control without any input box.
    Posted to Security (Forum) by wyx2000 on 11/12/2009
  • Re: How to let logged in user to change their username?

    WHen you set user's profile, and ASP.NET see username in cookie, but could not find the user in user table, it will add an entry to the user table and then set the profile table, it will not add an entry to membership table. When that happens, you see the login control will only show the "please login with your username and password", but the login box and password box will not show. I always set user's IP to user's profile in page load. I cannot tell which one I should set
    Posted to Security (Forum) by wyx2000 on 11/12/2009
  • How to create a page with dynamic control?

    I want to create a quiz tool, when user click Prev or Next, they get a question show on the page. I am a bit conufused with the viewstate. I want to show one question one time, so I show question 1, user pick an answer and click Next, I then show question 2. But after user click Next, I need recreate the question 1 first so I can read which option user picked, right? I then need create question 2. So how should I do that? thanks
    Posted to Web Forms (Forum) by wyx2000 on 10/21/2009
  • Re: Have problem to create a usercontrol that supports validation, help please.

    You still need set "ControlToValidate" of the CustomValidator control, I don't think it is problem to set the File control to ControlToValidate. Don't you think I should implement IValidator in this case?
    Posted to Custom Server Controls (Forum) by wyx2000 on 3/30/2009
  • Re: Have problem to create a usercontrol that supports validation, help please.

    Thanks. That is a way to do it, but I want to make the usercontrol self contained. That means I can just put the usercontrol in a FormView without worrying about any validator. As I said, I can out a required validator into the usercontrol, and write some code to bind it with asp.net control in my usercontrol. But in this usercontrol. I don't have asp.net control like TextBox, I only has a File control in it. I can not bind required validator to the File control. I need check the file control
    Posted to Custom Server Controls (Forum) by wyx2000 on 3/29/2009
  • Re: Have problem to create a usercontrol that supports validation, help please.

    Thanks for you reply. I think you didn't get me right. I don't want to prevent postback. I just want to prevent the form is submitted. I think I just need a server side validation. Just like the required validation. You can validate it on client side, but for safety and browser compatibility, we usually add a server side validation too. When it passes client side validation unexpectedly for some reason, we can check it on server side, and if it doesn't go through, we still show error
    Posted to Custom Server Controls (Forum) by wyx2000 on 3/29/2009
  • Re: Have problem to create a usercontrol that supports validation, help please.

    Not sure what you mean, I let it always return false to test, so that it can keep the FormView from submitting and show error message. But I didn't see that expected result.
    Posted to Custom Server Controls (Forum) by wyx2000 on 3/25/2009
  • Have problem to create a usercontrol that supports validation, help please.

    I want to make my usercontrol support validation. I did something like this, for example, I have a customized textbox usercontrol, I put a textbox in the usercontrol, and I add a RequiredFieldValidator in it and link it with the Textbox, assign ValidationGroup and message etc., and then it works. But now I have a usercontrol, in the usercontrol, I need check content of a uploaded file and if the content is not what I want, I want the usercontrol to show a error message, and the FormView where the
    Posted to Custom Server Controls (Forum) by wyx2000 on 3/25/2009
  • Re: How do I set my website use 3.5? thanks

    I am not sure how to call the way I am using, I put code in app_code, and I don't compile them. So I don;t need open them in visual studio. So my web site on IIS like this test site |-- app_code |-- app_browsers |-- bin .... so in this case, how to I set its target framework?
    Posted to Getting Started (Forum) by wyx2000 on 6/27/2008
Page 1 of 81 (801 items) 1 2 3 4 5 Next > ... Last »