By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,795 Members | 1,251 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,795 IT Pros & Developers. It's quick & easy.

Javascript Object Expected Error, Master Pages & DetailsView Confl

P: n/a
I'm guessing the problem I'm having has something to do with Master Pages or
DetailsView because the exact same code works fine on a page without a Master
Page and DetailsView controls.

The problem is, when the javascript fires on the txtDateRequiredOut TextBox
in IE, I get "Error on Page" in the status bar and the error says: "Object
Expected". Viewing the source of the page while running shows a link created
properly for the linked .js file and the insertion of the OnBlur, OnFocus &
OnKeyup events for the textbox, they just don't work right. Here is the code:

The aspx page:
<asp:DetailsView ID="CheckRequestDetailsView" runat="server"
AutoGenerateRows="False" BorderWidth="0px" DataKeyNames="CheckRequestID"
DataSourceID="CheckRequestSqlDataSource" DefaultMode="Insert"
GridLines="None" Width="98%">

<Fields><asp:BoundField DataField="CheckRequestID"
HeaderText="CheckRequestID" InsertVisible="False" ReadOnly="True"
SortExpression="CheckRequestID" Visible="False" />
<InsertItemTemplate><asp:TextBox ID="txtDateRequiredOut" runat="server"
Text='<%# Bind("DateRequiredOut", "{0:d}") %>'></asp:TextBox>
</InsertItemTemplate></asp:TemplateField>
The code-behind file has the following in the Page Load event:
Dim csname As String = "DateFormatScript"
Dim csurl As String = "DateFormatScript.js"
Dim cstype As Type = Me.GetType()

Dim cs As ClientScriptManager = Page.ClientScript

If (Not cs.IsClientScriptIncludeRegistered(cstype, csname)) Then
cs.RegisterClientScriptInclude(cstype, csname, csurl)
End If

Dim txtDateRequiredOut As TextBox
txtDateRequiredOut = CheckRequestDetailsView.FindControl(

"txtDateRequiredOut")
txtDateRequiredOut.Attributes.Add(

"onFocus", "javascript:vDateType='1'")
txtDateRequiredOut.Attributes.Add(

"onKeyUp", "DateFormat(this,this.value,event,false,'1')")
txtDateRequiredOut.Attributes.Add(

"onBlur", "DateFormat(this,this.value,event,true,'1')")
And finally, I have a javascript file, DateFormatScript.js in the root
directory of my project. I didn't include it because I didn't think it was
necessary. If you need it, let me know.

Thanks in advance for the help.

Greg

Apr 4 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Show the results of the View Source. And exactly "when" do you get the
error? When the page loads? When the user types into the text box.

And of course you had ONE method working, then you added the next one,
which broke, correct? So you know exactly what code is failing. Proper
programming technique. Start simple, get it working, and add code.

Apr 4 '06 #2

P: n/a
Make sure your textbox IDs are what you expect them to be. I'm having a
similar problem with master pages changing the ID of my controls and
breaking existing javascript code.
"Greg" <Gr**@discussions.microsoft.com> wrote in message
news:A5**********************************@microsof t.com...
I'm guessing the problem I'm having has something to do with Master Pages
or
DetailsView because the exact same code works fine on a page without a
Master
Page and DetailsView controls.

The problem is, when the javascript fires on the txtDateRequiredOut
TextBox
in IE, I get "Error on Page" in the status bar and the error says: "Object
Expected". Viewing the source of the page while running shows a link
created
properly for the linked .js file and the insertion of the OnBlur, OnFocus
&
OnKeyup events for the textbox, they just don't work right. Here is the
code:

The aspx page:
<asp:DetailsView ID="CheckRequestDetailsView" runat="server"
AutoGenerateRows="False" BorderWidth="0px" DataKeyNames="CheckRequestID"
DataSourceID="CheckRequestSqlDataSource" DefaultMode="Insert"
GridLines="None" Width="98%">

