473,545 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
+ 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 txtDateRequired Out 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:DetailsVie w ID="CheckReques tDetailsView" runat="server"
AutoGenerateRow s="False" BorderWidth="0p x" DataKeyNames="C heckRequestID"
DataSourceID="C heckRequestSqlD ataSource" DefaultMode="In sert"
GridLines="None " Width="98%">

<Fields><asp:Bo undField DataField="Chec kRequestID"
HeaderText="Che ckRequestID" InsertVisible=" False" ReadOnly="True"
SortExpression= "CheckRequestID " Visible="False" />
<InsertItemTemp late><asp:TextB ox ID="txtDateRequ iredOut" runat="server"
Text='<%# Bind("DateRequi redOut", "{0:d}") %>'></asp:TextBox>
</InsertItemTempl ate></asp:TemplateFie ld>
The code-behind file has the following in the Page Load event:
Dim csname As String = "DateFormatScri pt"
Dim csurl As String = "DateFormatScri pt.js"
Dim cstype As Type = Me.GetType()

Dim cs As ClientScriptMan ager = Page.ClientScri pt

If (Not cs.IsClientScri ptIncludeRegist ered(cstype, csname)) Then
cs.RegisterClie ntScriptInclude (cstype, csname, csurl)
End If

Dim txtDateRequired Out As TextBox
txtDateRequired Out = CheckRequestDet ailsView.FindCo ntrol(

"txtDateRequire dOut")
txtDateRequired Out.Attributes. Add(

"onFocus", "javascript:vDa teType='1'")
txtDateRequired Out.Attributes. Add(

"onKeyUp", "DateFormat(thi s,this.value,ev ent,false,'1')" )
txtDateRequired Out.Attributes. Add(

"onBlur", "DateFormat(thi s,this.value,ev ent,true,'1')")
And finally, I have a javascript file, DateFormatScrip t.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 8925
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**@discussio ns.microsoft.co m> wrote in message
news:A5******** *************** ***********@mic rosoft.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 txtDateRequired Out
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:DetailsVie w ID="CheckReques tDetailsView" runat="server"
AutoGenerateRow s="False" BorderWidth="0p x" DataKeyNames="C heckRequestID"
DataSourceID="C heckRequestSqlD ataSource" DefaultMode="In sert"
GridLines="None " Width="98%">

<Fields><asp:Bo undField DataField="Chec kRequestID"
HeaderText="Che ckRequestID" InsertVisible=" False" ReadOnly="True"
SortExpression= "CheckRequestID " Visible="False" />
<InsertItemTemp late><asp:TextB ox ID="txtDateRequ iredOut" runat="server"
Text='<%# Bind("DateRequi redOut", "{0:d}") %>'></asp:TextBox>
</InsertItemTempl ate></asp:TemplateFie ld>
The code-behind file has the following in the Page Load event:
Dim csname As String = "DateFormatScri pt"
Dim csurl As String = "DateFormatScri pt.js"
Dim cstype As Type = Me.GetType()

Dim cs As ClientScriptMan ager = Page.ClientScri pt

If (Not cs.IsClientScri ptIncludeRegist ered(cstype, csname)) Then
cs.RegisterClie ntScriptInclude (cstype, csname, csurl)
End If

Dim txtDateRequired Out As TextBox
txtDateRequired Out = CheckRequestDet ailsView.FindCo ntrol(

"txtDateRequire dOut")
txtDateRequired Out.Attributes. Add(

"onFocus", "javascript:vDa teType='1'")
txtDateRequired Out.Attributes. Add(

"onKeyUp", "DateFormat(thi s,this.value,ev ent,false,'1')" )
txtDateRequired Out.Attributes. Add(

"onBlur", "DateFormat(thi s,this.value,ev ent,true,'1')")
And finally, I have a javascript file, DateFormatScrip t.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.dt d">

