Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6391873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:44:31+00:00 2026-05-25T03:44:31+00:00

i have my login in a fancybox and fancybox div is in a controller.

  • 0

i have my login in a fancybox and fancybox div is in a controller. problem is if click the button nothing happens event isnt fired.
this is my controller.ascx

<div id="inline1" style="width:400px;">
<ul class="forms">
    <li class="inputfield"><asp:TextBox ID="kullanıcı_adi" runat="server"></asp:TextBox></li>
</ul>
<ul>
    <li><asp:TextBox ID="sifre" runat="server"></asp:TextBox></li>
</ul>
<ul>
    <li>
        <asp:Button ID="Button1" runat="server" Text="Giriş Yap" 
            onclick="Login_Authenticate" />
        <asp:Button ID="Button2" runat="server" Text="Vazgeç"/>
    </li>
</ul>
    </div>

and this is my cotroller.ascx.cs

    protected void Login_Authenticate(object sender, EventArgs e)
    {
        bool authenticated = AuthenticateMe(kullanıcı_adi.Text, sifre.Text, true);

        if (authenticated)
        {
            FormsAuthentication.RedirectFromLoginPage(kullanıcı_adi.Text, true);
        }
    }

and this is the default.aspx

<li class="gallery"><a id="various1" href="#inline1">Üye ol/Giriş Yap</a></li>

<div style="display: none;">
    <co:c_login ID="id_c_login" runat="server" EnableViewState=true />
</div>

I found the solution. Same question asked before.
Fancybox – ASP.NET button not working Thank you for your answers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:44:31+00:00Added an answer on May 25, 2026 at 3:44 am

    A bit late, but it may help you.

    This is because how fancybox works, when fancybox displays the div block, it creates temporary div block with your content and appends it to end of the body tag of the page, hence this generated temporary block is created outside form tag.

    In a web page when you postback a page, the control which generates postback event must be within form tag to identify the page postback action.

    To resolve this issue you can use a bit of javascript, create another button control but it should not be part of fancybox control, and on submit button within fancybox, fire click event of another created button (which will be inside form tag) with help of javascript.

    That should solve your problem, please vote if it answer your question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok, so I have seen this solution to closing a fancybox via a button
I have login controller in my CI app: function index() { if($this->session->userdata('logged_in')==TRUE) redirect('/success'); $data['error']=$this->session->flashdata('errormessage');
I have a login form that opens in a fancybox. My problem is that
Normally we have login page with username, password filed and signin button. Using the
I have a login screen and there is some registration button and login button.
i have login form like this log in to the application, it shows menu
I have a problem with tabbarcontroller.Im working with storyboard and Im using navigation controller
I have a link on my page, which calls a login form inside Fancybox.
I have Login.php form like this: class Form_Login extends Zend_Form { public function init()
I Have login page on my asp.net page and I need this page to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.