<Fields><asp:BoundField DataField="CheckRequestID"
HeaderText="CheckRequestID" InsertVisible="False" ReadOnly="True"
SortExpression="CheckRequestID" Visible="False" />
<InsertItemTemplate><asp:TextBox ID="txtDateRequiredOut" runat="server"
Text='<%# Bind("DateRequiredOut", "{0:d}") %>'></asp:TextBox>
</InsertItemTemplate></asp:TemplateField>
The code-behind file has the following in the Page Load event:
Dim csname As String = "DateFormatScript"
Dim csurl As String = "DateFormatScript.js"
Dim cstype As Type = Me.GetType()

Dim cs As ClientScriptManager = Page.ClientScript

If (Not cs.IsClientScriptIncludeRegistered(cstype, csname)) Then
cs.RegisterClientScriptInclude(cstype, csname, csurl)
End If

Dim txtDateRequiredOut As TextBox
txtDateRequiredOut = CheckRequestDetailsView.FindControl(

"txtDateRequiredOut")
txtDateRequiredOut.Attributes.Add(

"onFocus", "javascript:vDateType='1'")
txtDateRequiredOut.Attributes.Add(

"onKeyUp", "DateFormat(this,this.value,event,false,'1')")
txtDateRequiredOut.Attributes.Add(

"onBlur", "DateFormat(this,this.value,event,true,'1')")
And finally, I have a javascript file, DateFormatScript.js in the root
directory of my project. I didn't include it because I didn't think it
was
necessary. If you need it, let me know.

Thanks in advance for the help.

Greg

Apr 4 '06 #3

P: n/a
The error happens when the I try to type in the textbox.

I had all three methods working when it wasn't in the MasterPage/DetailsView
scenario, and I also tried just one method in the MasterPage/DetailsView
scenario with the same results.

Thanks for your help!

Here is the View>Source (minus ViewState and some of the navigation because
it was too big to post):

<!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><title>
Officenet > Forms > Check Request
</title><link href="../Styles.css" rel="stylesheet" type="text/css" </head>
<body>
<form name="aspnetForm" method="post" action="CheckRequest.aspx"
id="aspnetForm">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />

</div>

<script type="text/javascript">
<!--
var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
// -->
</script>

<script
src="/Officenet/WebResource.axd?d=Hii6KcRqaH4FJEpGZ3b5iQ2&t=632696 502311643750" type="text/javascript"></script>

<script src="DateFormatScript.js" type="text/javascript"></script>
<script
src="/Officenet/WebResource.axd?d=zHuX_qqlePfGiVfgPh8jHg2&t=632696 502311643750" type="text/javascript"></script>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td class="Header" colspan="2" valign="top" >
<table border="0" cellpadding="0" cellspacing="0"
style="width: 100%;">
<tr>
<td colspan="2" class="Header"><img
src="../Images/gradient_bar_lt.jpg" alt="Witte Travel & Tours" /></td>
</tr>
<tr class="HeaderRow2">
<td style="border-bottom: 1px solid #ebebeb;">
<span id="ctl00_lblDateNow">Tuesday, April 04, 2006</span>
</td>
<td align="right" class="HeaderRow2ColRt"
style="border-bottom: 1px solid #ebebeb;">

Welcome, <span id="ctl00_LoginView1_LoginName2"
style="font-weight:normal;">Greg</span> | <a
id="ctl00_LoginView1_LoginStatus1"
href="javascript:__doPostBack('ctl00$LoginView1$Lo ginStatus1$ctl00','')"
style="color:#4D99E4;">Logout</a>

</td>
</tr>
</table>
</td>

