• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2035
  • Last Modified:

Inserting a drop down list box into my HTML

I have an HTML table that I generate dynamcially and use with a repeater control to populate based on a dataset.  I have a header section and a body section.  In the header section I already have aspbuttons and asptextboxes.  These work fine.  Now I'm trying to add an aspdropdownlistbox and i can't get it to work.

Below is the html generated.  If I paste this into a .html file I see the words AllDays Monday tuesday wednesday... printed to screen but no drop down listbox.  When this same html is inserted into my asp .net page I don't see the list items on screen but I still don't see any sign of the dropdown list box.

Any idea what the problem might be?

<TAble>
<TR>
      <asp:textbox id='SupplierId' value:HM*SupplierId style='DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px' runat='server' Width='1px' Height='330px'></asp:textbox>
        <asp:textbox id='SPId' style='DISPLAY: none; value:HM*SPId; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px' runat='server' Width='1px' Height='330px'></asp:textbox>
        <asp:textbox id='VariationReason' style='DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px' runat='server' Width='1px' Height='330px'></asp:textbox>
        <asp:textbox id='VariationNote' style='DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px' runat='server' Width='1px' Height='330px'></asp:textbox>
        <INPUT class='btnLeftArrow' HM*AllowNavigation Id='btnMovePrevious' Name = 'btnMovePrevious' style='Z-INDEX: 115;' onclick='MoveLeft();' type='button' width=500px>
        <INPUT class='btnRightArrow' HM*AllowNavigation Id='btnMoveNext' Name='btnMoveNext' style='Z-INDEX: 115;' onclick='MoveRight();' type='button' width=500px>
        <INPUT class='btnRefresh' Id='btnRefresh' Name='btnRefresh' style='Z-INDEX: 115;' onclick='PostBack();' type='button' width=500px>
        <INPUT class='btnUpdate' HM*AllowUpdate Id='btnUpdate' Name='btnUpdate' style='Z-INDEX: 115;' onclick='UpdateVV();' type='button'; width=500px; LEFT: 4000px;>
</TR>
<TR>
      <B>Location: </B> HM*SupplierName  <B>Service:</B> HM*Service <B>Service Detail:</B> HM*ServiceDetail
</TR>
<TR Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'><BR>
      <TD>
      <asp:dropdownlist id="cbVariationReason" style="Z-INDEX: 107; LEFT: 158px; POSITION: absolute; TOP: 49px" runat="server" Height="20px" Width="165" CssClass="dataentry" tabIndex="2">
            <asp:ListItem Value="0">All Days</asp:ListItem>
            <asp:ListItem Value="1">Monday</asp:ListItem>
            <asp:ListItem Value="2">Tuesday</asp:ListItem>
            <asp:ListItem Value="3">Wednesday</asp:ListItem>
            <asp:ListItem Value="4">Thursday</asp:ListItem>
            <asp:ListItem Value="5">Friday</asp:ListItem>
            <asp:ListItem Value="6">Saturday</asp:ListItem>
            <asp:ListItem Value="7">Sunday</asp:ListItem>
      </asp:dropdownlist>
      </TD>

</TR>
<TR>
      <TD width = '130'></TD>
      <TD></TD>
      <TD width='0'></TD>
      <TD width='0'></TD>
      <TD width='0'Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>HM*Date1Value</TD>
      </TR>
<TR>
      <TD width = '130'>Client</TD>
      <TD></TD>
      <TD></TD>
      <TD></TD>
      <TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>HM*DayName1Value</TD>
</TR>


<TR>
      <TD width = '150' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>HM*ClientNameValue</TD>
      <TD Width = 90 Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>      Actual Units:   </TD>
      <TD width='0'></TD>
      <TD width='0'></TD>
      <TD width='0'><INPUT id='Unit1HM*SOSId' onBlur='UpdateXML(document.all.Unit1HM*SOSId,HM*SOSId,HM*zUnit);' type='text' value='HM*CurrentDay1Value' name='Unit1' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerifHM*DisableBackColor1' HM*DisableUnits1></TD>
</TR>

</TAble>
0
billy21
Asked:
billy21
  • 23
  • 16
1 Solution
 
smolamCommented:
Hi billy21,

Do you have any ASP.Net controls working on any other pages or is this your first ASP.Net Page?

If none are working you need to run aspnet_regiis -i to reinstall the .Net Framework for IIS.  This needs to be run from a command prompt.  But first you need to find where your .Net Framework is installed.  It is usually under C:\WINNT\Microsoft.NET\Framework\v1.1.4322 but it could be different on your PC.
0
 
billy21Author Commented:
Yes I have asp .net controlls working on a large number of pages.  I even have buttons and text boxes working in this page.  I just can't get the aspdropdownlistbox to function on this page.  Even the aspdropdownlistbox works on other pages.
0
 
smolamCommented:
Ok might have to ask some silly questions to get where you are, This is on an ASPX page right, you have the <% @Page Language=whateveryouareusing %>, and the dropdownlist is within the <FORM runat="server"></FORM> in the HTML??
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
billy21Author Commented:
Yes.  And this page works.

Of the dynamically generated html table, only the dropdown list box doesn't display.  This page has been in production for months.  I'm just trying to add a combo box.  Perhaps you could copy and paste the above html and see how it displays for you?
0
 
billy21Author Commented:
Note that all of the text boxes are hidden intentionally.  You won't see them but they are there.  My code references them.
0
 
smolamCommented:
I get the following error, so might have somethign to do with the apostrophes that you are using for the controls before the dropdown?  Something doesn't seem to be closed off!


Server Error in '/Vision.Net' Application.
--------------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The server tag is not well formed.

Source Error:


