Register and join over 40,000 other developers!
Recent Topics
-
Las Vegas Phone Services [hostedpbx ip phone]
NocRoom - Jan 25 2019 05:20 AM
-
Building a web app similar to Google sheets
Bissy - Dec 29 2018 05:31 AM
-
How would make this tutorial code print points incorrect order
sonar87 - Nov 03 2018 07:42 PM
-
set property with HTML content as string in from include not possible
LDDbyD - Oct 01 2018 06:33 AM
-
C++ FPS Game Development using Dark GDK
DaDopeman - Aug 12 2018 07:36 AM
Recent Blog Entries
Recent Status Updates
Popular Tags
- networking
- Managed C++
- stream
- console
- database
- authentication
- Visual Basic 4 / 5 / 6
- session
- Connection
- import
- syntax
- hardware
- asp.net
- html5
- array
- mysql
- java
- php
- c++
- string
- C#
- html
- loop
- timer
- jquery
- ajax
- programming
- javascript
- android
- css
- assembly
- form
- c
- vb.net
- xml
- linked list
- login
- encryption
- pseudocode
- calculator
- setup
- sql
- help
- python
- combobox
- binary
- game
- hello world
- grid
- innerHTML

4 replies to this topic
#1
Posted 30 November 2006 - 10:26 AM
hello,
i am having trouble applying templates to an aspx page. The form was originally part of a bigger page, but i stripped it down so it could be used elsewhere. the form works just fine by itself, but when i apply a template to it, it breaks. here is a link to the page http://www.pandasecu...e/default3.aspx
it has a very simple template attached. when you enter your info and submit, a thank you page is supposed to come up. the link for the page not stripped down is the same link but only default.aspx. there you can see how it is supposed to work. i can also get you the code for the stripped page without the template if you need it. any ideas?
i am having trouble applying templates to an aspx page. The form was originally part of a bigger page, but i stripped it down so it could be used elsewhere. the form works just fine by itself, but when i apply a template to it, it breaks. here is a link to the page http://www.pandasecu...e/default3.aspx
it has a very simple template attached. when you enter your info and submit, a thank you page is supposed to come up. the link for the page not stripped down is the same link but only default.aspx. there you can see how it is supposed to work. i can also get you the code for the stripped page without the template if you need it. any ideas?
#2
Posted 30 November 2006 - 01:27 PM
hmm, hard to tell. Can you post the code of this and your template?
#3
Posted 30 November 2006 - 02:38 PM
here is the page code:
here is the code for the template i eventually want to use:
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %> <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <meta name="robots" content="none" /> <script language="javascript" type="text/javascript"> // <!CDATA[ // ]]> </script> </head> <body> <div> <form id="form1" runat="server"> <asp:Label ID="lblErrorMessage" runat="server" ForeColor="Red" Width="580px" Font-Bold="True" Visible="False"></asp:Label> <p class="body" style="text-align: center"> <asp:ValidationSummary ID="ValidationSummary1" runat="server" Font-Names="Arial" Font-Size="10pt" HeaderText="Unable to Submit. All Fields Must Be Completed" /> <asp:Panel ID="pnlFormData" runat="server" Width="625px"> <table border="0" align="center" cellpadding="0" cellspacing="0" style="width: 591px; height: 239px" id="TABLE1" onclick="return TABLE1_onclick()"> <tr> <td style="width: 273px; text-align: right;"><span class="style12"> <asp:RequiredFieldValidator ID="rfvContact" runat="server" ControlToValidate="tbContact" ErrorMessage="Name">*</asp:RequiredFieldValidator> Name</span></td> <td colspan="1" style="width: 14px; text-align: left"> </td> <td colspan="2" style="text-align: left"><label> <asp:TextBox ID="tbContact" runat="server" BorderStyle="Inset" Font-Names="Arial" Font-Size="8pt" MaxLength="50" Width="150px"></asp:TextBox> </label></td> </tr> <tr> <td style="width: 273px; text-align: right;"><span class="style12"> <asp:RequiredFieldValidator ID="rfvCompany" runat="server" ControlToValidate="tbCompany" ErrorMessage="Company">*</asp:RequiredFieldValidator> Company</span></td> <td colspan="1" style="width: 14px; text-align: left"> </td> <td colspan="2" style="text-align: left"><label> <asp:TextBox ID="tbCompany" runat="server" BorderStyle="Inset" Font-Names="Arial" Font-Size="8pt" MaxLength="50" Width="150px"></asp:TextBox> </label></td> </tr> <tr> <td style="width: 273px; text-align: right; height: 19px;"><span class="style12"> <asp:RequiredFieldValidator ID="rfvTitle" runat="server" ControlToValidate="tbTitle" ErrorMessage="Title">*</asp:RequiredFieldValidator> Title</span></td> <td colspan="1" style="width: 14px; height: 19px; text-align: left"> </td> <td colspan="2" style="text-align: left; height: 19px;"><label> <asp:TextBox ID="tbTitle" runat="server" BorderStyle="Inset" Font-Names="Arial" Font-Size="8pt" MaxLength="30" Width="150px"></asp:TextBox> </label></td> </tr> <tr> <td style="width: 273px; height: 20px; text-align: right;"><span class="style12"> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbEmail" ErrorMessage="Email Address">*</asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="revEMail" runat="server" ControlToValidate="tbEmail" Display="Dynamic" ErrorMessage="Invalid Email Address" Font-Names="Arial" Font-Size="Small" Height="1px" ValidationExpression="^[\w-]+(?:\.[\w-]+)*@(?:[\w-]+\.)+[a-zA-Z]{2,7}$" Width="141px">Invalid Email Address</asp:RegularExpressionValidator> Email Address </span></td> <td colspan="1" style="width: 14px; height: 20px; text-align: left"> </td> <td colspan="2" style="text-align: left; height: 20px;"><label> <asp:TextBox ID="tbEmail" runat="server" BorderStyle="Inset" Font-Names="Arial" Font-Size="8pt" Width="150px"></asp:TextBox> </label></td> </tr> <tr> <td style="width: 273px; height: 20px; text-align: right;"><span class="style12" style="font-size: 10pt; font-family: Arial"> <asp:RequiredFieldValidator ID="rfvPhone" runat="server" ControlToValidate="tbPhone" ErrorMessage="Phone" Width="9px">*</asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="revPhone" runat="server" ControlToValidate="tbPhone" Display="Dynamic" ErrorMessage="Invalid Phone Number. Use format: xxx-xxx-xxxx" Font-Names="Arial" Font-Size="8pt" ValidationExpression="^(?:\([2-9]\d{2}\)\ ?|[2-9]\d{2}(?:\-?|\ ?))[2-9]\d{2}[- ]?\d{4}$" Width="9px">*</asp:RegularExpressionValidator> Phone Number</span></td> <td colspan="1" style="width: 14px; height: 20px; text-align: left"> </td> <td colspan="2" style="text-align: left; height: 20px; font-family: Verdana;"><label> <asp:TextBox ID="tbPhone" runat="server" BorderStyle="Inset" Font-Names="Arial" Font-Size="8pt" MaxLength="20" Width="93px"></asp:TextBox> <span style="font-size: 8pt;">ext</span><asp:TextBox ID="tbextension" runat="server" BorderStyle="Inset" Font-Names="Arial" Font-Size="8pt" MaxLength="7" Width="30px"></asp:TextBox> </label></td> </tr> <tr> <td style="width: 273px; text-align: right;"> <strong><span style="font-size: 9pt; font-family: Arial"> <asp:RequiredFieldValidator ID="rfvState" runat="server" ControlToValidate="ddlState" ErrorMessage="State" InitialValue="SO">*</asp:RequiredFieldValidator> State </span></strong></td> <td colspan="1" style="width: 14px; text-align: left"> </td> <td colspan="2" style="text-align: left"> <asp:DropDownList ID="ddlState" runat="server" DataSourceID="States" DataTextField="StateAbb" DataValueField="StateAbb" AppendDataBoundItems="True" Font-Names="Arial" Font-Size="8pt"> <asp:ListItem Value="SO">Select One</asp:ListItem> </asp:DropDownList> <asp:SqlDataSource ID="States" runat="server" ConnectionString="Data Source=S61682;User ID=panda;password=p3nd3s" SelectCommand="SELECT [StateAbb] FROM [States] ORDER BY [StateAbb]"></asp:SqlDataSource> </td> </tr> <tr> <td style="width: 273px; height: 22px; text-align: right;"><span class="style12"> <asp:RequiredFieldValidator ID="rfvNumEmployees" runat="server" ControlToValidate="ddlNumEmployees" ErrorMessage="Number of Employees" InitialValue="Select One">*</asp:RequiredFieldValidator> Number of Employees </span></td> <td colspan="1" style="width: 14px; height: 22px; text-align: left"> </td> <td colspan="2" style="text-align: left; height: 22px;"> <asp:DropDownList ID="ddlNumEmployees" runat="server" Font-Names="Arial" Font-Size="8pt"> <asp:ListItem>Select One</asp:ListItem> <asp:ListItem>2-5</asp:ListItem> <asp:ListItem>6-25</asp:ListItem> <asp:ListItem>26-50</asp:ListItem> <asp:ListItem>51-100</asp:ListItem> <asp:ListItem>101-250</asp:ListItem> <asp:ListItem>251-500</asp:ListItem> <asp:ListItem>501-1000</asp:ListItem> <asp:ListItem>3001-5000</asp:ListItem> <asp:ListItem>Over 5000</asp:ListItem> </asp:DropDownList> </td> </tr> <tr> <td style="height: 4px; width: 273px;"> </td> <td style="width: 14px; height: 4px"> </td> <td style="height: 4px"> </td> <td style="height: 4px; width: 15px;"> </td> </tr> <tr> <td style="width: 273px"> </td> <td style="width: 14px"> </td> <td><label> <div align="right" style="text-align: left"> <asp:Button ID="Button1" runat="server" Text="Submit" Font-Names="Arial" /></div> </label></td> <td style="width: 15px"> </td> </tr> </table> </asp:Panel> <asp:HiddenField ID="hfDottedIPaddress" runat="server" /> <asp:HiddenField ID="hfLongIPAddress" runat="server" /> </label></p> <label> <span class="style30" style="font-size: 9pt; color: #333333; font-family: Arial"></span> </label> <dl> <dd style="text-align: justify"> <label> </form> </div> </body> </html>
here is the code for the template i eventually want to use:
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %> <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <!-- TemplateBeginEditable name="doctitle" --> <title>Panda Software Antivirus and Internet Security Products</title> <!-- TemplateEndEditable --> <!-- TemplateBeginEditable name="head" --> <meta name="description" content="Buy Panda Software Antivirus and Internet Security Products."> <meta name="keywords" content="panda antivirus, panda titanium, panda platinum, panda software"> <meta name="robots" content="index,follow"> <link href="/Templates/pandasecurity_corporate/cssPanda.css" type="text/css" rel="stylesheet"> <!-- TemplateEndEditable --> </head> <body> <table cellspacing="0" cellpadding="0" width="100%" border="0" style="margin:0px;padding:0px"> <tbody> <tr> <!-- para añadir literales con multiidioma --> <!--=Panda.Applications.ResourceStrings.GetString("test")--> <td><!-- ***************************** --> <!-- CONTROL Cabecera --> <!-- **************************** --> <div id="head_top" style="BACKGROUND: url(/Templates/pandasecurity_corporate/02cab_emp.jpg) #ffffff no-repeat"> <div id="text_top"><a class="txt_cabe" id="Header1_HeaderLoginLogoff" href="javascript:__doPostBack('Header1$HeaderLoginLogoff','')"></a><a class="txt_cabe" href="http://www.pandasoftware.com/home/web">Site Map </a>| <a class="txt_cabe" href="http://www.pandasoftware.com/about/globalsites/">Global sites </a>| <a class="txt_cabe" href="http://www.pandasoftware.com/about/contact/">Contact </a><a style="MARGIN-LEFT: 25px; COLOR: #ffffff; MARGIN-RIGHT: 5px" href="http://www.pandasoftware.com/">Pandasoftware.com HOME </a></div> </div> <div id="button_top"><a href="http://www.pandasoftware.com/Home/Empresas/?sitepanda=empresas&track=31135&pais=63"><img height="18" src="/Templates/pandasecurity_corporate/02home_2_emp.gif" width="50" border="0" alt="home" /></a><a href="http://www.pandasoftware.com/products/HomeParticulares.htm?sitepanda=particulares&pais=63&idoma=en-us&track=31135" title="Panda Security Products" onmouseover="window.status='Products to Secure your Business';return true;" onmouseout="window.status=' ';return true;"><img height="19" src="/Templates/pandasecurity_corporate/02products_1_emp.gif" width="71" border="0" alt="products" /></a><a href="http://www.pandasoftware.com/download?sitepanda=empresas&pais=63&idoma=en-us&track=31135" title="Download Free Trial" onmouseover="window.status='Download Free Trial';return true;" onmouseout="window.status=' ';return true;"><img height="18" src="/Templates/pandasecurity_corporate/02downloads_0_emp.gif" width="79" border="0" alt="downloads" /></a><a href="https://shop.pandasoftware.com/inicio.aspx?pais=63&idoma=en-us&track=31135" title="Online Store" onmouseover="window.status='Online Store (Home / Business / Corporate)';return true;" onmouseout="window.status=' ';return true;"><img height="18" src="/Templates/pandasecurity_corporate/02store_0_emp.gif" width="48" border="0" alt="shop" /></a><a href="http://www.pandasoftware.com/com/Support/defaultemp/?sitepanda=empresas&pais=63&idoma=en-us&track=31135" title="Client Support" onmouseover="window.status='Client Support';return true;" onmouseout="window.status=' ';return true;"><img height="18" src="/Templates/pandasecurity_corporate/02support_0_emp.gif" width="61" border="0" alt="support" /></a><a href="http://www.pandasoftware.com/com/Virus_Info/?sitepanda=empresas&pais=63&idoma=en-us&track=31135" title="Virus and Spyware info" onmouseover="window.status='Virus and Spyware info';return true;" onmouseout="window.status=' ';return true;"><img height="18" src="/Templates/pandasecurity_corporate/02security_info_0_emp.gif" width="90" border="0" alt="virus info" /></a><a href="http://www.pandasoftware.com/partners/?sitepanda=empresas&pais=63&idoma=en-us&track=31135" title="Become a Panda Business Partner" onmouseover="window.status='Become a Panda Business Partner';return true;" onmouseout="window.status=' ';return true;"><img height="18" src="/Templates/pandasecurity_corporate/02partners_0_emp.gif" width="69" border="0" alt="partners" /></a><a href="http://www.pandasoftware.com/about/?sitepanda=empresas&pais=63&idoma=en-us&track=31135" title="15 Years of Panda" onmouseover="window.status='Learn more about Panda Software';return true;" onmouseout="window.status=' ';return true;"><img height="18" src="/Templates/pandasecurity_corporate/02about_panda_0_emp.gif" width="89" border="0" alt="about Panda" /></a> </div> <div id="bar_top"><img height="2" src="/Templates/pandasecurity_corporate/1.gif" alt="." /></div> <!-- ***************************** --> <!-- CONTROL DEFAULT CONSOLE --> <!-- ***************************** --> </td> </tr> <tr> <td><table cellspacing="0" cellpadding="0" width="100%" style="margin:0px;padding:0px"> <tbody> <tr> <td class="bodyTI" valign="top" width="180"><!-- ******************************** --> <!-- PLACEHOLDER FLASH2 PIE MENU IZDO --> <!-- ******************************** --> <div id="button"> <table id="UcProductosAnidados1_TablaProductos" style="WIDTH: 100%" border="0"> <tbody> <tr> <td><span style="background-image:url(/Templates/pandasecurity_corporate/tlhx.gif)"><img height="1" src="/Templates/pandasecurity_corporate/1.gif" width="175" alt="." /></span> <h6>Questions?</h6> <ul> <li><a class="email" href="mailto:marketing.usa@pandasoftware.com">mailto:marketing.usa @pandasoftware.com</a></li> <li><a class="email" href="#call">or call (818) 543-6901</a></li> </ul> <span style="background-image:url(/Templates/pandasecurity_corporate/tlhx.gif)"><img height="1" src="/Templates/pandasecurity_corporate/1.gif" width="175" alt="." /></span> </td> </tr> </tbody> </table> </div></td> <td style="WIDTH:1px; background-image:url(/Templates/pandasecurity_corporate/hlvx.gif)"><img height="1" src="/Templates/pandasecurity_corporate/1.gif" width="1" alt="." /> </td> <td class="texto" valign="top" width="100%"><!-- ///////////////////////////// --> <!-- INICIO CONTENIDO GENERICO --> <!-- ///////////////////////////// --> <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tbody> <tr> <td valign="top" width="100%" style="WIDTH:100%; background-image:url(/Templates/pandasecurity_corporate/hhjx.gif)"><img src="/Templates/pandasecurity_corporate/1.gif" alt="." /> </td> </tr> </tbody> </table> <!-- Begin Print --> <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tbody> <tr> <td width="22"><img height="1" src="/Templates/pandasecurity_corporate/1.gif" width="1" alt="." /> </td> <td class="nav"><!-- ******************************** --> <!-- CONTROL BREADCUMBS(RASTRO MIGAS) --> <!-- ******************************** --> </td> <td width="22"><img height="1" src="/Templates/pandasecurity_corporate/1.gif" width="1" alt="." /> </td> </tr> <tr> <td width="22"><img height="1" src="/Templates/pandasecurity_corporate/1.gif" width="1" alt="." /></td> <td style="background-image:url(/Templates/pandasecurity_corporate/l1.gif)" height="1"><img height="1" src="/Templates/pandasecurity_corporate/1.gif" width="1" alt="." /></td> <td width="22"><img height="1" src="/Templates/pandasecurity_corporate/1.gif" width="1" alt="." /></td> </tr> </tbody> </table> <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tbody> <tr> <td><!-- ********************************* CONTENT ******************************************************* --> <!-- TemplateBeginEditable name="CONTENT" --> <!-- TemplateEndEditable --> <!-- ******************************** END CONTENT *************************************************** --> <!-- **************************** CONTROL FOOT **************************** --> <script language="JavaScript" src="/Templates/pandasecurity_corporate/foot.js" type="text/javascript"></script> <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tbody> <tr> <td colspan="4" height="11"></td> </tr> <tr> <td width="22"></td> <td style="WIDTH:1px; background-image:url(/Templates/pandasecurity_corporate/hlvx.gif)" colspan="2" height="1"></td> <td width="22"></td> </tr> <tr> <td height="40"> </td> <td><a class="menuabajo" href="javascript:imprimir();" target="_self"><img height="10" src="/Templates/pandasecurity_corporate/print.gif" width="17" border="0" alt="print" />Print page.</a> <a class="menuabajo" href="javascript:EnviarCorreoEntorno();" target="_self"><img height="8" src="/Templates/pandasecurity_corporate/mail.gif" width="16" border="0" alt="mail" />Send page.</a> </td> <td align="right"><a class="logo" href="http://www.pandasoftware.com/about/legalnotice/default">© Panda Software 2006</a></td> <td> </td> </tr> </tbody> </table></td> <!-- *********************************************** END Foot ************************************** --> </tr> </tbody> </table></td> <!-- ****************** Right Col ******************************************* --> <td valign="top" style="WIDTH:1px; background-image:url(/Templates/pandasecurity_corporate/hlvx.gif)"><img height="1" src="/Templates/pandasecurity_corporate/1.gif" width="1" alt="." /></td> <td valign="top"><img height="1" src="/Templates/pandasecurity_corporate/1.gif" width="120" alt="." /></td> <!-- ****************** END Right Col *************************************** --> </tr> </tbody> </table></td> </tr> </tbody> </table> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-497888-3"; urchinTracker(); </script> </body> </html>
#4
Posted 01 December 2006 - 09:37 AM
hi, has anyone had a chance to look at this? i still need help...
#5
Posted 01 December 2006 - 05:55 PM
I'm not sure how these two items go together. They both have <html> and <body> tags in them. How do you combine the template?
Void
Also tagged with one or more of these keywords: asp.net
General Forums →
General Programming →
What ASP.NET Boilerplate is Not?Started by dasswadesh , 30 Jan 2018 ![]() |
|
![]()
|
||
General Forums →
General Programming →
ASP.NET Core 2.0 Razor vs Angular/React/etcStarted by Tchpowdog , 15 Sep 2017 ![]() |
|
![]()
|
||
Language Forums →
Other Languages →
ASP, ASP.NET and Coldfusion →
ASP.NET Popup ControlStarted by dasswadesh , 18 Feb 2017 ![]() |
|
![]()
|
||
Language Forums →
Other Languages →
ASP, ASP.NET and Coldfusion →
ASP.NET MVC ANNOTATIONStarted by Apprentice123 , 08 Jul 2016 ![]() |
|
![]()
|
||
General Forums →
General Programming →
How to provide access only to authenticated user to particular folder in asp.netStarted by AlexiaPamelov , 16 Jun 2016 ![]() |
|
![]()
|
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download