</tr>
<tr>
<td class="LeftCol" valign="top">
<a href="#ctl00_officenetMenu_SkipLink"><img alt="Skip
Navigation Links"
src="/Officenet/WebResource.axd?d=FqHPq9bD1cy7QfTqxhksOw2&t=632696 502311643750"
width="0" height="0" style="border-width:0px;" /></a><table
id="ctl00_officenetMenu" class="NavMenu ctl00_officenetMenu_5
ctl00_officenetMenu_2" cellpadding="0" cellspacing="0" border="0">
<tr onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)"
onkeyup="Menu_Key(this)" id="ctl00_officenetMenun0">
<td><table class="StaticMenuItem ctl00_officenetMenu_4" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;width:100%;"><a
class="ctl00_officenetMenu_1 StaticMenuItem ctl00_officenetMenu_3"
href="/Officenet/default.aspx" style="border-style:none;font-size:1em;">
HOME
</a></td>
</tr>
</table></td>
</tr><tr onmouseover="Menu_HoverStatic(this)"
onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)"
id="ctl00_officenetMenun1">
<td><table class="StaticMenuItem ctl00_officenetMenu_4" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;width:100%;"><a
class="ctl00_officenetMenu_1 StaticMenuItem ctl00_officenetMenu_3" href="#"
style="border-style:none;font-size:1em;cursor:text;">
Forms
</a></td><td style="width:0;"><img
src="/Officenet/WebResource.axd?d=PdHRAcXLWFHudZUW2_mb4qSYCBt06jzQ iVT9PCEBhvU1&t=632696502311643750"
alt="Expand Forms" style="border-style:none;vertical-align:middle;" /></td>
</tr>
</table></td>
</tr><tr onmouseover="Menu_HoverStatic(this)"
onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)"
id="ctl00_officenetMenun2">
<td><table class="StaticMenuItem ctl00_officenetMenu_4" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;width:100%;"><a
class="ctl00_officenetMenu_1 StaticMenuItem ctl00_officenetMenu_3" href="#"
style="border-style:none;font-size:1em;cursor:text;">
Articles
</a></td><td style="width:0;"><img
src="/Officenet/WebResource.axd?d=PdHRAcXLWFHudZUW2_mb4qSYCBt06jzQ iVT9PCEBhvU1&t=632696502311643750"
alt="Expand Articles" style="border-style:none;vertical-align:middle;" /></td>
</tr>
</table></td>
</tr><tr onmouseover="Menu_HoverStatic(this)"
onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)"
id="ctl00_officenetMenun3">
<td><table class="StaticMenuItem ctl00_officenetMenu_4" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;width:100%;"><a
class="ctl00_officenetMenu_1 StaticMenuItem ctl00_officenetMenu_3"
href="/Officenet/Handbook/default.aspx"
style="border-style:none;font-size:1em;">
Employee Handbook
</a></td>
</tr>
</table></td>
</tr><tr onmouseover="Menu_HoverStatic(this)"
onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)"
id="ctl00_officenetMenun4">
<td><table class="StaticMenuItem ctl00_officenetMenu_4" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;width:100%;"><a
class="ctl00_officenetMenu_1 StaticMenuItem ctl00_officenetMenu_3" href="#"
style="border-style:none;font-size:1em;cursor:text;">
My Account
</a></td><td style="width:0;"><img
src="/Officenet/WebResource.axd?d=PdHRAcXLWFHudZUW2_mb4qSYCBt06jzQ iVT9PCEBhvU1&t=632696502311643750"
alt="Expand My Account" style="border-style:none;vertical-align:middle;"
/></td>
</tr>
</table></td>
</tr><tr onmouseover="Menu_HoverStatic(this)"
onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)"
id="ctl00_officenetMenun5">
<td><table class="StaticMenuItem ctl00_officenetMenu_4" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;width:100%;"><a
class="ctl00_officenetMenu_1 StaticMenuItem ctl00_officenetMenu_3" href="#"
style="border-style:none;font-size:1em;cursor:text;">
Managers
</a></td><td style="width:0;"><img
src="/Officenet/WebResource.axd?d=PdHRAcXLWFHudZUW2_mb4qSYCBt06jzQ iVT9PCEBhvU1&t=632696502311643750"
alt="Expand Managers" style="border-style:none;vertical-align:middle;" /></td>
</tr>
</table></td>
</tr><tr onmouseover="Menu_HoverStatic(this)"
onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)"
id="ctl00_officenetMenun6">
<td><table class="StaticMenuItem ctl00_officenetMenu_4" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;width:100%;"><a
class="ctl00_officenetMenu_1 StaticMenuItem ctl00_officenetMenu_3" href="#"
style="border-style:none;font-size:1em;cursor:text;">
Publish
</a></td><td style="width:0;"><img
src="/Officenet/WebResource.axd?d=PdHRAcXLWFHudZUW2_mb4qSYCBt06jzQ iVT9PCEBhvU1&t=632696502311643750"
alt="Expand Publish" style="border-style:none;vertical-align:middle;" /></td>
</tr>
</table></td>
</tr><tr onmouseover="Menu_HoverStatic(this)"
onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)"
id="ctl00_officenetMenun7">
<td><table class="StaticMenuItem ctl00_officenetMenu_4" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;width:100%;"><a
class="ctl00_officenetMenu_1 StaticMenuItem ctl00_officenetMenu_3" href="#"
style="border-style:none;font-size:1em;cursor:text;">
Administration
</a></td><td style="width:0;"><img
src="/Officenet/WebResource.axd?d=PdHRAcXLWFHudZUW2_mb4qSYCBt06jzQ iVT9PCEBhvU1&t=632696502311643750"
alt="Expand Administration" style="border-style:none;vertical-align:middle;"
/></td>
</tr>
</table></td>
</tr><tr onmouseover="Menu_HoverStatic(this)"
onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)"
id="ctl00_officenetMenun8">
<td><table class="StaticMenuItem ctl00_officenetMenu_4" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;width:100%;"><a
class="ctl00_officenetMenu_1 StaticMenuItem ctl00_officenetMenu_3" href="#"
style="border-style:none;font-size:1em;cursor:text;">
Accounting
</a></td><td style="width:0;"><img
src="/Officenet/WebResource.axd?d=PdHRAcXLWFHudZUW2_mb4qSYCBt06jzQ iVT9PCEBhvU1&t=632696502311643750"
alt="Expand Accounting" style="border-style:none;vertical-align:middle;"
/></td>
</tr>
</table></td>
</tr>
</table><div id="ctl00_officenetMenun1Items" class="ctl00_officenetMenu_0
ctl00_officenetMenu_8">
<table border="0" cellpadding="0" cellspacing="0">
<tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)"
onkeyup="Menu_Key(this)" id="ctl00_officenetMenun9">
<td><table class="DynamicMenuItem ctl00_officenetMenu_7" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;width:100%;"><a
class="ctl00_officenetMenu_1 DynamicMenuItem ctl00_officenetMenu_6" href="#"
style="border-style:none;font-size:1em;cursor:text;">
Accounting
</a></td><td style="width:0;"><img
src="/Officenet/WebResource.axd?d=PdHRAcXLWFHudZUW2_mb4qSYCBt06jzQ iVT9PCEBhvU1&t=632696502311643750"
alt="Expand Accounting" style="border-style:none;vertical-align:middle;"
/></td>
</tr>
</table></td>
</tr><tr onmouseover="Menu_HoverDynamic(this)"
onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)"
id="ctl00_officenetMenun10">
<td><table class="DynamicMenuItem ctl00_officenetMenu_7" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;width:100%;"><a
class="ctl00_officenetMenu_1 DynamicMenuItem ctl00_officenetMenu_6" href="#"
style="border-style:none;font-size:1em;cursor:text;">
FAM
</a></td><td style="width:0;"><img
src="/Officenet/WebResource.axd?d=PdHRAcXLWFHudZUW2_mb4qSYCBt06jzQ iVT9PCEBhvU1&t=632696502311643750"
alt="Expand FAM" style="border-style:none;vertical-align:middle;" /></td>
</tr>
</table></td>
</tr><tr onmouseover="Menu_HoverDynamic(this)"
onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)"
id="ctl00_officenetMenun11">
<td><table class="DynamicMenuItem ctl00_officenetMenu_7" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;width:100%;"><a
class="ctl00_officenetMenu_1 DynamicMenuItem ctl00_officenetMenu_6" href="#"
style="border-style:none;font-size:1em;cursor:text;">
Education/Training
</a></td><td style="width:0;"><img
src="/Officenet/WebResource.axd?d=PdHRAcXLWFHudZUW2_mb4qSYCBt06jzQ iVT9PCEBhvU1&t=632696502311643750"
alt="Expand Education/Training"
style="border-style:none;vertical-align:middle;" /></td>
</tr>
</table></td>
</tr><tr onmouseover="Menu_HoverDynamic(this)"
onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)"
id="ctl00_officenetMenun12">
<td><table class="DynamicMenuItem ctl00_officenetMenu_7" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;width:100%;"><a
class="ctl00_officenetMenu_1 DynamicMenuItem ctl00_officenetMenu_6" href="#"
style="border-style:none;font-size:1em;cursor:text;">
Miscellaneous
</a></td><td style="width:0;"><img
src="/Officenet/WebResource.axd?d=PdHRAcXLWFHudZUW2_mb4qSYCBt06jzQ iVT9PCEBhvU1&t=632696502311643750"
alt="Expand Miscellaneous" style="border-style:none;vertical-align:middle;"
/></td>
</tr>
</table></td>
</tr>
</table><div class="DynamicMenuItem ctl00_officenetMenu_7
ctl00_officenetMenu_0" id="ctl00_officenetMenun1ItemsUp"
onmouseover="PopOut_Up(this)" onmouseout="PopOut_Stop(this)"
style="text-align:center;">
<img
src="/Officenet/WebResource.axd?d=8trvEXofRx_qk30QLsU6wX0aoaxWrvHl ltMTUCUfExI1&t=632696502311643750" alt="Scroll up" />
</div><div class="DynamicMenuItem ctl00_officenetMenu_7
ctl00_officenetMenu_0" id="ctl00_officenetMenun1ItemsDn"
onmouseover="PopOut_Down(this)" onmouseout="PopOut_Stop(this)"
style="text-align:center;">
<img
src="/Officenet/WebResource.axd?d=imAYi8ddq9AY4dcLGB1azLUt2lWiqbe8 6y-JrLbSz1E1&t=632696502311643750" alt="Scroll down" />
</div>
</div><a id="ctl00_officenetMenu_SkipLink"></a>
<br /><br />

