Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

Could some one help with this error on page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Merdaad - 11 Jun 2007 22:36 GMT
Hi,

I am using ASP.NET 2.0 and Master Pages,etc.  I am NOT using AJAX.
I don't see the problem on my local server, only when I publish it to the web.

Problem happens on a page Where entry into a textbox causes a post back.  

When I type inside the textbox, I get the exclaimation and "Error on Page".  
Then details say "line 105, object expected"

In View Source, Line 105 is as follows:
<input name="ctl00$ContentPlaceHolder1$boxCnt" type="text" value="67"
onchange="javascript:setTimeout('__doPostBack(\'ctl00$ContentPlaceHolder1$boxCnt\',\'\')',
0)" onkeypress="if (WebForm_TextBoxKeyHandler(event) == false) return false;"
id="ctl00_ContentPlaceHolder1_boxCnt" style="height:18px;width:58px;" />

I get this error in other places as well.

Thanks for any help
Alexey Smirnov - 11 Jun 2007 22:44 GMT
On Jun 11, 11:36 pm, Merdaad <Merd...@discussions.microsoft.com>
wrote:
> Hi,
>
[quoted text clipped - 15 lines]
>
> Thanks for any help

How the textbox control is declared and do you use a validation
controls for it?

<asp:TextBox...
Merdaad - 11 Jun 2007 23:01 GMT
Thanks for the response.  There is a validator.  This is how the Textbox is
declared:
<asp:TextBox ID="boxCnt" runat="server" Width="58px" Height="18px"
AutoPostBack="true" OnTextChanged="boxCnt_TextChanged"></asp:TextBox>
   <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="boxCnt"
       ErrorMessage="Number Of Boxes - Required"
Font-Size="XX-Small"></asp:RequiredFieldValidator>

> On Jun 11, 11:36 pm, Merdaad <Merd...@discussions.microsoft.com>
> wrote:
[quoted text clipped - 22 lines]
>
> <asp:TextBox...
Alexey Smirnov - 11 Jun 2007 23:26 GMT
> Thanks for the response.  There is a validator.  This is how the Textbox
> is
[quoted text clipped - 5 lines]
>        ErrorMessage="Number Of Boxes - Required"
> Font-Size="XX-Small"></asp:RequiredFieldValidator>

Hmm... are you sure that ASP.NET 2.0 is properly installed on the server? If
it works on the local box, it should work on the server too, I think.

Check the version and try to debug js to see what object is "expected"
Merdaad - 11 Jun 2007 23:44 GMT
.How many ways are there to install ASP.NET 2.0.  Obviously I don't have
access to the way ASP.NET 2.0 was installed on the server.  Could you
elaborate?

Also you say debug JS?  How would I do that.  I am not using JavaScript.  
Why is JavaScript even created at run time?  What is ths .axd file for?  

Thanks again

> > Thanks for the response.  There is a validator.  This is how the Textbox
> > is
[quoted text clipped - 10 lines]
>
> Check the version and try to debug js to see what object is "expected"
Alexey Smirnov - 12 Jun 2007 00:06 GMT
> .How many ways are there to install ASP.NET 2.0.  Obviously I don't have
> access to the way ASP.NET 2.0 was installed on the server.  Could you
> elaborate?
>
> Also you say debug JS?  How would I do that.  I am not using JavaScript.
> Why is JavaScript even created at run time?  What is ths .axd file for?

To debug JS
http://blogs.msdn.com/ie/archive/2004/10/26/247912.aspx
http://www.jonathanboutelle.com/mt/archives/2006/01/howto_debug_jav.html

Regarding AXD
http://support.microsoft.com/kb/910442

I've also found a post about that the webresource.axd file is not getting
downloaded on the client sometimes.
http://blogs.msdn.com/paraga/archive/2006/02/02/522766.aspx

Have a look, maybe it helps
Merdaad - 12 Jun 2007 00:14 GMT
OK.  Italked to the ISP where the server is.

They say it's a IE 7.0 issue!
I tried this samething for myself and on Firefox I don't see the error while
on IE 7.0 I consistently do.

Thanks again

> > .How many ways are there to install ASP.NET 2.0.  Obviously I don't have
> > access to the way ASP.NET 2.0 was installed on the server.  Could you
[quoted text clipped - 15 lines]
>
> Have a look, maybe it helps
Alexey Smirnov - 12 Jun 2007 07:34 GMT
> OK.  Italked to the ISP where the server is.
>
> They say it's a IE 7.0 issue!
> I tried this samething for myself and on Firefox I don't see the error while
> on IE 7.0 I consistently do.

Hard to believe :-) Maybe you should try to clean the cache in IE, or
test it from another client. The Fiddler tool (see the last link)
might be also useful...
Merdaad - 13 Jun 2007 20:55 GMT
Hi again,

I will email you the link so you could try it for yourself.

Thanks for all your help.

M

> > OK.  Italked to the ISP where the server is.
> >
[quoted text clipped - 5 lines]
> test it from another client. The Fiddler tool (see the last link)
> might be also useful...
akoorvqjhh - 22 Jun 2007 00:08 GMT
Hello! Good Site! Thanks you! zvaeqqmrcgxggq

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.