[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Insert Form Tag Inside MasterPage

Posted on 2009-03-31
7
Medium Priority
?
757 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 1000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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.
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

830 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