<a id="ctl00_hyperlinkSBC"
href="http://officenet.wittetravel.com/sbc/"><img src="../images/sbc.gif"
style="border-width:0px;" /></a><br />
<br />
<a id="ctl00_hyperlinkFAMnews"
href="http://www.famnews.com/"><img src="../images/fam_news.gif"
style="border-width:0px;" /></a><br />
<div style="font-size: 10px; color: gray; line-height:
12px; font-family: Arial, Helvetica, sans-serif; text-align: center;">
Subscriber: pa**@wittetravel.com<br />
Password: witte</div><br /><br />
<br />
</td>
<td valign="top" class="Content">

<div class="PageTitle">Check Request</div>
<div class="ContentBody">
<div>
<table cellspacing="0" border="0"
id="ctl00_mainContentPlaceHolder_CheckRequestDetai lsView"
style="border-width:0px;width:98%;border-collapse:collapse;">
<tr>
<td style="width:150px;">UserID</td><td>
<input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$txtUserID"
type="text" value="6830e736-b7ed-4a7d-90bb-58c622003dc6"
id="ctl00_mainContentPlaceHolder_CheckRequestDetai lsView_txtUserID" />
</td>
</tr><tr>
<td style="width:150px;">Date Required Out</td><td>
<input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$txtDateRequiredOut"
type="text"
id="ctl00_mainContentPlaceHolder_CheckRequestDetai lsView_txtDateRequiredOut"
onFocus="javascript:vDateType='1'"
onKeyUp="DateFormat(this,this.value,event,false,'1 ')"
onBlur="DateFormat(this,this.value,event,true,'1') " />
</td>
</tr><tr>
<td style="width:150px;">Payable To</td><td><input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$ctl02" type="text"
title="Payable To" class="FormControlWidth" /></td>
</tr><tr>
<td style="width:150px;">Attention</td><td><input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$ctl03" type="text"
title="Attention" class="FormControlWidth" /></td>
</tr><tr>
<td style="width:150px;">Street Address</td><td><input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$ctl04" type="text"
title="Street Address" class="FormControlWidth" /></td>
</tr><tr>
<td style="width:150px;">Address Line 2</td><td><input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$ctl05" type="text"
title="Address Line 2" class="FormControlWidth" /></td>
</tr><tr>
<td style="width:150px;">City</td><td><input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$ctl06" type="text"
title="City" /></td>
</tr><tr>
<td style="width:150px;">State</td><td><input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$ctl07" type="text"
title="State" style="width:30px;" /></td>
</tr><tr>
<td valign="top" style="width:150px;">Zip Code</td><td><input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$ctl08" type="text"
title="Zip Code" class="FormRowBotMargin" style="width:60px;" /></td>
</tr><tr>
<td style="width:150px;">Gross Amount</td><td><input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$ctl09" type="text"
title="Gross Amount" /></td>
</tr><tr>
<td style="width:150px;">Deposit</td><td><input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$ctl10" type="text"
title="Deposit" /></td>
</tr><tr>
<td style="width:150px;">Commission</td><td><input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$ctl11" type="text"
title="Commission" /></td>
</tr><tr>
<td style="width:150px;">Processing Fee</td><td><input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$ctl12" type="text"
title="Processing Fee" /></td>
</tr><tr>
<td valign="top" style="width:150px;">Check Amount</td><td>
<input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$txtCheckAmount"
type="text"
id="ctl00_mainContentPlaceHolder_CheckRequestDetai lsView_txtCheckAmount"
class="FormRowBotMargin" />