Line 14: <TAble>
Line 15: <TR>
Line 16:      <asp:textbox id='SupplierId' value:HMSupplierId style='DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px' runat='server' Width='1px' Height='330px'*></asp:textbox>
Line 17:         <asp:textbox id='SPId' style='DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px; value: HM*SPId' runat='server' Width='1px' Height='330px'></asp:textbox>
Line 18:         <asp:textbox id='VariationReason' style='DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px' runat='server' Width='1px' Height='330px'></asp:textbox>
 

Source File: c:\inetpub\wwwroot\vision.net\test.aspx    Line: 16


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
0
 
billy21Author Commented:
What happens when you put this html in a normal html file?
0
 
smolamCommented:
It looks ok, it is just that you have MalFormed HTML which is causing problems I noticed a few illegal characters in the wrong places when I clead up this row in your table :

<TR>
     <asp:textbox id="SupplierId" value="HMSupplierId" style="DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px" runat="server" Width="1px" Height="330px"></asp:textbox>
        <asp:textbox id="SPId" style="DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px; value: HM*SPId" runat="server" Width="1px" Height="330px"></asp:textbox>
        <asp:textbox id="VariationReason" style="DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px" runat="server" Width="1px" Height="330px"></asp:textbox>
        <asp:textbox id="VariationNote" style="DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px" runat="server" Width="1px" Height="330px"></asp:textbox>
        <INPUT class="btnLeftArrow" HMAllowNavigation Id="btnMovePrevious" Name = "btnMovePrevious" style="Z-INDEX: 115" onclick="MoveLeft();" type="button" width="500px">
        <INPUT class="btnRightArrow" HMAllowNavigation Id="btnMoveNext" Name="btnMoveNext" style="Z-INDEX: 115" onclick="MoveRight();" type="button" width="500px">
        <INPUT class="btnRefresh" Id="btnRefresh" Name="btnRefresh" style="Z-INDEX: 115" onclick="PostBack();" type="button" width=500px>
        <INPUT class="btnUpdate" HMAllowUpdate Id="btnUpdate" Name="btnUpdate" style="Z-INDEX: 115" onclick="UpdateVV();" type="button" width="500px">
</TR>

It all then started to show fine, DropDownList and all!
0
 
billy21Author Commented:
This portion of the html has always worked.  Thousands of people are using this page as we speek with all of the *s in place.

Were the *s all you removed?  Just to test things, I removed every * in the page.  The result is the same.  No dropdown list box.
0
 
smolamCommented:
Nope it wasn't just the stars I replaced all the 's with "s and then changed,  value:HMsupplierId to "HMSupplierId".   And then some of the *s.  And the part at the end of btnUpdate that says width=500px; LEFT: 4000px; should be included in the style attribute so it reads style="Z-INDEX:115;width=500px; LEFT: 4000px;"

Are you using Visual Studio to Edit your ASPX files?  Because it would tell you about these problems?
0
 
billy21Author Commented:
>Are you using Visual Studio to Edit your ASPX files?  Because it would tell you about these problems?

As I said, this is dynamically generated.  It is inserted into the page at runtime.

I copied the html you posted into my html page.  I still get the problem.  Did you make any changes to other sections?
0
 
billy21Author Commented:
This is what i'm currently working with.  I still can't see the dropdown list box.


<TAble>
<TR>
     <asp:textbox id="SupplierId" value="HMSupplierId" style="DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px" runat="server" Width="1px" Height="330px"></asp:textbox>
        <asp:textbox id="SPId" style="DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px; value: HM*SPId" runat="server" Width="1px" Height="330px"></asp:textbox>
        <asp:textbox id="VariationReason" style="DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px" runat="server" Width="1px" Height="330px"></asp:textbox>
        <asp:textbox id="VariationNote" style="DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px" runat="server" Width="1px" Height="330px"></asp:textbox>
        <INPUT class="btnLeftArrow" HMAllowNavigation Id="btnMovePrevious" Name = "btnMovePrevious" style="Z-INDEX: 115" onclick="MoveLeft();" type="button" width="500px">
        <INPUT class="btnRightArrow" HMAllowNavigation Id="btnMoveNext" Name="btnMoveNext" style="Z-INDEX: 115" onclick="MoveRight();" type="button" width="500px">
        <INPUT class="btnRefresh" Id="btnRefresh" Name="btnRefresh" style="Z-INDEX: 115" onclick="PostBack();" type="button" width=500px>
        <INPUT class="btnUpdate" HMAllowUpdate Id="btnUpdate" Name="btnUpdate" style="Z-INDEX: 115" onclick="UpdateVV();" type="button" width="500px">
</TR>
<TR>
      <B>Location: </B> HMSupplierName  <B>Service:</B> HMService <B>Service Detail:</B> HMServiceDetail
</TR>
<TR Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'><BR>
      <TD>
      <asp:dropdownlist id="cbVariationReason" style="Z-INDEX: 107; LEFT: 158px; POSITION: absolute; TOP: 49px" runat="server" Height="20px" Width="165" CssClass="dataentry" tabIndex="2">
            <asp:ListItem Value="0">All Days</asp:ListItem>
            <asp:ListItem Value="1">Monday</asp:ListItem>
            <asp:ListItem Value="2">Tuesday</asp:ListItem>
            <asp:ListItem Value="3">Wednesday</asp:ListItem>
            <asp:ListItem Value="4">Thursday</asp:ListItem>
            <asp:ListItem Value="5">Friday</asp:ListItem>
            <asp:ListItem Value="6">Saturday</asp:ListItem>
            <asp:ListItem Value="7">Sunday</asp:ListItem>
      </asp:dropdownlist>
      </TD>

</TR>
<TR>
      <TD width = '130'></TD>
      <TD></TD>
      <TD width='0'></TD>
      <TD width='0'></TD>
      <TD width='0'Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>HMDate1Value</TD>
      </TR>
<TR>
      <TD width = '130'>Client</TD>
      <TD></TD>
      <TD></TD>
      <TD></TD>
      <TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>HMDayName1Value</TD>
