Solved

Insert Form Tag Inside MasterPage

Posted on 2009-03-31
7
736 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 4

Author Comment

by:safiint
Comment Utility
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
Comment Utility
Is this by any chance a vBulletin error?
0
 
LVL 4

Author Comment

by:safiint
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 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

11 Experts available now in Live!

Get 1:1 Help Now