</td>
</tr><tr>
<td style="width:150px;">Provider/Vendor #</td><td><input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$ctl13" type="text"
title="Provider/Vendor #" /></td>
</tr><tr>
<td style="width:150px;">Witte Invoice #</td><td><input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$ctl14" type="text"
title="Witte Invoice #" /></td>
</tr><tr>
<td style="width:150px;">Client Name</td><td><input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$ctl15" type="text"
title="Client Name" /></td>
</tr><tr>
<td style="width:150px;">Service Date</td><td><input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$ctl16" type="text"
title="Service Date" /></td>
</tr><tr>
<td style="width:150px;">Confirmation Number</td><td><input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$ctl17" type="text"
title="Confirmation Number" /></td>
</tr><tr>
<td valign="top" style="width:150px;">Payment Type</td><td>
<select
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$ddlPaymentType"
id="ctl00_mainContentPlaceHolder_CheckRequestDetai lsView_ddlPaymentType"
class="FormRowBotMargin">
<option value="">(Select Payment Type)</option>
<option value="1">Deposit</option>
<option value="2">Final Payment</option>
<option value="3">N/A</option>

</select>
</td>
</tr><tr>
<td style="width:150px;">Check Description</td><td><input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$ctl18" type="text"
title="Check Description" class="FormControlWidth" /></td>
</tr><tr>
<td style="width:150px;">Budget Codes</td><td>
<textarea
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$TextBox1" rows="2"
cols="20" id="ctl00_mainContentPlaceHolder_CheckRequestDetai lsView_TextBox1"
style="font-family:Arial;height:50px;"></textarea>
</td>
</tr><tr>
<td valign="middle" style="width:150px;">Departments Charged (ctrl-click
for multiple selection)</td><td>
<select size="4"
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$DepartmentListBox"
multiple="multiple"
id="ctl00_mainContentPlaceHolder_CheckRequestDetai lsView_DepartmentListBox"
style="width:200px;">
<option value="2">Corporate</option>
<option value="1">Group</option>
<option value="3">Vacation</option>

