473,480 Members | 2,840 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Javascript Object Expected Error, Master Pages & DetailsView Confl

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
4 8919
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

53
5650
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
12
8663
by: Jim Hammond | last post by:
I am passing the whole object instead or parameters in my select and update methods. I can get the updated object if I set UpdateMethod, let ASP.NET autogenerate an update button, and then press...
1
5540
by: ThomasNexoe | last post by:
Hi there, I quite new to posting in this forum. I have a problem which I truly hope someone can help me out. I have a master/detail page - with a gridview displaying company names, and a...
3
4289
by: j-in-uk | last post by:
I have 3 pages Site.master, Album.aspx and ContinentsMenu.ascx. Continents is a usercontrol placed in Albums. In Album.aspx.cs I need to access a property from the Continents usercontrol and is...
8
2592
by: Frank | last post by:
Hi, I am working with VS.NET 2005 Ultimately, I wish to call a JavaScript function from a .js file
18
2354
by: Andrew Wan | last post by:
I have been developing web applications with ASP & Javascript for a long time. I have been using Visual Studio 2003.NET. While VS2003 is okay for intellisense of ASP & Javascript, it's still not...
3
1627
by: RayK50 | last post by:
I am developing a web site in vb.net 2.0 using a master page, with a custom Treeview control populated by a database query. Clicking on a certain Treeview menu item opens a page with a 3rd-party...
5
6201
by: gnewsgroup | last post by:
I know AjaxControlToolKit has a popup calendar control. It does not seem to have a year navigation option. In other words, if I wanna select a date in 1012, I will have to navigate to that year...
18
4739
by: Dan | last post by:
Hi, There is a detailsview which contains a textbox in editmode. How to get the id of the textbox in javascript? I tried this: <asp:DetailsView ID="DetailsView1" runat="server" >...
0
7055
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6760
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4501
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3013
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3004
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
572
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.