</TR>


<TR>
      <TD width = '150' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>HMClientNameValue</TD>
      <TD Width = 90 Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>      Actual Units:   </TD>
      <TD width='0'></TD>
      <TD width='0'></TD>
      <TD width='0'><INPUT id='Unit1HMSOSId' onBlur='UpdateXML(document.all.Unit1HMSOSId,HMSOSId,HMzUnit);' type='text' value='HMCurrentDay1Value' name='Unit1' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerifHMDisableBackColor1' HMDisableUnits1></TD>
</TR>

</TAble>
0
 
smolamCommented:
Well besides doing a find and replace with Visual Studio for all 's and replacing them with "s no I didn't do much:  This is the code I have that shows, see if this works for you:
<%@ Page Language="vb" AutoEventWireup="false"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head>
    <title>test</title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
    <meta name=vs_defaultClientScript content="JavaScript">
    <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
  </head>
  <body MS_POSITIONING="FlowLayout">

    <form id="Form1" method="post" runat="server">
<TAble>
<TR>
     <asp:textbox id="SupplierId" text="HM*SupplierId" style="DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px" runat="server" Width="1px" Height="330px"></asp:textbox>
        <asp:textbox id="SPId" style="DISPLAY: none; value:HM*SPId; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px" runat="server" Width="1px" Height="330px"></asp:textbox>
        <asp:textbox id="VariationReason" style="DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px" runat="server" Width="1px" Height="330px"></asp:textbox>
        <asp:textbox id="VariationNote" style="DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px" runat="server" Width="1px" Height="330px"></asp:textbox>
        <INPUT class="btnLeftArrow" Id="btnMovePrevious" Name = "btnMovePrevious" style="Z-INDEX: 115;width=500px" onclick="MoveLeft();" type="button" >
        <INPUT class="btnRightArrow" Id="btnMoveNext" Name="btnMoveNext" style="Z-INDEX: 115;width=500px" onclick="MoveRight();" type="button" >
        <INPUT class="btnRefresh" Id="btnRefresh" Name="btnRefresh" style="Z-INDEX: 115;width=500px" onclick="PostBack();" type="button" >
        <INPUT class="btnUpdate" Id="btnUpdate" Name="btnUpdate" style="Z-INDEX: 115;; width=500px; LEFT: 4000px;" onclick="UpdateVV();" type="button">
</TR>
<TR>
     <B>Location: </B> HM*SupplierName  <B>Service:</B> HM*Service <B>Service Detail:</B> HM*ServiceDetail
</TR>
<TR Style="Font-Size: x-small; FONT-FAMILY: MSSansSerif"><BR>
     <TD>
     <asp:dropdownlist id="cbVariationReason" style="Z-INDEX: 107; LEFT: 158px; POSITION: absolute; TOP: 49px" runat="server" Height="20px" Width="165" CssClass="dataentry" tabIndex="2">
          <asp:ListItem Value="0">All Days</asp:ListItem>
          <asp:ListItem Value="1">Monday</asp:ListItem>
          <asp:ListItem Value="2">Tuesday</asp:ListItem>
          <asp:ListItem Value="3">Wednesday</asp:ListItem>
          <asp:ListItem Value="4">Thursday</asp:ListItem>
          <asp:ListItem Value="5">Friday</asp:ListItem>
          <asp:ListItem Value="6">Saturday</asp:ListItem>
          <asp:ListItem Value="7">Sunday</asp:ListItem>
     </asp:dropdownlist>
     </TD>

</TR>
<TR>
     <TD width = "130"></TD>
     <TD></TD>
     <TD width="0"></TD>
     <TD width="0"></TD>
     <TD width="0"Style="Font-Size: x-small; FONT-FAMILY: MSSansSerif">HM*Date1Value</TD>
     </TR>
<TR>
     <TD width = "130">Client</TD>
     <TD></TD>
     <TD></TD>
     <TD></TD>
     <TD width="0" Style="Font-Size: x-small; FONT-FAMILY: MSSansSerif">HM*DayName1Value</TD>
</TR>


<TR>
     <TD width = "150" Style="Font-Size: x-small; FONT-FAMILY: MSSansSerif">HM*ClientNameValue</TD>
     <TD Width = 90 Style="Font-Size: x-small; FONT-FAMILY: MSSansSerif">     Actual Units:   </TD>
     <TD width="0"></TD>
     <TD width="0"></TD>
     <TD width="0"><INPUT id="Unit1HM*SOSId" onBlur="UpdateXML(document.all.Unit1HM*SOSId,HM*SOSId,HM*zUnit);" type="text" value="HM*CurrentDay1Value" name="Unit1" size="2" Style = "FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerifHM*DisableBackColor1" HM*DisableUnits1></TD>
</TR>

</TAble>
    </form>

  </body>
</html>
0
 
billy21Author Commented:
I copied out the table.   I still don't see the dropdown list box.  The only difference is that now the buttons stretch across the full width of the table and are aligned vertically instead of horizontally.

AFAIK single quotes are allowed.  I use them all the time.  Especially when generating HTML dynamically because there's an issue with using double quotes within a string in VB.  My *s exist within quotes and therefore are ok too (like I said, the page works).  The purpose of the *s is to keep those sections of strings unique.  I use a replace function so I can then name the controls at runtime.  However, this html also displays at design time and it displays correctly (excluding the dropdown list box).
0
 
smolamCommented:
Yeah I am not saying that they are completely wrong, just not good for certain browsers.  The other error that I posted you was because of value:HMSupplierId part of the ASPControl, my .Net Framework didn't like it.

It is not so much the *s that are causing problems but that fact that they are a part of something that isn't in a quote eg class='btnUpdate' HM*AllowUpdate Id='btnUpdate'  but even if they were in a quote the HM*AllowUpdate isn't a valid HTML attribute.