</select>
</td>
</tr><tr>
<td style="width:150px;">Additional Instructions</td><td>
<textarea
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$txtAdditionalInstructions"
rows="2" cols="20"
id="ctl00_mainContentPlaceHolder_CheckRequestDetai lsView_txtAdditionalInstructions"
class="FormControlWidth" style="font-family:Arial;height:60px;"></textarea>
</td>
</tr><tr>
<td valign="top" style="width:150px;">Return Check To</td><td><input
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$ctl19" type="text"
title="Return Check To" class="FormRowBotMargin" /></td>
</tr><tr>
<td colspan="2">
<input type="submit"
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$btnSubmitRequest"
value="Send Request"
id="ctl00_mainContentPlaceHolder_CheckRequestDetai lsView_btnSubmitRequest"
/> <input type="submit"
name="ctl00$mainContentPlaceHolder$CheckRequestDet ailsView$btnCancel"
value="Cancel" onclick="javascript:WebForm_DoPostBackWithOptions( new
WebForm_PostBackOptions("ctl00$mainContentPlaceHol der$CheckRequestDetailsView$btnCancel",
"", false, "", "../Default.aspx", false, false))"
id="ctl00_mainContentPlaceHolder_CheckRequestDetai lsView_btnCancel" />
</td>
</tr>
</table>
</div>

