Search

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

Matching Posts

  • Re: (Another) Radiobutton CheckedChanged problem

    Managed to resolve the problem by adding the bold statement. protected void Page_Load( object sender, EventArgs e) { bool ValueFromDatabase = GetValue(); if (ValueFromDatabase) { this .RadioButtonList1.Items[0].Selected = true ; ViewState[ "Type" ] = RadioButtonList1.SelectedValue; GridView1.DataSourceID = "SqlDataSource1" ; } } But I still don't understand why having this .RadioButtonList1.Items[0].Selected = true ; in the Page_Load stops the RadioButtonList1_SelectedIndexChanged
    Posted to Web Forms (Forum) by danadanny on 11/25/2008
  • Re: (Another) Radiobutton CheckedChanged problem

    Gary, thanks for your reply. However, if I put the following code in the Page_Load, it doesn't work. RadioButtonList1_SelectedIndexChanged is not fired at all. protected void Page_Load( object sender, EventArgs e) { bool ValueFromDatabase = GetValue(); if (ValueFromDatabase) { this .RadioButtonList1.Items[0].Selected = true ; } } protected void RadioButtonList1_SelectedIndexChanged( object sender, EventArgs e) { ViewState[ "Type" ] = RadioButtonList1.SelectedValue; GridView1.DataSourceID
    Posted to Web Forms (Forum) by danadanny on 11/25/2008
  • Re: (Another) Radiobutton CheckedChanged problem

    Segundo and Shandy, thanks for your replies. I have already tried your suggestions but both doesn't work, ie, the check boxes in grid are not checked. rdoButton1_CheckedChanged does not fire at all when I click rdoButton1 (few times after page has loaded). What I can't get my head round is, when I remove this.rdoButton1.Checked = true , everything works fine! I forgot to mention that the gridview is populated using SqlDataSource. Unless this causes the problem. Which one come first? this
    Posted to Web Forms (Forum) by danadanny on 11/25/2008
  • (Another) Radiobutton CheckedChanged problem

    Hi all, quick question regarding the CheckedChanged event of radiobutton. I have a user control (.ascx) that contains 2 radio buttons (both belong to same group) and a gridview. Each row in the gridview contains a checkbox. Selecting one of the radio button (rdoButton1) will check all checkboxes in the gridview and selecting the other radiobutton (rdoButton2) will uncheck all checkboxes. Both rdoButton1 and rdoButton2 points to rdoButton1_CheckedChanged event. protected void rdoButton1_CheckedChanged
    Posted to Web Forms (Forum) by danadanny on 11/24/2008
  • Re: Dual authentication

    Thank you for your replies. Forms authentication ticket is used to tell the ASP .NET application who the user is. If the ticket is valid, it implies that the user is logged on to the web site. Can I use this ticket to inform the web server that the user is logged on to the machine ? After reading the requirements in greater details, I believe it requires the user to log on to the web server (as a user that exists in the AD). I may have been slightly confused when I posted my question.
    Posted to Security (Forum) by danadanny on 10/8/2007
  • Dual authentication

    Hi all. I have written a web application using ASP .NET 2.0. There are 2 groups of external users with different access rights. High and low. The web application is based on forms authentication. All users will logon to the web application via "Login.aspx" (1st login) and it authenticates against SQL Server 2000. High access group can access additional services (via a url link) which require logging on (this is a 2nd login) to the web server (Windows Server 2003) and is authenticated against
    Posted to Security (Forum) by danadanny on 10/4/2007
  • Re: authentication for both intranet and internet users ?

    Hi all. I have a similar requirement, except that all users are from external sources. There are 2 groups of users with different access rights. High and low. The web application is based on forms authentication. All users will logon to the web application via "Login.aspx" (1st login) and it authenticates against SQL Server 2000. High access group can access additional services (via a url link) which require logging on (2nd login) to the web server (Windows Server 2003) and is authenticated
    Posted to Security (Forum) by danadanny on 10/3/2007
  • Re: Open new IE window using C#

    [quote user="nizarcbd"] you can also try WatiN, it will help u to dry IE very well watin.sourceforgenet.com [/quote] Thanks. A very useful tool indeed.
    Posted to Getting Started (Forum) by danadanny on 9/11/2007
  • Re: Open new IE window using C#

    Hi Wim, Thanks for your reply. I've tried your suggestion and it worked! Thanks. Previously, I've written routines in the Login1_Authenticate event to validate the user. Within this event, I have included " FormsAuthentication .RedirectFromLoginPage( this .Login1.UserName, false );" All I did was to include " Response.Redirect( FormsAuthentication .DefaultUrl)" in the Login1_LoggedIn event as well. I don't suppose having two redirects will cause any problems. Thank
    Posted to Getting Started (Forum) by danadanny on 9/11/2007
  • Re: Open new IE window using C#

    Thanks for your reply. Oh yes, I understand that. I have that in my web.config. The problem now is, if user logged off from the website and then tries to view ShowPDF.aspx, the browser will show the login page with the redirected url. At this point, the user may log in and be redirected to ShowPDF.aspx. I want to stop this from happening. So, is there any way to define the redirect url to http://mydomain/mywebsite/Login2.aspx?ReturnUrl=%mywebsite% Home .aspx instead of http://mydomain/mywebsite/Login2
    Posted to Getting Started (Forum) by danadanny on 9/7/2007
Page 1 of 6 (54 items) 1 2 3 4 5 Next > ... Last ยป