<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="aspnetFor m" method="post" action="CheckRe quest.aspx"
id="aspnetForm" >
<div>
<input type="hidden" name="__EVENTTA RGET" id="__EVENTTARG ET" value="" />
<input type="hidden" name="__EVENTAR GUMENT" id="__EVENTARGU MENT" value="" />

</div>

<script type="text/javascript">
<!--
var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.aspnet Form;
}
function __doPostBack(ev entTarget, eventArgument) {
if (!theForm.onsub mit || (theForm.onsubm it() != false)) {
theForm.__EVENT TARGET.value = eventTarget;
theForm.__EVENT ARGUMENT.value = eventArgument;
theForm.submit( );
}
}
// -->
</script>

<script
src="/Officenet/WebResource.axd ?d=Hii6KcRqaH4F JEpGZ3b5iQ2&t=6 326965023116437 50" type="text/javascript"></script>

<script src="DateFormat Script.js" type="text/javascript"></script>
<script
src="/Officenet/WebResource.axd ?d=zHuX_qqlePfG iVfgPh8jHg2&t=6 326965023116437 50" 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="HeaderRo w2">
<td style="border-bottom: 1px solid #ebebeb;">
<span id="ctl00_lblDa teNow">Tuesday, April 04, 2006</span>
</td>
<td align="right" class="HeaderRo w2ColRt"
style="border-bottom: 1px solid #ebebeb;">

Welcome, <span id="ctl00_Login View1_LoginName 2"
style="font-weight:normal;" >Greg</span> | <a
id="ctl00_Login View1_LoginStat us1"
href="javascrip t:__doPostBack( 'ctl00$LoginVie w1$LoginStatus1 $ctl00','')"
style="color:#4 D99E4;">Logout</a>

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

