Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 15th, 2004, 02:58 AM
Authorized User
 
Join Date: Oct 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default AutoPostBack problem

I have .aspx form that contain this code:


<BODY text="#000000" bgColor="#666666">

<form method="post" runat="server">

.

.

<asp:dropdownlist id="Names" tabIndex="5" runat="server" AutoPostBack="True">

</asp:dropdownlist>



In the .VB file of this form i have this code:


Private Sub Names_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Names.SelectedIndexChanged



Me.Age.Enabled = True



END SUB



That means, that selecting name from the dropdownlist will make the "Age" filed to enabled
But when i run this form i get this debug code:


<!--

function __doPostBack(eventTarget, eventArgument) {

var theform;

if (window.navigator.appName.toLowerCase().indexOf("n etscape") > -1) {

theform = document.forms["_ctl0"];

}

else {

theform = document._ctl0;

}

theform.__EVENTTARGET.value = eventTarget.split("$").join(":");

theform.__EVENTARGUMENT.value = eventArgument;

theform.submit();

}

// -->



And there is an error on line:
theform.submit();

that say:

"Object doesn't support this property or method"

What is the problem and how to fix it?


 
Old December 22nd, 2004, 09:45 AM
Authorized User
 
Join Date: Sep 2004
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to nashnash
Default

hello

plz paste the whole code it will help me to fix..

Thanks
Nash






Similar Threads
Thread Thread Starter Forum Replies Last Post
AJAX and AutoPostBack [email protected] Ajax 0 May 9th, 2006 07:34 AM
Dropdown list without autopostback choudhmh ASP.NET 1.0 and 1.1 Basics 0 December 3rd, 2004 07:29 AM
Listbox w/o Autopostback collie ASP.NET 1.0 and 1.1 Basics 3 November 21st, 2003 01:57 PM
AutoPostBack stu9820 ASP.NET 1.0 and 1.1 Professional 7 September 9th, 2003 03:59 PM
linkbutton and autopostback jtyson ASP.NET 1.0 and 1.1 Basics 0 July 10th, 2003 11:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.