[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


Insert Form Tag Inside MasterPage

Posted on 2009-03-31
Medium Priority
Last Modified: 2012-05-06
Hi, all.

I Have the following html:

<form action="http://mydomain.net/forum/login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">

<asp:ImageButton ID="btnLogin" runat="server"  ImageUrl="images/loginButton.gif" AccessKey="s" />
                        <input type="password" name="vb_login_password" id="navbar_password" />
                        <input type="text" name="vb_login_username" id="navbar_username"
                            accesskey="u" value="'3E 'DE3*./E" onfocus="if (this.value == ''3E 'DE3*./E') this.value = '';" />
                    <input type="hidden" name="s" value="" />
                    <input type="hidden" name="do" value="login" />
                    <input type="hidden" name="vb_login_md5password" />
                    <input type="hidden" name="vb_login_md5password_utf" /


I want the previous form to be inside master page, I know it will not work.
So do anyone has an idea .
Thanks for any help
Question by:safiint
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3

Expert Comment

ID: 24030536
You may want to use NESTED MASTERPAGES.

You can create a root master page for a site that defines a site's overall layout, and then create nested master pages that are based on the root master and further customize the layout, allowing you to embed forms into the master.

Here is a good article:


For your problem, you'd make another master page content holder then put the form outside any other main forms on the page. you have to restructue to accomindate this.

-- jq

Author Comment

ID: 24038599
No JennyQ, I want to put this form in the MainMasterPage.

I tried the following:

<asp:imagebutton class="loginBtn" id="btnLogin" runat="server" postbackurl="http://mydomain.net/forum/login.php?do=login"
    imageurl="images/loginButton.gif" accesskey="s" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)" />
<input type="password" class="txtUser" name="vb_login_password" id="navbar_password" />
<input type="text" class="txtUser" name="vb_login_username" id="navbar_username"
    accesskey="u" value="user name" onfocus="if (this.value == 'user name') this.value = '';" />
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />


but when I click on the button It give me the following message from the "Forum domain":

"In order to accept POST request originating from this domain, the admin must add this domain to the whitelist."

Expert Comment

ID: 24040799
That error is an apache or tomcat error right? that is not IIS.

A whitelist is a list of accepted items or persons in a set. This list is inclusionary, confirming that the item being analyzed is acceptable. It is the opposite of a blacklist which confirms that items are not acceptable.
An e-mail whitelist is a list of contacts that the user deems are acceptable to receive email from and should not be sent to the trash folder.

You need to configure your webserver it sounds like.
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 24050081
I don't have any control on the forum to add my site to the whitelist.

And I test the form outside of my domain and it's worked but when I run it from my domain it gives the error.

So if there any way to do this.

Accepted Solution

JenniQ earned 1000 total points
ID: 24051846
Is this by any chance a vBulletin error?

Author Comment

ID: 24071568
I don't think so

But I which to that by take the value of the text boxes to another page that not inherit from the master page, that may be work.

So how can we do that without querystring because there is a password

Author Closing Comment

ID: 31564833
sorry JennyQ the problem was happened because I was testing my domain on the localhost.

when I publish it to the net it working with a new problem.

so I will ask about it.

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question