</tr>
<tr>
<td class="LeftCol" valign="top">
<a href="#ctl00_of ficenetMenu_Ski pLink"><img alt="Skip
Navigation Links"
src="/Officenet/WebResource.axd ?d=FqHPq9bD1cy7 QfTqxhksOw2&t=6 326965023116437 50"
width="0" height="0" style="border-width:0px;" /></a><table
id="ctl00_offic enetMenu" class="NavMenu ctl00_officenet Menu_5
ctl00_officenet Menu_2" cellpadding="0" cellspacing="0" border="0">
<tr onmouseover="Me nu_HoverStatic( this)" onmouseout="Men u_Unhover(this) "
onkeyup="Menu_K ey(this)" id="ctl00_offic enetMenun0">
<td><table class="StaticMe nuItem ctl00_officenet Menu_4" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;wi dth:100%;"><a
class="ctl00_of ficenetMenu_1 StaticMenuItem ctl00_officenet Menu_3"
href="/Officenet/default.aspx" style="border-style:none;font-size:1em;">
HOME
</a></td>
</tr>
</table></td>
</tr><tr onmouseover="Me nu_HoverStatic( this)"
onmouseout="Men u_Unhover(this) " onkeyup="Menu_K ey(this)"
id="ctl00_offic enetMenun1">
<td><table class="StaticMe nuItem ctl00_officenet Menu_4" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;wi dth:100%;"><a
class="ctl00_of ficenetMenu_1 StaticMenuItem ctl00_officenet Menu_3" href="#"
style="border-style:none;font-size:1em;cursor :text;">
Forms
</a></td><td style="width:0; "><img
src="/Officenet/WebResource.axd ?d=PdHRAcXLWFHu dZUW2_mb4qSYCBt 06jzQiVT9PCEBhv U1&t=6326965023 11643750"
alt="Expand Forms" style="border-style:none;vert ical-align:middle;" /></td>
</tr>
</table></td>
</tr><tr onmouseover="Me nu_HoverStatic( this)"
onmouseout="Men u_Unhover(this) " onkeyup="Menu_K ey(this)"
id="ctl00_offic enetMenun2">
<td><table class="StaticMe nuItem ctl00_officenet Menu_4" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;wi dth:100%;"><a
class="ctl00_of ficenetMenu_1 StaticMenuItem ctl00_officenet Menu_3" href="#"
style="border-style:none;font-size:1em;cursor :text;">
Articles
</a></td><td style="width:0; "><img
src="/Officenet/WebResource.axd ?d=PdHRAcXLWFHu dZUW2_mb4qSYCBt 06jzQiVT9PCEBhv U1&t=6326965023 11643750"
alt="Expand Articles" style="border-style:none;vert ical-align:middle;" /></td>
</tr>
</table></td>
</tr><tr onmouseover="Me nu_HoverStatic( this)"
onmouseout="Men u_Unhover(this) " onkeyup="Menu_K ey(this)"
id="ctl00_offic enetMenun3">
<td><table class="StaticMe nuItem ctl00_officenet Menu_4" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;wi dth:100%;"><a
class="ctl00_of ficenetMenu_1 StaticMenuItem ctl00_officenet Menu_3"
href="/Officenet/Handbook/default.aspx"
style="border-style:none;font-size:1em;">
Employee Handbook
</a></td>
</tr>
</table></td>
</tr><tr onmouseover="Me nu_HoverStatic( this)"
onmouseout="Men u_Unhover(this) " onkeyup="Menu_K ey(this)"
id="ctl00_offic enetMenun4">
<td><table class="StaticMe nuItem ctl00_officenet Menu_4" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;wi dth:100%;"><a
class="ctl00_of ficenetMenu_1 StaticMenuItem ctl00_officenet Menu_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=PdHRAcXLWFHu dZUW2_mb4qSYCBt 06jzQiVT9PCEBhv U1&t=6326965023 11643750"
alt="Expand My Account" style="border-style:none;vert ical-align:middle;"
/></td>
</tr>
</table></td>
</tr><tr onmouseover="Me nu_HoverStatic( this)"
onmouseout="Men u_Unhover(this) " onkeyup="Menu_K ey(this)"
id="ctl00_offic enetMenun5">
<td><table class="StaticMe nuItem ctl00_officenet Menu_4" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;wi dth:100%;"><a
class="ctl00_of ficenetMenu_1 StaticMenuItem ctl00_officenet Menu_3" href="#"
style="border-style:none;font-size:1em;cursor :text;">
Managers
</a></td><td style="width:0; "><img
src="/Officenet/WebResource.axd ?d=PdHRAcXLWFHu dZUW2_mb4qSYCBt 06jzQiVT9PCEBhv U1&t=6326965023 11643750"
alt="Expand Managers" style="border-style:none;vert ical-align:middle;" /></td>
</tr>
</table></td>
</tr><tr onmouseover="Me nu_HoverStatic( this)"
onmouseout="Men u_Unhover(this) " onkeyup="Menu_K ey(this)"
id="ctl00_offic enetMenun6">
<td><table class="StaticMe nuItem ctl00_officenet Menu_4" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;wi dth:100%;"><a
class="ctl00_of ficenetMenu_1 StaticMenuItem ctl00_officenet Menu_3" href="#"
style="border-style:none;font-size:1em;cursor :text;">
Publish
</a></td><td style="width:0; "><img
src="/Officenet/WebResource.axd ?d=PdHRAcXLWFHu dZUW2_mb4qSYCBt 06jzQiVT9PCEBhv U1&t=6326965023 11643750"
alt="Expand Publish" style="border-style:none;vert ical-align:middle;" /></td>
</tr>
</table></td>
</tr><tr onmouseover="Me nu_HoverStatic( this)"
onmouseout="Men u_Unhover(this) " onkeyup="Menu_K ey(this)"
id="ctl00_offic enetMenun7">
<td><table class="StaticMe nuItem ctl00_officenet Menu_4" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;wi dth:100%;"><a
class="ctl00_of ficenetMenu_1 StaticMenuItem ctl00_officenet Menu_3" href="#"
style="border-style:none;font-size:1em;cursor :text;">
Administration
</a></td><td style="width:0; "><img
src="/Officenet/WebResource.axd ?d=PdHRAcXLWFHu dZUW2_mb4qSYCBt 06jzQiVT9PCEBhv U1&t=6326965023 11643750"
alt="Expand Administration" style="border-style:none;vert ical-align:middle;"
/></td>
</tr>
</table></td>
</tr><tr onmouseover="Me nu_HoverStatic( this)"
onmouseout="Men u_Unhover(this) " onkeyup="Menu_K ey(this)"
id="ctl00_offic enetMenun8">
<td><table class="StaticMe nuItem ctl00_officenet Menu_4" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;wi dth:100%;"><a
class="ctl00_of ficenetMenu_1 StaticMenuItem ctl00_officenet Menu_3" href="#"
style="border-style:none;font-size:1em;cursor :text;">
Accounting
</a></td><td style="width:0; "><img
src="/Officenet/WebResource.axd ?d=PdHRAcXLWFHu dZUW2_mb4qSYCBt 06jzQiVT9PCEBhv U1&t=6326965023 11643750"
alt="Expand Accounting" style="border-style:none;vert ical-align:middle;"
/></td>
</tr>
</table></td>
</tr>
</table><div id="ctl00_offic enetMenun1Items " class="ctl00_of ficenetMenu_0
ctl00_officenet Menu_8">
<table border="0" cellpadding="0" cellspacing="0" >
<tr onmouseover="Me nu_HoverDynamic (this)" onmouseout="Men u_Unhover(this) "
onkeyup="Menu_K ey(this)" id="ctl00_offic enetMenun9">
<td><table class="DynamicM enuItem ctl00_officenet Menu_7" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;wi dth:100%;"><a
class="ctl00_of ficenetMenu_1 DynamicMenuItem ctl00_officenet Menu_6" href="#"
style="border-style:none;font-size:1em;cursor :text;">
Accounting
</a></td><td style="width:0; "><img
src="/Officenet/WebResource.axd ?d=PdHRAcXLWFHu dZUW2_mb4qSYCBt 06jzQiVT9PCEBhv U1&t=6326965023 11643750"
alt="Expand Accounting" style="border-style:none;vert ical-align:middle;"
/></td>
</tr>
</table></td>
</tr><tr onmouseover="Me nu_HoverDynamic (this)"
onmouseout="Men u_Unhover(this) " onkeyup="Menu_K ey(this)"
id="ctl00_offic enetMenun10">
<td><table class="DynamicM enuItem ctl00_officenet Menu_7" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;wi dth:100%;"><a
class="ctl00_of ficenetMenu_1 DynamicMenuItem ctl00_officenet Menu_6" href="#"
style="border-style:none;font-size:1em;cursor :text;">
FAM
</a></td><td style="width:0; "><img
src="/Officenet/WebResource.axd ?d=PdHRAcXLWFHu dZUW2_mb4qSYCBt 06jzQiVT9PCEBhv U1&t=6326965023 11643750"
alt="Expand FAM" style="border-style:none;vert ical-align:middle;" /></td>
</tr>
</table></td>
</tr><tr onmouseover="Me nu_HoverDynamic (this)"
onmouseout="Men u_Unhover(this) " onkeyup="Menu_K ey(this)"
id="ctl00_offic enetMenun11">
<td><table class="DynamicM enuItem ctl00_officenet Menu_7" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;wi dth:100%;"><a
class="ctl00_of ficenetMenu_1 DynamicMenuItem ctl00_officenet Menu_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=PdHRAcXLWFHu dZUW2_mb4qSYCBt 06jzQiVT9PCEBhv U1&t=6326965023 11643750"
alt="Expand Education/Training"
style="border-style:none;vert ical-align:middle;" /></td>
</tr>
</table></td>
</tr><tr onmouseover="Me nu_HoverDynamic (this)"
onmouseout="Men u_Unhover(this) " onkeyup="Menu_K ey(this)"
id="ctl00_offic enetMenun12">
<td><table class="DynamicM enuItem ctl00_officenet Menu_7" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;wi dth:100%;"><a
class="ctl00_of ficenetMenu_1 DynamicMenuItem ctl00_officenet Menu_6" href="#"
style="border-style:none;font-size:1em;cursor :text;">
Miscellaneous
</a></td><td style="width:0; "><img
src="/Officenet/WebResource.axd ?d=PdHRAcXLWFHu dZUW2_mb4qSYCBt 06jzQiVT9PCEBhv U1&t=6326965023 11643750"
alt="Expand Miscellaneous" style="border-style:none;vert ical-align:middle;"
/></td>
</tr>
</table></td>
</tr>
</table><div class="DynamicM enuItem ctl00_officenet Menu_7
ctl00_officenet Menu_0" id="ctl00_offic enetMenun1Items Up"
onmouseover="Po pOut_Up(this)" onmouseout="Pop Out_Stop(this)"
style="text-align:center;">
<img
src="/Officenet/WebResource.axd ?d=8trvEXofRx_q k30QLsU6wX0aoax WrvHlltMTUCUfEx I1&t=6326965023 11643750" alt="Scroll up" />
</div><div class="DynamicM enuItem ctl00_officenet Menu_7
ctl00_officenet Menu_0" id="ctl00_offic enetMenun1Items Dn"
onmouseover="Po pOut_Down(this) " onmouseout="Pop Out_Stop(this)"
style="text-align:center;">
<img
src="/Officenet/WebResource.axd ?d=imAYi8ddq9AY 4dcLGB1azLUt2lW iqbe86y-JrLbSz1E1&t=632 696502311643750 " alt="Scroll down" />
</div>
</div><a id="ctl00_offic enetMenu_SkipLi nk"></a>
<br /><br />