I can't really help you because I have told you what is wrong with the HTML part of what you posted and I think that is what is stopping your ASP.Net control from appearing.  But I am wrong in that because we have just proved that.

So on to other things, I noticed that the dropdownlist uses a "dataentry" cssclass, could you post the code for the style?  Or maybe try and remove this and see if the dropdownlist shows?

When you look at the page in the browse and you view the source can you see the control ie: is the a <SELECT id="cbVariationReason"> tag where it is meant to be?

There is something that is different on your Page that isn't on mine that is stopping your dropdownlist from showing!
0
 
billy21Author Commented:
>HM*AllowUpdate

Ah, IC.  these are sections where at runtime I either remove them or insert the world 'disabled'.  But the html still displays the controls at design time regardless of the error.

>So on to other things, I noticed that the dropdownlist uses a "dataentry" cssclass, could you post the code for the style?  Or maybe try and remove this and see if the dropdownlist shows?

I have no problem with removing the cssclass.  I tried removing it and I still don't see the dropdown list control.  I don't really understand what all of the properties mean and have attempted removing many of them to no avail.

ie.  This one doesn't look right.  But when I remove it the dropdownlist still doesn't display.  tabIndex="2"
0
 
billy21Author Commented:
Excluding the controls (which I obviously can't cut and paste) this is basically what displays when I run the html.
     
Location: HM*SupplierName Service: HM*Service Service Detail: HM*ServiceDetail  

 All Days Monday Tuesday Wednesday Thursday Friday Saturday Sunday  
    HM*Date1Value
Client    HM*DayName1Value
HM*ClientNameValue Actual Units:    
0
 
billy21Author Commented:
This part...

 All Days Monday Tuesday Wednesday Thursday Friday Saturday Sunday  

Should show a dropdown list box.
0
 
billy21Author Commented:
I just had a go at running the html you posted in an aspx file rather than an HTML file and copied the entire thing (not just the table) this time.  The result was exactly the same as executing it in an html file.
0
 
billy21Author Commented:
RE: supporting browsers.  We only support IE 5.5 and above.  We can get away with this because this is an intranet application and not a web site.
0
 
smolamCommented:
Could you post the output that you are getting when the page views, i.e. go to  View Source and post that output,  I want to see if it is actually sending the Dropdownlist to the browser at all!
0
 
billy21Author Commented:
<HTML>
<TAble>
<TR>
     <asp:textbox id="SupplierId" text="HM*SupplierId" style="DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px" runat="server" Width="1px" Height="330px"></asp:textbox>
        <asp:textbox id="SPId" style="DISPLAY: none; value:HM*SPId; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px" runat="server" Width="1px" Height="330px"></asp:textbox>
        <asp:textbox id="VariationReason" style="DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px" runat="server" Width="1px" Height="330px"></asp:textbox>
        <asp:textbox id="VariationNote" style="DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px" runat="server" Width="1px" Height="330px"></asp:textbox>
        <INPUT class="btnLeftArrow" Id="btnMovePrevious" Name = "btnMovePrevious" style="Z-INDEX: 115;width=500px" onclick="MoveLeft();" type="button" >
        <INPUT class="btnRightArrow" Id="btnMoveNext" Name="btnMoveNext" style="Z-INDEX: 115;width=500px" onclick="MoveRight();" type="button" >
        <INPUT class="btnRefresh" Id="btnRefresh" Name="btnRefresh" style="Z-INDEX: 115;width=500px" onclick="PostBack();" type="button" >
        <INPUT class="btnUpdate" Id="btnUpdate" Name="btnUpdate" style="Z-INDEX: 115;; width=500px; LEFT: 4000px;" onclick="UpdateVV();" type="button">
</TR>
<TR>
     <B>Location: </B> HM*SupplierName  <B>Service:</B> HM*Service <B>Service Detail:</B> HM*ServiceDetail
</TR>
<TR Style="Font-Size: x-small; FONT-FAMILY: MSSansSerif"><BR>
     <TD>
     <asp:dropdownlist id="cbVariationReason" style="Z-INDEX: 107; LEFT: 158px; POSITION: absolute; TOP: 49px" runat="server" Height="20px" Width="165" CssClass="dataentry" tabIndex="2">
          <asp:ListItem Value="0">All Days</asp:ListItem>
          <asp:ListItem Value="1">Monday</asp:ListItem>
          <asp:ListItem Value="2">Tuesday</asp:ListItem>
          <asp:ListItem Value="3">Wednesday</asp:ListItem>
          <asp:ListItem Value="4">Thursday</asp:ListItem>
          <asp:ListItem Value="5">Friday</asp:ListItem>
          <asp:ListItem Value="6">Saturday</asp:ListItem>
          <asp:ListItem Value="7">Sunday</asp:ListItem>
     </asp:dropdownlist>
     </TD>

</TR>
<TR>
     <TD width = "130"></TD>
     <TD></TD>
     <TD width="0"></TD>
     <TD width="0"></TD>
     <TD width="0"Style="Font-Size: x-small; FONT-FAMILY: MSSansSerif">HM*Date1Value</TD>
     </TR>
<TR>
     <TD width = "130">Client</TD>
     <TD></TD>
     <TD></TD>
     <TD></TD>
     <TD width="0" Style="Font-Size: x-small; FONT-FAMILY: MSSansSerif">HM*DayName1Value</TD>
</TR>


<TR>
     <TD width = "150" Style="Font-Size: x-small; FONT-FAMILY: MSSansSerif">HM*ClientNameValue</TD>
     <TD Width = 90 Style="Font-Size: x-small; FONT-FAMILY: MSSansSerif">     Actual Units:   </TD>
     <TD width="0"></TD>
     <TD width="0"></TD>
     <TD width="0"><INPUT id="Unit1HM*SOSId" onBlur="UpdateXML(document.all.Unit1HM*SOSId,HM*SOSId,HM*zUnit);" type="text" value="HM*CurrentDay1Value" name="Unit1" size="2" Style = "FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerifHM*DisableBackColor1" HM*DisableUnits1></TD>
</TR>

</TAble>
</HTML>
0
 
billy21Author Commented:
When I execute this in my application at runtime it comes out looking like this...


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
      <HEAD>
            <title>SOSVaryVerify</title>
            <meta http-equiv="msthemecompatible" content="no">
            <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
            <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
            <meta content="JavaScript" name="vs_defaultClientScript">
            <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
            <LINK href="../includes/Styles.css" type="text/css" rel="stylesheet">
            <script language="javascript">window.name='thisWindow';</script>
            <script language="JavaScript" src="../includes/utils.js"></script>
            <script language="JavaScript" src="../includes/SOS.js"></script>
            <script language="JavaScript" src="includes/SOSVaryVerify.js"></script>
            <XML id="SOSUpdateXML">
                  <Update>
                        <Header StartDate='22 Nov 2004' SupplierId='303' SPId='444' VariationReason='0' VariationNote=''><SOS Id='544' Unit='5' StartTime='00:00' Unit1='1.00' Unit2='1.00' Unit3='1.00' Unit4='1.00' Unit5='1.00' Unit6='1.00' Unit7='1.00' V1='0' V2='0' V3='0' V4='0' V5='0' V6='0' V7='0' TotalCost='60.00'/><SOS Id='545' Unit='5' StartTime='00:00' Unit1='3.00' Unit2='3.00' Unit3='3.00' Unit4='0.00' Unit5='0.00' Unit6='0.00' Unit7='0.00' V1='0' V2='0' V3='0' V4='0' V5='0' V6='0' V7='0' TotalCost='60.00'/></Header>
                  </Update>
            </XML>
      </HEAD>
      <body leftMargin="0" topMargin="0" MS_POSITIONING="GridLayout">
            <IFRAME ID=__hifSmartNav NAME=__hifSmartNav STYLE=display:none src="/aspnet_client/system_web/1_1_4322/SmartNav.htm"></IFRAME>
<form name="Form1" method="post" action="SOSVaryVerify.aspx?rv=1101220507032&amp;SupplierId=303&amp;StartDate=22%20Nov%202004&amp;SPID=444&amp;SOSID=0&amp;History=" id="Form1" target="thisWindow" __smartNavEnabled="true">
<input type="hidden" name="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" value="dDwxODkwNjA3Mjs7Pn8q5q6yzBsFjyGZD0Gv/S4rj6J9" />

<script language="javascript" type="text/javascript">
<!--
      function __doPostBack(eventTarget, eventArgument) {
            var theform;
            if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
                  theform = document.Form1;
            }
            else {
                  theform = document.forms["Form1"];
            }
            theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
            theform.__EVENTARGUMENT.value = eventArgument;
            theform.submit();
      }
