473,320 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

value from dropdownlist to txtbox when you enterd a sign in txtbox

Hey mensen

I am having some big troubles here i tryd solving it myself with internet for 2 days but i kind fix it.
Its about this i have a DotNet project that alrydi is online and working for almost everything.
but it whas made in Visual Studio 7 and i converted it to 2005. in version 7 it works almost perfect but in 2005 i am having some errors.

becase all the code i am using is very long i am trying to post the nesecery code only if you need more just tell me

The ERROR is this: Runtime-fout Microsoft JScript: 'document.WerkbonOverzicht.txtKlant1' is empty or not ann object

the thing i whant to make work again is this: i have 1 Textbox and 1 Dropdownlist and the dropdownlist gets information from a database with a lot of names.
the thing i whanne get to work again is that if i typ a letter in my txtbox it gets the name from the dropdownlist.
All the programmig code is good becase it works in the online version. and the error points at the end of the document after </html>
i personly thin the error is somewere in the 2 rules of body onloud and form id tag.

this whas the code in Visual Studio 7 working online

WerkbonOverzicht.aspx

Expand|Select|Wrap|Line Numbers
  1. <%@ Page language="c#" Codebehind="WerkbonOverzicht.aspx.cs" AutoEventWireup="false" Inherits="DotNet.WerkbonOverzicht" debug="False"%>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4.     <HEAD>
  5.         <LINK href="style.css" type="text/css" rel="stylesheet">
  6.             <script language="javascript" src="AlgemeneFuncties.js"></script>
  7.     </HEAD>
  8.     <body onload="InitCombobox(document.WerkbonOverzicht.txtKlant1, document.WerkbonOverzicht.DDLKlant1);">
  9.         <form id="WerkbonOverzicht" method="post" runat="server">
  10.             <P>
  11.                 <asp:Button id="btnNada" runat="server" Width="1px" BorderColor="#567C9C" BackColor="#567C9C" BorderStyle="None" Height="1px"></asp:Button><asp:dropdownlist id="DDLKlant1" runat="server" AutoPostBack="True" Width="246px"></asp:dropdownlist></P>
  12.             <P><asp:imagebutton id="imgbtnToevoegen" onfocus="this.blur()" runat="server" ImageUrl="images\toevoegen.gif" DESIGNTIMEDRAGDROP="30"></asp:imagebutton></P>
  13.             <P><asp:button id="btnReset" runat="server" BorderColor="Red" BackColor="Red" Text="Reset"></asp:button></TD></P>
  14.             <P>
  15.                 <table cellSpacing="1" cellPadding="0" width="70%">
  16.                     <tr>
  17.                         <td>Jaar:</td>
  18.                         <td>Klant:</td>
  19.                         <td>Werknemer:</td>
  20.                         <td>Aantal rijen:</td>
  21.                         <td>Datum:</td>
  22.                     </tr>
  23.                     <tr>
  24.                         <td><asp:dropdownlist id="DDLJaartal1" runat="server" AutoPostBack="True"></asp:dropdownlist></td>
  25.                         <td><asp:textbox id="txtKlant1" runat="server" Width="247px"></asp:textbox></td>
  26.                         <td><asp:dropdownlist id="DDLWerkn1" runat="server" AutoPostBack="True"></asp:dropdownlist></td>
  27.                         <td><asp:dropdownlist id="DDLRecord1" runat="server" AutoPostBack="True" Width="90px"></asp:dropdownlist></td>
  28.                         <td><asp:dropdownlist id="DDLDesc1" runat="server" AutoPostBack="True"></asp:dropdownlist></td>
  29.                     </tr>
  30.                 </table>
  31.             </P>
  32.             <table cellSpacing="1" cellPadding="0" width="90%">
  33.                 <tr>
  34.                     <th>
  35.                         ID</th>
  36.                     <th>
  37.                         Naam klant</th>
  38.                     <th>
  39.                         Datum</th>
  40.                     <th>
  41.                         Medewerker</th>
  42.                     <th>
  43.                         Omschrijving</th>
  44.                     <th>
  45.                         Uren</th>
  46.                     <th>
  47.                         Factuur</th></tr>
  48.                 <span id="TableSpan" runat="server"></span>
  49.                 <tr>
  50.                     <td colSpan="6">&nbsp;</td>
  51.                 </tr>
  52.             </table>
  53.         </form>
  54.     </body>
  55. </HTML>
  56.  
this is my current code in 2005 not working

WerkbonOverzicht.aspx

