Skinned - login button now not functioning ???

Last post 12-08-2003 3:55 PM by kenzie. 10 replies.

Sort Posts:

  • Skinned - login button now not functioning ???

    12-03-2003, 9:11 AM
    • Member
      80 point Member
    • kenzie
    • Member since 03-06-2003, 8:32 AM
    • Posts 16
    Hi,

    I am a fairly new developer, so please forgive my ignorance.

    I have taken the community and installed it on a my own test server, and it works great.

    The Issue:
    I have a design template that I want to integrate into the application. So I took one of the templates "frida", copied it, and renamed it to the name I wanted.
    I basically took all of the controls (<community:whatever/>) and inserted them within my template. Took out all html tags like (<html><head><body>), added the initial two lines of code from the original ascx file, and saved the whole thing as the "default.ascx".

    When I change the site template to use the new one, the site appears just fine. My pages all work, and the data from the database is working and setting up the web boxes and all.
    Where the problem is, is that when I go to the login page, when you fill in the login info and click the asp "login" button, it does not work. It does nothing as if there is no code action on the button.
    When I flip back to the other templates, it works just fine.

    here is the link to the app, if it helps to see it:
    http://test.truewater.com/lonestarloveusa


    thank you for your help!
  • Re: Skinned - login button now not functioning ???

    12-03-2003, 9:42 AM
    • Member
      80 point Member
    • kenzie
    • Member since 03-06-2003, 8:32 AM
    • Posts 16
    here is the default.ascx code if anyone wants to see it:
    http://test.truewater.com/lonestarloveusa/DefaultASCX.txt


    (I saved it as a txt file just so you could see the code)
  • Re: Skinned - login button now not functioning ???

    12-03-2003, 9:47 AM
    • Contributor
      5,268 point Contributor
    • Redd
    • Member since 06-21-2002, 3:50 PM
    • Greenville SC
    • Posts 1,057
    Check the IDs of the controls. Some controls are located by the engine by their ID. Make sure you didn't accidentally change the ID.
    Stephen M. Redd
    http://www.reddnet.net
  • Re: Skinned - login button now not functioning ???

    12-03-2003, 11:28 AM
    • Member
      80 point Member
    • kenzie
    • Member since 03-06-2003, 8:32 AM
    • Posts 16
    I am not sure if this helps, but I did not change the login content page which contains the login button and ID.
    That is called in by the asp code for the "content" of the page.

    So I dont know how I could have changed the ID on the button for logging in.

    Am I way off from understanding what you were saying redd?

    (thank you for your reply by the way!)
  • Re: Skinned - login button now not functioning ???

    12-03-2003, 2:41 PM
    • Contributor
      5,268 point Contributor
    • Redd
    • Member since 06-21-2002, 3:50 PM
    • Greenville SC
    • Posts 1,057
    Nope you are on the same page with me... unfortunatly that means I just ran out of ideas for why your problem happens :(
    Stephen M. Redd
    http://www.reddnet.net
  • Re: Skinned - login button now not functioning ???

    12-03-2003, 4:25 PM
    • Member
      80 point Member
    • kenzie
    • Member since 03-06-2003, 8:32 AM
    • Posts 16
    Redd: I got it working now. I know what I did, but I dont understand why what I changed makes it work now. Please help me understand if you can.

    There were some "<form>" tags and objects within that page, which were not being used. When I removed them it works!

    anyone know why?
  • Re: Skinned - login button now not functioning ???

    12-04-2003, 9:58 AM
    • Participant
      840 point Participant
    • Jeff Giesbrecht
    • Member since 06-18-2002, 7:43 AM
    • Houston, TX
    • Posts 168
    From what I understand of the asp.net page model you can only have one form per aspx page. I know that Paul Wilson has been able to overcome this limitation, how exactly I'm not sure.
  • Re: Skinned - login button now not functioning ???

    12-05-2003, 12:03 PM
    • Contributor
      5,268 point Contributor
    • Redd
    • Member since 06-21-2002, 3:50 PM
    • Greenville SC
    • Posts 1,057
    You can only have one set of <form> tags with the Runat="Server" attribute set in ASP.NET. You can still have other form tags on your page as long as only one is a Runat="Server", and all of your ASP.NET tags are inside the server form tag.

    However, you should also keep in mind that the W3C specs form HTML forbid nested <form> tags. In non Microsoft Browsers, you will almost certainly break the whole page if you nest form tags. IE is able to deal with nested forms, but the behavior can be unpredictable in some cases.

    I recommend you avoid more than one form where possible, and never nest forms.
    Stephen M. Redd
    http://www.reddnet.net
  • Re: Skinned - login button now not functioning ???

    12-05-2003, 10:48 PM
    • Participant
      840 point Participant
    • Jeff Giesbrecht
    • Member since 06-18-2002, 7:43 AM
    • Houston, TX
    • Posts 168
    Stephen,

    Do you know if this is the same limitation that Paul Wilson has with his multi forms or was he able to work around this limitation?
  • Re: Skinned - login button now not functioning ???

    12-07-2003, 2:31 PM
    • Contributor
      5,268 point Contributor
    • Redd
    • Member since 06-21-2002, 3:50 PM
    • Greenville SC
    • Posts 1,057
    More of an incomplete (doesn't play well with asp.net validator controls) work-around using a commercial component he designed.

    http://www.wilsondotnet.com/Controls/
    Stephen M. Redd
    http://www.reddnet.net
  • Re: Skinned - login button now not functioning ???

    12-08-2003, 3:53 PM
    • Member
      80 point Member
    • kenzie
    • Member since 03-06-2003, 8:32 AM
    • Posts 16
    thank you very much for your input guys!

    I am learning a lot of this stuff on my own, so sometimes it takes me a while to catch and learn things like this.

    I really appreciate the help and understanding on this forum/website!
    Thanks again!
Page 1 of 1 (11 items)