// -->
</script>

<script language="JScript" type="text/JScript" src="/aspnet_client/system_web/1_1_4322/SmartNav.js"></script>


                  <table  width=100% id=8ffdffea918443a68e0e9c08df7bdc7c  style=' WIDTH: 760px; COLOR: black; HEIGHT: 110px' cellSpacing=0 cellPadding=0 width=760 border=1><asp:textbox id='SupplierId' value:HM*SupplierId style='DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px' runat='server' Width='1px' Height='330px'></asp:textbox><asp:textbox id='SPId' style='DISPLAY: none; value:444; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px' runat='server' Width='1px' Height='330px'></asp:textbox><asp:textbox id='VariationReason' style='DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px' runat='server' Width='1px' Height='330px'></asp:textbox><asp:textbox id='VariationNote' style='DISPLAY: none; Z-INDEX: 102; LEFT: 636px; POSITION: absolute; TOP: 9px' runat='server' Width='1px' Height='330px'></asp:textbox><INPUT class='btnLeftArrow'  Id='btnMovePrevious' Name = 'btnMovePrevious' style='Z-INDEX: 115;' onclick='MoveLeft();' type='button' width=500px><INPUT class='btnRightArrow'  Id='btnMoveNext' Name='btnMoveNext' style='Z-INDEX: 115;' onclick='MoveRight();' type='button' width=500px><INPUT class='btnRefresh' Id='btnRefresh' Name='btnRefresh' style='Z-INDEX: 115;' onclick='PostBack();' type='button' width=500px><INPUT class='btnUpdate'  Id='btnUpdate' Name='btnUpdate' style='Z-INDEX: 115;' onclick='UpdateVV();' type='button'; width=500px; LEFT: 4000px;><TR><B>Supplier:</B> RTest  <B>Service:</B> Day Care <B>Service Detail:</B> Day Care With Transport</TR><TR Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'><BR>Transactions for the Period 22 Nov 2004 to 28 Nov 2004</TR><TR><TD width = '130'></TD><TD></TD><TD width='0'></TD><TD width='0'></TD><TD width='0'Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>22nd</TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>23rd</TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>24th</TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>25th</TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>26th</TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>27th</TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>28th</TD><TD width='0'></TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'></TD><TD width='40'></TD><TD width='0'></TD><TD width='0'></TD><TD width='50'></TD></TR><TR><TD width = '130'></TD><TD></TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Start Time</TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Double Up?</TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Mon</TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Tue</TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Wed</TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Thu</TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Fri</TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Sat</TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Sun</TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Total</TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Cost</TD><TD width='40' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Unit</TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Hours</TD><TD width='0' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Visits</TD><TD width='90' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Service Detail</TD></TR><TR><asp:dropdownlist id='cbVariationReason' runat='server' Height='20px' Width='165' CssClass='dataentry' tabIndex='2'><asp:ListItem Value='0'>All Days</asp:ListItem><asp:ListItem Value='1'>Monday</asp:ListItem><asp:ListItem Value='2'>Tuesday</asp:ListItem><asp:ListItem Value='3'>Wednesday</asp:ListItem><asp:ListItem Value='4'>Thursday</asp:ListItem><asp:ListItem Value='5'>Friday</asp:ListItem><asp:ListItem Value='6'>Saturday</asp:ListItem><asp:ListItem Value='7'>Sunday</asp:ListItem></asp:dropdownlist></TR><tr><TR><TD width = '150' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Jane Joe</TD><TD Width = 0 Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Planned Units:</TD><TD width='0'><INPUT  id='HMStartTime' type='text' value='00:00' name='HMStartTime' size='4' Style = 'FONT-SIZE: xx-small; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMDoubleUp' type='text' value='No' name='HMDoubleUp' size='2' Style = 'FONT-SIZE: xx-small; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMDay1' type='text' value='1.00' name='HMDay1' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMDay2' type='text' value='1.00' name='HMDay2' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMDay3' type='text' value='1.00' name='HMDay3' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMDay4' type='text' value='1.00' name='HMDay4' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMDay5' type='text' value='1.00' name='HMDay5' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMDay6' type='text' value='1.00' name='HMDay6' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMDay7' type='text' value='1.00' name='HMDay7' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'>      <INPUT  id='HMTotal' type='text' value='7.00' name='HMTotal' size='4' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMCost' type='text' value='60.00' name='HMCost' size='4' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='130' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Per 1 Hour</TD><TD width='0'><INPUT  id='HMHours' type='text' value='7.00' name='HMHours' size='4' Style = 'FONT-SIZE: xx-small; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMVisits' type='text' value='7' name='HMVisits' size='4' Style = 'FONT-SIZE: xx-small; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='50' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Day Care With Transport</TD></TR><TR><TD width = '130'><INPUT Id='btnReasons' Name='btnReasons' value='Reasons' style='Z-INDEX: 115;' onclick='ShowReasons(544);' type='button'; width=500px; LEFT: 4000px;></TD><TD Width = 90 Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>      Actual Units:   </TD><TD width='0'></TD><TD width='0'></TD><TD width='0'><INPUT id='Unit1544' onBlur='UpdateXML(document.all.Unit1544,544,5);' type='text' value='1.00' name='Unit1' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif' ></TD><TD width='0'><INPUT  id='Unit2544' onBlur='UpdateXML(document.all.Unit2544,544,5);' type='text' value='1.00' name='Unit2' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif' ></TD><TD width='0'><INPUT  id='Unit3544' onBlur='UpdateXML(document.all.Unit3544,544,5);' type='text' value='1.00' name='Unit3' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif' ></TD><TD width='0'><INPUT  id='Unit4544' onBlur='UpdateXML(document.all.Unit4544,544,5);' type='text' value='1.00' name='Unit4' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif' ></TD><TD width='0'><INPUT  id='Unit5544' onBlur='UpdateXML(document.all.Unit5544,544,5);' type='text' value='1.00' name='Unit5' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif' ></TD><TD width='0'><INPUT  id='Unit6544' onBlur='UpdateXML(document.all.Unit6544,544,5);' type='text' value='1.00' name='Unit6' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif' ></TD><TD width='0'><INPUT  id='Unit7544' onBlur='UpdateXML(document.all.Unit7544,544,5);' type='text' value='1.00' name='Unit7' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif' ></TD><TD width='0'><INPUT  id='HMCurrentTotal' type='text' value='7.00' name='HMCurrentTotal' size='4' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMCurrentCost' type='text' value='60.00' name='HMCurrentCost' size='4' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'></TD><TD width='0'><INPUT  id='CurrentHours' type='text' value='7.00' name='CurrentHours' size='4' Style = 'FONT-SIZE: xx-small; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'>      <INPUT  id='CurrentVisits' type='text' value='7' name='CurrentVisits' size='4' Style = 'FONT-SIZE: xx-small; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'></TD></TR></tr><tr><TR><TD width = '150' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Jane Joe</TD><TD Width = 0 Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Planned Units:</TD><TD width='0'><INPUT  id='HMStartTime' type='text' value='00:00' name='HMStartTime' size='4' Style = 'FONT-SIZE: xx-small; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMDoubleUp' type='text' value='No' name='HMDoubleUp' size='2' Style = 'FONT-SIZE: xx-small; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMDay1' type='text' value='3.00' name='HMDay1' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMDay2' type='text' value='3.00' name='HMDay2' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMDay3' type='text' value='3.00' name='HMDay3' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMDay4' type='text' value='0.00' name='HMDay4' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMDay5' type='text' value='0.00' name='HMDay5' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMDay6' type='text' value='0.00' name='HMDay6' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMDay7' type='text' value='0.00' name='HMDay7' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'>      <INPUT  id='HMTotal' type='text' value='9.00' name='HMTotal' size='4' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMCost' type='text' value='60.00' name='HMCost' size='4' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='130' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Per 1 Hour</TD><TD width='0'><INPUT  id='HMHours' type='text' value='9.00' name='HMHours' size='4' Style = 'FONT-SIZE: xx-small; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMVisits' type='text' value='3' name='HMVisits' size='4' Style = 'FONT-SIZE: xx-small; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='50' Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>Day Care With Transport</TD></TR><TR><TD width = '130'><INPUT Id='btnReasons' Name='btnReasons' value='Reasons' style='Z-INDEX: 115;' onclick='ShowReasons(545);' type='button'; width=500px; LEFT: 4000px;></TD><TD Width = 90 Style='Font-Size: x-small; FONT-FAMILY: MSSansSerif'>      Actual Units:   </TD><TD width='0'></TD><TD width='0'></TD><TD width='0'><INPUT id='Unit1545' onBlur='UpdateXML(document.all.Unit1545,545,5);' type='text' value='3.00' name='Unit1' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif' ></TD><TD width='0'><INPUT  id='Unit2545' onBlur='UpdateXML(document.all.Unit2545,545,5);' type='text' value='3.00' name='Unit2' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif' ></TD><TD width='0'><INPUT  id='Unit3545' onBlur='UpdateXML(document.all.Unit3545,545,5);' type='text' value='3.00' name='Unit3' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif' ></TD><TD width='0'><INPUT  id='Unit4545' onBlur='UpdateXML(document.all.Unit4545,545,5);' type='text' value='0.00' name='Unit4' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif' ></TD><TD width='0'><INPUT  id='Unit5545' onBlur='UpdateXML(document.all.Unit5545,545,5);' type='text' value='0.00' name='Unit5' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif' ></TD><TD width='0'><INPUT  id='Unit6545' onBlur='UpdateXML(document.all.Unit6545,545,5);' type='text' value='0.00' name='Unit6' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif' ></TD><TD width='0'><INPUT  id='Unit7545' onBlur='UpdateXML(document.all.Unit7545,545,5);' type='text' value='0.00' name='Unit7' size='2' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif' ></TD><TD width='0'><INPUT  id='HMCurrentTotal' type='text' value='9.00' name='HMCurrentTotal' size='4' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'><INPUT  id='HMCurrentCost' type='text' value='60.00' name='HMCurrentCost' size='4' Style = 'FONT-SIZE: xx-small; TEXT-ALIGN: right; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'></TD><TD width='0'><INPUT  id='CurrentHours' type='text' value='9.00' name='CurrentHours' size='4' Style = 'FONT-SIZE: xx-small; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'>      <INPUT  id='CurrentVisits' type='text' value='3' name='CurrentVisits' size='4' Style = 'FONT-SIZE: xx-small; FONT-FAMILY: MsSansSerif; Background-Color: LemonChiffon' readonly></TD><TD width='0'></TD></TR></tr></table><input name="hidMaxDate" type="text" value="30 Nov 2004" onchange="__doPostBack('hidMaxDate','')" language="javascript" id="hidMaxDate" style="width:9px;DISPLAY: none; Z-INDEX: 112; LEFT: 100px; POSITION: absolute; TOP: 11px" /><input name="hidMinDate" type="text" value="16 Oct 2004" onchange="__doPostBack('hidMinDate','')" language="javascript" id="hidMinDate" style="width:9px;DISPLAY: none; Z-INDEX: 111; LEFT: 90px; POSITION: absolute; TOP: 11px" /><input name="hidCurrentChanged" type="text" id="hidCurrentChanged" style="width:9px;DISPLAY: none; Z-INDEX: 110; LEFT: 68px; POSITION: absolute; TOP: 11px" /><input name="hidHistory" type="text" id="hidHistory" style="width:9px;DISPLAY: none; Z-INDEX: 109; LEFT: 38px; POSITION: absolute; TOP: 11px" /><input name="hidNotes" type="text" onchange="__doPostBack('hidNotes','')" language="javascript" id="hidNotes" style="width:9px;DISPLAY: none; Z-INDEX: 107; LEFT: 18px; POSITION: absolute; TOP: 11px" /><input name="hidReason" type="text" onchange="__doPostBack('hidReason','')" language="javascript" id="hidReason" style="width:9px;DISPLAY: none; Z-INDEX: 106; LEFT: 8px; POSITION: absolute; TOP: 11px" /><input name="Textbox1" type="text" onchange="__doPostBack('Textbox1','')" language="javascript" id="Textbox1" style="width:9px;DISPLAY: none; Z-INDEX: 103; LEFT: 48px; POSITION: absolute; TOP: 11px" /><input name="hidUpdateXML" type="text" onchange="__doPostBack('hidUpdateXML','')" language="javascript" id="hidUpdateXML" style="width:9px;DISPLAY: none; Z-INDEX: 105; LEFT: 79px; POSITION: absolute; TOP: 11px" /><input name="hidStartDate" type="text" value="22 Nov 2004" onchange="__doPostBack('hidStartDate','')" language="javascript" id="hidStartDate" style="width:9px;DISPLAY: none; Z-INDEX: 102; LEFT: 58px; POSITION: absolute; TOP: 11px" /><input name="hidXML" type="text" id="hidXML" style="width:9px;DISPLAY: none; Z-INDEX: 101; LEFT: 28px; POSITION: absolute; TOP: 11px" /></form>
      </body>