<a id="ctl00_hyper linkSBC"
href="http://officenet.witte travel.com/sbc/"><img src="../images/sbc.gif"
style="border-width:0px;" /></a><br />
<br />
<a id="ctl00_hyper linkFAMnews"
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**@wittetrave l.com<br />
Password: witte</div><br /><br />
<br />
</td>
<td valign="top" class="Content" >

<div class="PageTitl e">Check Request</div>
<div class="ContentB ody">
<div>
<table cellspacing="0" border="0"
id="ctl00_mainC ontentPlaceHold er_CheckRequest DetailsView"
style="border-width:0px;width :98%;border-collapse:collap se;">
<tr>
<td style="width:15 0px;">UserID</td><td>
<input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$t xtUserID"
type="text" value="6830e736-b7ed-4a7d-90bb-58c622003dc6"
id="ctl00_mainC ontentPlaceHold er_CheckRequest DetailsView_txt UserID" />
</td>
</tr><tr>
<td style="width:15 0px;">Date Required Out</td><td>
<input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$t xtDateRequiredO ut"
type="text"
id="ctl00_mainC ontentPlaceHold er_CheckRequest DetailsView_txt DateRequiredOut "
onFocus="javasc ript:vDateType= '1'"
onKeyUp="DateFo rmat(this,this. value,event,fal se,'1')"
onBlur="DateFor mat(this,this.v alue,event,true ,'1')" />
</td>
</tr><tr>
<td style="width:15 0px;">Payable To</td><td><input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$c tl02" type="text"
title="Payable To" class="FormCont rolWidth" /></td>
</tr><tr>
<td style="width:15 0px;">Attention </td><td><input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$c tl03" type="text"
title="Attentio n" class="FormCont rolWidth" /></td>
</tr><tr>
<td style="width:15 0px;">Street Address</td><td><input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$c tl04" type="text"
title="Street Address" class="FormCont rolWidth" /></td>
</tr><tr>
<td style="width:15 0px;">Address Line 2</td><td><input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$c tl05" type="text"
title="Address Line 2" class="FormCont rolWidth" /></td>
</tr><tr>
<td style="width:15 0px;">City</td><td><input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$c tl06" type="text"
title="City" /></td>
</tr><tr>
<td style="width:15 0px;">State</td><td><input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$c tl07" type="text"
title="State" style="width:30 px;" /></td>
</tr><tr>
<td valign="top" style="width:15 0px;">Zip Code</td><td><input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$c tl08" type="text"
title="Zip Code" class="FormRowB otMargin" style="width:60 px;" /></td>
</tr><tr>
<td style="width:15 0px;">Gross Amount</td><td><input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$c tl09" type="text"
title="Gross Amount" /></td>
</tr><tr>
<td style="width:15 0px;">Deposit</td><td><input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$c tl10" type="text"
title="Deposit" /></td>
</tr><tr>
<td style="width:15 0px;">Commissio n</td><td><input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$c tl11" type="text"
title="Commissi on" /></td>
</tr><tr>
<td style="width:15 0px;">Processin g Fee</td><td><input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$c tl12" type="text"
title="Processi ng Fee" /></td>
</tr><tr>
<td valign="top" style="width:15 0px;">Check Amount</td><td>
<input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$t xtCheckAmount"
type="text"
id="ctl00_mainC ontentPlaceHold er_CheckRequest DetailsView_txt CheckAmount"
class="FormRowB otMargin" />