</div>


</td>
</tr>
<tr>
<td class="Footer" valign="top"></td>
<td class="FooterRight"></td>
</tr>
</table>
<div>

<input type="hidden" name="__VIEWSTATEENCRYPTED" id="__VIEWSTATEENCRYPTED"
value="" />
<input type="hidden" name="__PREVIOUSPAGE" id="__PREVIOUSPAGE"
value="suC1AnRQ1UJjYj06UuCWSj6jrgJMQJfvOUY5n1w0NG8 mD4jcGOHChuHw_P4wk0sZ0" />
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION"
value="TvUUQ2Q2vb317my8SIzyBA64ugNphL/O81YPGMa/DsQ2hQLOdwvs/uWaSaZDKH+8UjKGq8fIj1GyWv5yqVlsvHrJUE8QIEw1XBvj9kK PA/b+7o+H9u+xZ97LSJzkmmUC076jPaOD5RTO4/AXvwaoX07i8BcW6rwCA9Yf9E1P5KTCLsx3piNNo7ucdMP/swpHKB4mFrRoSGNg80nk0a1vzDJphNz9jGYslDAV0E5kUpSV1c 1QXvSRwMfbiTS89VMHiyEo4F4tuA2pb2QgRANgwBnSg+nSTXay Ujzpcb6szgI=" />
</div>

<script type="text/javascript">
<!--
var ctl00_officenetMenu_Data = new Object();
ctl00_officenetMenu_Data.disappearAfter = 500;
ctl00_officenetMenu_Data.horizontalOffset = 0;
ctl00_officenetMenu_Data.verticalOffset = 0;
ctl00_officenetMenu_Data.hoverClass = 'ctl00_officenetMenu_16
DynamicHoverStyle';
ctl00_officenetMenu_Data.hoverHyperLinkClass = 'ctl00_officenetMenu_15
DynamicHoverStyle';
ctl00_officenetMenu_Data.staticHoverClass = 'ctl00_officenetMenu_14
StaticHoverStyle';
ctl00_officenetMenu_Data.staticHoverHyperLinkClass = 'ctl00_officenetMenu_13
StaticHoverStyle';
// -->
</script>
</form>
</body>
</html>
Apr 4 '06 #4

P: n/a
That is way too much code. You had it working at one point, right? Then
when you continued to build the page, it broke? Where/when? Hopefully
you didn't code away for days, or copy a bunch of code, then decided to
test.

Create a simple aspx page with a single textbox, and attempt to
recreate.

Apr 5 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.