</HTML>
0
 
smolamCommented:
I can see why the control isn't showing properly, I am surprised to be honest that the textboxes are even showing for you either.  The part:

<asp:dropdownlist id="cbVariationReason" style="Z-INDEX: 107; LEFT: 158px; POSITION: absolute; TOP: 49px" runat="server" Height="20px" Width="165" CssClass="dataentry" tabIndex="2">
          <asp:ListItem Value="0">All Days</asp:ListItem>
          <asp:ListItem Value="1">Monday</asp:ListItem>
          <asp:ListItem Value="2">Tuesday</asp:ListItem>
          <asp:ListItem Value="3">Wednesday</asp:ListItem>
          <asp:ListItem Value="4">Thursday</asp:ListItem>
          <asp:ListItem Value="5">Friday</asp:ListItem>
          <asp:ListItem Value="6">Saturday</asp:ListItem>
          <asp:ListItem Value="7">Sunday</asp:ListItem>
     </asp:dropdownlist>

Is a server side Control, there can only be run in an ASPX file on the server, what your code is doing is dynamically spitting out this code above which isn't being handled by the .Net Framework.  If you wanted this code to run, the file would have to be created and saved as an ASPX file first then viewed in the browser being served up by the server.  If you go View and Source and the dropdownlist is being processed by the framework this is what you would see instead of what is above!:

     <select name="cbVariationReason" id="cbVariationReason" tabindex="2" class="dataentry" style="height:20px;width:165px;Z-INDEX: 107; LEFT: 158px; POSITION: absolute; TOP: 49px">
      <option value="0">All Days</option>
      <option value="1">Monday</option>
      <option value="2">Tuesday</option>
      <option value="3">Wednesday</option>
      <option value="4">Thursday</option>
      <option value="5">Friday</option>
      <option value="6">Saturday</option>
      <option value="7">Sunday</option>