</td>
</tr><tr>
<td style="width:15 0px;">Provider/Vendor #</td><td><input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$c tl13" type="text"
title="Provider/Vendor #" /></td>
</tr><tr>
<td style="width:15 0px;">Witte Invoice #</td><td><input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$c tl14" type="text"
title="Witte Invoice #" /></td>
</tr><tr>
<td style="width:15 0px;">Client Name</td><td><input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$c tl15" type="text"
title="Client Name" /></td>
</tr><tr>
<td style="width:15 0px;">Service Date</td><td><input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$c tl16" type="text"
title="Service Date" /></td>
</tr><tr>
<td style="width:15 0px;">Confirmat ion Number</td><td><input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$c tl17" type="text"
title="Confirma tion Number" /></td>
</tr><tr>
<td valign="top" style="width:15 0px;">Payment Type</td><td>
<select
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$d dlPaymentType"
id="ctl00_mainC ontentPlaceHold er_CheckRequest DetailsView_ddl PaymentType"
class="FormRowB otMargin">
<option value="">(Selec t Payment Type)</option>
<option value="1">Depos it</option>
<option value="2">Final Payment</option>
<option value="3">N/A</option>

</select>
</td>
</tr><tr>
<td style="width:15 0px;">Check Description</td><td><input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$c tl18" type="text"
title="Check Description" class="FormCont rolWidth" /></td>
</tr><tr>
<td style="width:15 0px;">Budget Codes</td><td>
<textarea
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$T extBox1" rows="2"
cols="20" id="ctl00_mainC ontentPlaceHold er_CheckRequest DetailsView_Tex tBox1"
style="font-family:Arial;he ight:50px;"></textarea>
</td>
</tr><tr>
<td valign="middle" style="width:15 0px;">Departmen ts Charged (ctrl-click
for multiple selection)</td><td>
<select size="4"
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$D epartmentListBo x"
multiple="multi ple"
id="ctl00_mainC ontentPlaceHold er_CheckRequest DetailsView_Dep artmentListBox"
style="width:20 0px;">
<option value="2">Corpo rate</option>
<option value="1">Group </option>
<option value="3">Vacat ion</option>