Expand|Select|Wrap|Line Numbers
  1. <%@ Page language="c#" Inherits="DotNet.WerkbonOverzicht" debug="False" CodeFile="WerkbonOverzicht.aspx.cs" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4.     <HEAD>
  5.         <LINK href="style.css" type="text/css" rel="stylesheet">
  6.             <script language="javascript" src="AlgemeneFuncties.js"></script>
  7.     </HEAD>
  8.     <body onload="InitCombobox(document.span2.txtKlant1, document.span2.DDLKlant1);">
  9.         <form name="WerkbonOverzicht" method="post" action="WerkbonOverzicht.aspx" id="WerkbonOverzicht">
  10.             <P>
  11.                 <asp:Button id="btnNada" runat="server" Width="1px" BorderColor="#567C9C" BackColor="#567C9C" BorderStyle="None" Height="1px" onclick="btnNada_Click"></asp:Button><asp:dropdownlist id="DDLKlant1" runat="server" AutoPostBack="True" Width="246px" onselectedindexchanged="DDLKlant1_SelectedIndexChanged"></asp:dropdownlist></P>
  12.             <P><asp:imagebutton id="imgbtnToevoegen" onfocus="this.blur()" runat="server" ImageUrl="images\toevoegen.gif"></asp:imagebutton></P>
  13.             <P><asp:button id="btnReset" runat="server" BorderColor="Red" BackColor="Red" Text="Reset" onclick="btnReset_Click"></asp:button></P>
  14.             <P>
  15.                 <table cellSpacing="1" cellPadding="0" width="70%">
  16.                     <tr>
  17.                         <td>Jaar:</td>
  18.                         <td>Klant:</td>
  19.                         <td>Werknemer:</td>
  20.                         <td>Aantal rijen:</td>
  21.                         <td>Datum:</td>
  22.                     </tr>
  23.                     <tr>
  24.                         <td><asp:dropdownlist id="DDLJaartal1" runat="server" AutoPostBack="True"></asp:dropdownlist></td>
  25.                         <td><asp:textbox id="txtKlant1" runat="server" AutoPostBack="True" Width="247px" ontextchanged="txtKlant1_TextChanged"></asp:textbox></td>
  26.                         <td><asp:dropdownlist id="DDLWerkn1" runat="server" AutoPostBack="True"></asp:dropdownlist></td>
  27.                         <td><asp:dropdownlist id="DDLRecord1" runat="server" AutoPostBack="True" Width="90px"></asp:dropdownlist></td>
  28.                         <td><asp:dropdownlist id="DDLDesc1" runat="server" AutoPostBack="True"></asp:dropdownlist></td>
  29.                     </tr>
  30.                 </table>
  31.             </P>
  32.             <table cellSpacing="1" cellPadding="0" width="90%">
  33.                 <tr>
  34.                     <th>
  35.                         ID</th>
  36.                     <th>
  37.                         Naam klant</th>
  38.                     <th>
  39.                         Datum</th>
  40.                     <th>
  41.                         Medewerker</th>
  42.                     <th>
  43.                         Omschrijving</th>
  44.                     <th>
  45.                         Uren</th>
  46.                     <th>
  47.                         Factuur</th></tr>
  48.                         <tr>
  49.                 <td><span id="TableSpan" runat="server"></span></td>
  50.                 </tr>
  51.                 <tr>
  52.                     <td colSpan="6">&nbsp;</td>
  53.                 </tr>
  54.             </table>
  55.         </form>
  56.     </body>
  57. </HTML>
I hope i posted it under the good forum questions

greets
Oct 13 '08 #1
0 1900

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Nathan Sokalski | last post by:
I have a user control that contains three variables which are accessed through public properties. They are declared immediately below the "Web Form Designer Generated Code" section. Every time an...
6
by: Nathan Sokalski | last post by:
I am writing a User Control that uses 3 DropDownLists. When I attempt to access the SelectedIndex property it incorrectly reports the value selected by the user. Why is this? Here is my code,...
2
by: Boki | last post by:
Hi All, // code start alert("document.all.txtbox"+valueA+".value") // end code could you please advice, can it show the value of txtbox ?
0
by: GoCoogs | last post by:
Disclaimer: I'm a newbie that's been working with VB.net for under a month. I have two listboxes. Listbox1 contains collections. Selecting an item in listbox1 and pressing a control button sends...
7
by: turtle | last post by:
I want to find out the max value of a field on a report if the field is not hidden. I have formatting on the report and if the field doesn't meet a certain criteria then it is hidden. I want to...
2
by: mylog | last post by:
Hi all, I am having a small problem on getting the values of the dynamically generated textboxes in C# windows application. I have successfully read an xml file and put its key and value fields as...
22
by: asmx126453 | last post by:
hey guys can somonehelp i got an error on rule 3 and it says error: txtbox is empty or not an object this is the code out my aspx page <script language="javascript"...
1
by: mailbox73 | last post by:
Hi, c# 2008 express edition. Can anyone please help me figure out why I cannot get any value from one form to another when the controls are databound. (the formY.txtbox lands up empty) in...
6
by: Ahmedhussain | last post by:
Hi there, I m doing work on a gridview and Im getting an error: A potentially dangerous Request.Form value was detected from the client (ctl00$Content$GridView1$ctl03$TextBox1="<span...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.