</select>
0
 
smolamCommented:
If you create a new file called test.aspx and post the code that you got from the View Source that you just posted, and then view that file in the browser you will see the aspdropdownlist!
0
 
billy21Author Commented:
>If you create a new file called test.aspx and post the code that you got from the View Source that you just posted, and then view that file in the browser you will see the aspdropdownlist!

No I don't.  I see 'All DaysMondayTuesdayWednesdayThursdayFridaySaturdaySunday' where the dropdown list should be.
0
 
smolamCommented:
As I said before the DropDownlist can only be processed SERVER side, you are trying to process it CLIENT side. If you want the page to show the dropdown you will need to get it to put
This:
<select name="cbVariationReason" id="cbVariationReason" tabindex="2" class="dataentry" style="height:20px;width:165px;Z-INDEX: 107; LEFT: 158px; POSITION: absolute; TOP: 49px">
     <option value="0">All Days</option>
     <option value="1">Monday</option>
     <option value="2">Tuesday</option>
     <option value="3">Wednesday</option>
     <option value="4">Thursday</option>
     <option value="5">Friday</option>
     <option value="6">Saturday</option>
     <option value="7">Sunday</option>

</select>

Where you have this:

<asp:dropdownlist id="cbVariationReason" style="Z-INDEX: 107; LEFT: 158px; POSITION: absolute; TOP: 49px" runat="server" Height="20px" Width="165" CssClass="dataentry" tabIndex="2">
          <asp:ListItem Value="0">All Days</asp:ListItem>
          <asp:ListItem Value="1">Monday</asp:ListItem>
          <asp:ListItem Value="2">Tuesday</asp:ListItem>
          <asp:ListItem Value="3">Wednesday</asp:ListItem>
          <asp:ListItem Value="4">Thursday</asp:ListItem>
          <asp:ListItem Value="5">Friday</asp:ListItem>
          <asp:ListItem Value="6">Saturday</asp:ListItem>
          <asp:ListItem Value="7">Sunday</asp:ListItem>
     </asp:dropdownlist>