</select>
</td>
</tr><tr>
<td style="width:15 0px;">Additiona l Instructions</td><td>
<textarea
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$t xtAdditionalIns tructions"
rows="2" cols="20"
id="ctl00_mainC ontentPlaceHold er_CheckRequest DetailsView_txt AdditionalInstr uctions"
class="FormCont rolWidth" style="font-family:Arial;he ight:60px;"></textarea>
</td>
</tr><tr>
<td valign="top" style="width:15 0px;">Return Check To</td><td><input
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$c tl19" type="text"
title="Return Check To" class="FormRowB otMargin" /></td>
</tr><tr>
<td colspan="2">
<input type="submit"
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$b tnSubmitRequest "
value="Send Request"
id="ctl00_mainC ontentPlaceHold er_CheckRequest DetailsView_btn SubmitRequest"
/> <input type="submit"
name="ctl00$mai nContentPlaceHo lder$CheckReque stDetailsView$b tnCancel"
value="Cancel" onclick="javasc ript:WebForm_Do PostBackWithOpt ions(new
WebForm_PostBac kOptions("ctl00 $mainContentPla ceHolder$CheckR equestDetailsVi ew$btnCancel",
"", false, "", "../Default.aspx", false, false))"
id="ctl00_mainC ontentPlaceHold er_CheckRequest DetailsView_btn Cancel" />
</td>
</tr>
</table>
</div>

