Lost Password?

Go Back   CodeCall Programming Forum > Web Development Forum > ASP, ASP.NET and Coldfusion

ASP, ASP.NET and Coldfusion Microsoft's Web Development Language (ASP/ASP.NET) and Coldfusion discussion

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-30-2006, 12:26 PM
streulich streulich is offline
Newbie
 
Join Date: Oct 2006
Posts: 8
Rep Power: 0
streulich is on a distinguished road
Default asp.net template help

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.pandasecurity.com/corpora.../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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 11-30-2006, 03:27 PM
Lop's Avatar   
Lop Lop is offline
Speaks fluent binary
 
Join Date: May 2006
Posts: 1,135
Rep Power: 15
Lop is on a distinguished road
Default

hmm, hard to tell. Can you post the code of this and your template?
__________________
Lop
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-30-2006, 04:38 PM
streulich streulich is offline
Newbie
 
Join Date: Oct 2006
Posts: 8
Rep Power: 0
streulich is on a distinguished road
Default

here is the page code:

Code:
<%@ 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&nbsp;</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>&nbsp;
                  <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">&nbsp;</td>
              <td style="width: 14px">              </td>
            <td><label>
                <div align="right" style="text-align: left">
                    &nbsp;<asp:Button ID="Button1" runat="server" Text="Submit" Font-Names="Arial" /></div>
              </label></td>
            <td style="width: 15px">&nbsp;</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:

Code:
<%@ 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&Atilde;&plusmn;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&amp;track=31135&amp;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&amp;pais=63&amp;idoma=en-us&amp;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&amp;pais=63&amp;idoma=en-us&amp;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&amp;idoma=en-us&amp;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&amp;pais=63&amp;idoma=en-us&amp;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&amp;pais=63&amp;idoma=en-us&amp;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&amp;pais=63&amp;idoma=en-us&amp;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&amp;pais=63&amp;idoma=en-us&amp;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">&nbsp;</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> &nbsp;<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">&copy; Panda Software 2006</a></td>
                                  <td>&nbsp;</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>

Last edited by Jordan; 11-30-2006 at 04:57 PM. Reason: Added Code Tags
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-01-2006, 11:37 AM
streulich streulich is offline
Newbie
 
Join Date: Oct 2006
Posts: 8
Rep Power: 0
streulich is on a distinguished road
Default

hi, has anyone had a chance to look at this? i still need help...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-01-2006, 07:55 PM
Void's Avatar   
Void Void is offline
Programming Expert
 
Join Date: Jun 2006
Posts: 410
Rep Power: 10
Void is on a distinguished road
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Two ASP.NET application in one virtual folder pepe123 C# Programming 0 07-12-2007 05:18 AM
Looking for ASP.NET, Coldfusion?? Greeta Grace ASP, ASP.NET and Coldfusion 0 06-20-2007 12:13 AM
Template Sites TVDinner Website Design 4 06-01-2007 10:32 PM


All times are GMT -5. The time now is 11:12 PM.

Contest Stats

dargueta ........ 93.00000
John ........ 87.50000
Xav ........ 50.00000
MeTh0Dz ........ 20.00000
gaylo565 ........ 18.00000
Johnnyboy ........ 3.00000

Contest Rules

Ads