Solved

Insert Form Tag Inside MasterPage

Posted on 2009-03-31
7
740 Views
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 = '';" />
                    </div>
                    <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" /

</form>
-------------------

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
0
Comment
Question by:safiint
  • 4
  • 3
7 Comments
 
LVL 3

Expert Comment

by:JenniQ
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:

http://msdn.microsoft.com/en-us/library/x2b3ktt7.aspx

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
0
 
LVL 4

Author Comment

by:safiint
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 = '';" />
</div>
<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."
0
 
LVL 3

Expert Comment

by:JenniQ
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.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 4

Author Comment

by:safiint
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.
0
 
LVL 3

Accepted Solution

by:
JenniQ earned 500 total points
ID: 24051846
Is this by any chance a vBulletin error?
0
 
LVL 4

Author Comment

by:safiint
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
0
 
LVL 4

Author Closing Comment

by:safiint
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.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
A short film showing how OnPage and Connectwise integration works.

930 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now