</div>


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

<input type="hidden" name="__VIEWSTA TEENCRYPTED" id="__VIEWSTATE ENCRYPTED"
value="" />
<input type="hidden" name="__PREVIOU SPAGE" id="__PREVIOUSP AGE"
value="suC1AnRQ 1UJjYj06UuCWSj6 jrgJMQJfvOUY5n1 w0NG8mD4jcGOHCh uHw_P4wk0sZ0" />
<input type="hidden" name="__EVENTVA LIDATION" id="__EVENTVALI DATION"
value="TvUUQ2Q2 vb317my8SIzyBA6 4ugNphL/O81YPGMa/DsQ2hQLOdwvs/uWaSaZDKH+8UjKG q8fIj1GyWv5yqVl svHrJUE8QIEw1XB vj9kKPA/b+7o+H9u+xZ97LS JzkmmUC076jPaOD 5RTO4/AXvwaoX07i8BcW6 rwCA9Yf9E1P5KTC Lsx3piNNo7ucdMP/swpHKB4mFrRoSGN g80nk0a1vzDJphN z9jGYslDAV0E5kU pSV1c1QXvSRwMfb iTS89VMHiyEo4F4 tuA2pb2QgRANgwB nSg+nSTXayUjzpc b6szgI=" />
</div>

<script type="text/javascript">
<!--
var ctl00_officenet Menu_Data = new Object();
ctl00_officenet Menu_Data.disap pearAfter = 500;
ctl00_officenet Menu_Data.horiz ontalOffset = 0;
ctl00_officenet Menu_Data.verti calOffset = 0;
ctl00_officenet Menu_Data.hover Class = 'ctl00_officene tMenu_16
DynamicHoverSty le';
ctl00_officenet Menu_Data.hover HyperLinkClass = 'ctl00_officene tMenu_15
DynamicHoverSty le';
ctl00_officenet Menu_Data.stati cHoverClass = 'ctl00_officene tMenu_14
StaticHoverStyl e';
ctl00_officenet Menu_Data.stati cHoverHyperLink Class = 'ctl00_officene tMenu_13
StaticHoverStyl e';
// -->
</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
5660
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 difficult to know what is going on. One of these Order Forms you can see here... http://www.cardman.co.uk/orderform.php3
12
8673
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 update after making changes, but I don't want that update button. How can I get the updated object when the user presses one of my other action...
1
5553
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 DetailsView displaying the selected company from dridview. I'm able to use the DetailsView to insert and update members of the site (companies), but I...
3
4296
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 done using the code below. When I add masterpages to Album.aspx and remove all the html tags I get the error System.NullReferenceException: Object...
8
2599
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
2364
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 that great. One of the cons of ASP & Javascript is that they're both interpreted, which means one has twice the amount of work to do interms of...
3
1632
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 viewer in a content placeholder, using a simple Response.Redirect on the TreeView1_SelectedNodeChanged event. Now, I need to call a javascript function...
5
6203
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 monthly --- dozens of clicks in a row! I prefer the free javascript popup calendar at http://www.mattkruse.com/javascript/calendarpopup/ I...
18
4745
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" > <asp:TemplateField> <EditItemTemplate> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> </EditItemTemplate>
0
7410
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7668
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7923
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7773
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5984
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5343
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4960
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1025
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
722
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.