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 7840995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:59:42+00:00 2026-06-02T15:59:42+00:00

please see this html codes : <!– PAGE – 5 –> <div class=section cc_content_5

  • 0

please see this html codes :

<!--   PAGE - 5  -->
                <div class="section cc_content_5" id="page5" style="display: none;">
                    <div class="pad_content">
                        <div class="right grid_1">
                            <h1>
                                Contact Address
                            </h1>
                            <img src="Images/photo_5.jpg" alt=""><br />
                            <br />
                            <strong>The Companyname Inc</strong> 8901 Marmora Road,<br />
                            Glasgow, D04 89GR.<br />
                            Telephone: +1 800 123 1234<br />
                            Fax: +1 800 123 1234<br />
                            E-mail: <a href="mailto:#">www.copanyname.com</a><br />
                        </div>
                        <div class="left grid_2">
                            <h1>
                                Contact Form
                            </h1>
                            <div id="note">
                            </div>
                            <div id="fields">
                                <form id="ajax-contact-form" action="javascript:alert('success!');">
                                <label>
                                    Name:</label><input class="textbox" name="name" value="" type="text">
                                <label>
                                    E-Mail:</label><input class="textbox" name="email" value="" type="text">
                                <label>
                                    Subject:</label><input class="textbox" name="subject" value="" type="text">
                                <label>
                                    Comments:</label><textarea class="textbox" name="message" rows="5" cols="25"></textarea>
                                <label>
                                    Captcha</label><img src="Images/captcha.php" style="margin: 3px 0px; width: 200px;
                                        height: 32px;">
                                <div class=" clear">
                                </div>
                                <label>
                                    &nbsp;</label><input class="textbox" name="capthca" value="" type="text">
                                <div class=" clear">
                                </div>
                                <label>
                                    &nbsp;</label><input class="pin" name="submit" value="Submit" type="submit">
                                </form>
                                <div class="clear">
                                </div>
                            </div>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                </div>

and their script :

<script type="text/javascript">
    $(document).ready(function () {
        $("#ajax-contact-form").submit(function () {
            var str = $(this).serialize(); $.ajax({ type: "POST", url: "contact.php", data: str, success: function (msg) {
                if (msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
                { result = '<div class="notification_ok">Your message has been sent. Thank you!<br /> <a href="#" onclick="freset();return false;">send another mail</a></div>'; $("#fields").hide(); } else
                { result = msg; } $("#note").html(result);
            }
            }); return false;
        });
    });
    function freset()
    { $("#note").html(''); document.getElementById('ajax-contact-form').reset(); $("#fields").show(); }
</script>

i really want to know how can i put page 5 in my asp.net web form?
as you we can not have a form inside default asp.net web page form.
so what can i do about page 5?

thanks in advance

  • 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-06-02T15:59:44+00:00Added an answer on June 2, 2026 at 3:59 pm

    You can not have two forms inside an asp.net page and both work on code behind.

    The alternative that you have.

    1. Place the second form before or after the asp.net form
    2. Do not set second form, just read the input data that you interesting on code behind.
    3. Dynamically create the form at the end of the page using the javascript and post it.

    Because here I see that you post to php and I think that you like to keep the old code with asp.net, add them after the closing form of the asp.net form.

    <form id="AspForm" runat="server">
    ...
    </form>
    <form id="ajax-contact-form"  method="post" action="contact.php" >
    ...
    </form>
    

    More Extreme

    Because you all ready use javascript you can do this trick. Copy and paste all the content in a form at the end of the page and post it.

        <form id="AspForm" runat="server">
        ...
          <div id="ajax-contact-infos" >
           <label>
              Name:</label><input class="textbox" name="name" value="" type="text">
           <label>
           <input class="pin" name="submit" value="Submit" 
             type="button" onclick="SubmitThisForm();return false;" >
            ...
          </div>
        </form>
        <form id="ajax-contact-form"  method="post" action="contact.php" >
           <div id="PlaceOnMe" ></div>
        </form>
    

    and on javascript copy it just before post it as

    <script type="text/javascript">
        function SubmitThisForm()
        {
                // here I copy (doublicate) the content of the data that I like to post
                //  in the form at the end of the page and outside the asp.net
            jQuery("#PlaceOnMe").html(jQuery("#ajax-contact-infos"));
                // Now we submit it as its your old code, with out change anything
            jQuery("#ajax-contact-form").submit();
        }
    
        // here is the old code.
        $(document).ready(function () {
            $("#ajax-contact-form").submit(function () {
                var str = $(this).serialize(); $.ajax({ type: "POST", url: "contact.php", data: str, success: function (msg) {
                    if (msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
                    { result = '<div class="notification_ok">Your message has been sent. Thank you!<br /> <a href="#" onclick="freset();return false;">send another mail</a></div>'; $("#fields").hide(); } else
                    { result = msg; } $("#note").html(result);
                }
                }); return false;
            });
        });
        function freset()
        { $("#note").html(''); document.getElementById('ajax-contact-form').reset(); $("#fields").show(); }
    </script>
    

    All this is with the minimum changes. You can how ever make optimization, but this is the general idea.

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

Sidebar

Related Questions

To understand what I mean, please see this snippet: <table style=width: 100%> <tbody><tr><td> <div
Please see the form HTML code below <form method=post action=register> <div class=email> Email <input
This is my code (please see this fiddle ): HTML <div id=container> <span id=left>Left
I'm using the Google Maps API. Please see this JSON response . The HTML
Please see this fiddle I want the scrolling div stop following when left div
Please see this code <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> <html xmlns=http://www.w3.org/1999/xhtml>
I have the following HTML code: <div id=summary_form> <textarea class=summary>Please fill in</textarea><br/> <textarea class=summary>Please
I have a HTML code like this: <div class=links nopreview><span><a class=csiAction href=/WebAccess/home.html#URL=centric://REFLECTION/INSTANCE/_CS_Data/null>Home</a></span>&nbsp;•&nbsp;<span><span><a class=csiAction href=/WebAccess/home.html#URL=centric://SITEADMIN/_CS_Site>Setup</a></span>&nbsp;•&nbsp;</span><span><a
Please see this piece of code: #include<stdio.h> #include<string.h> #include<stdlib.h> int main() { int i
Important : Please see this very much related question: Return multiple values in C++

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.