I really can't get much clearer without having to show you exactly how ASP.Net processes a webpage.
0
 
billy21Author Commented:
Ok getting somewhere.  I now see the dropdown list box when I place this script into a temporary aspx and run it in internet explorer.  However, when I execute this in my application i get this error...

Internet Explorer has encountered a problem and needs to close.  We are sorry for the inconvenience.  If you were in the middle of something the information you were working on might be lost.  Please tell microsoft about this problem...
0
 
smolamCommented:
Does it do that to you everytime that you open the temporary.aspx??
0
 
billy21Author Commented:
OK this just got weird.

I went view source and took the html generated by the application.  
I placed it in a temporary aspx file.
Ran the aspx file in my browser
Result: NOT DROPDOWN LIST BOX

Then I went to investigate.  Openned the temp.aspx file
Formatted the section from <Select to </Select> so it appeared on multiple lines (all of the dynamically generated html was on one line)
Ran it again in internet explorer
Result: IT WORKED!

WTF?????
0
 
billy21Author Commented:
>Does it do that to you everytime that you open the temporary.aspx??

I never got the error by openning the temp.aspx file.  I only go that error when running the application.  When I took that html out and placed it in the temp.aspx file it didn't display the dropdown list box until I formatted it into multiple lines.  I'm now attempting to do the same in the code that generates the html.
0
 
billy21Author Commented:
Right so... Altering my HTML generator so that it places this...

<select name="cbVariationReason" id="cbVariationReason" tabindex="2" class="dataentry" style="height:20px;width:165px;Z-INDEX: 107; LEFT: 158px; POSITION: absolute; TOP: 49px">
     <option value="0">All Days</option>
     <option value="1">Monday</option>
     <option value="2">Tuesday</option>
     <option value="3">Wednesday</option>
     <option value="4">Thursday</option>
     <option value="5">Friday</option>
     <option value="6">Saturday</option>
     <option value="7">Sunday</option>
</select>

onto separate lines, works!

0
 
smolamCommented:
Yep it would, as I said before you are trying to use the Asp.Net DropDown list on a client machine, which doens't work, because all that the ASP.Net Control does is output the <SELECT> to the browser because that is what it understands!  You should also be changing the Asp:Textbox Tags to <INPUT type="hidden">.

As I said before make sure that you only add <asp: controls at Design time not at runtime, there are other ways of running them at Runtime!
0
 
billy21Author Commented:
OK but I can guarantee you that both the text boxes and buttons on this form work fine.  Our head developer was astonished that they work too however he had to concede with the code executing in front of his eyes and working.
0
 
smolamCommented:
hee hee, well glad to hear it is working,  and I would say now, if it ain't broke then don't fix it!  So would be better to just leave them they way they are!
0
 
billy21Author Commented:
Do you have any idea why this does not work unless formatted on multiple lines?
0
 
smolamCommented:
Not entirely sure, as long as you have opening and closing tags for all your HTML elements you should be able to put an entired HTML file on 1 line, so it is strange that it didn't work for you.  In HTML "white space" and line breaks aren't meant to affect the way HTML displays, but in my experience there is some strange things that happen with Microsoft.
0
 
billy21Author Commented:
Well thanks a lot for your help.  Thanks to you I have a much better understanding of how aspx pages work now.
0
 
smolamCommented:
No Problem, if you want to learn about ASPX then go to this site http://aspnet.4guysfromrolla.com/ these guys have some great articles and will explain a lot!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 23
  • 16
Tackle projects and never again get stuck behind a technical roadblock.
Join Now