Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 July 29th, 2004, 02:54 AM
Authorized User
 
Join Date: Jul 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hash Tables

Hi,


With the below code

<%@ page Language= "c#" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<table style="background-color:#cc0033" width="100%" cellpadding="10" cellspacing="0">
    <tr>
        <td width="10%"">
            <img src="logo.gif" align="left" />
        </td>
        <td width="60%">

                <asp:label id="WelcomeMessage" runat="Server">Welcome to the Stationary Inventory Control System!</asp:label>

        </td>
        <td width="30%">
            Select your Language:<br>
                <form runat="server" ID="Form1">
                    <asp:DropDownList id="LanguageList" name="Control" runat="Server" OnSelectedIndexChanged="DropList_Changed" AutoPostBack="True" />
                </form>
                <br />

        </td>
    </tr>
</table>
<script runat="server">

  Hashtable Languages = new Hashtable();

  public void Page_Load()
  {
    Languages.Add("English", "Welcome to the Stationary Inventory Control System!");
    Languages.Add("French", "Accueillir au Système à l'arrêt de Contrôle d'Inventaire!");
    Languages.Add("Spanish", "¡Bienvenido al Sistema Inmóvil del Control de existencias!");
    Languages.Add("German", "Heißen Sie Willkommen zum Feststehenden Lagerhaltungssystem!");

    if (!Page.IsPostBack)
    {
      LanguageList.DataSource = Languages.Keys;
      Page.DataBind();
    }
  }

  public void DropList_Changed(object sender, EventArgs e)
  {
    WelcomeMessage.Text = (String) Languages[LanguageList.SelectedItem.Text];
  }

</script>


How do i add hash tables to the codes??

Ong LeeHiang

 
Old July 29th, 2004, 03:03 AM
Authorized User
 
Join Date: Jul 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I mean drop down lists like the one in this website showing the pages of the forum

 
Old July 29th, 2004, 07:54 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I'm not sure what you are asking... I see a dropdown list in your code.
 
Old July 29th, 2004, 09:39 PM
Authorized User
 
Join Date: Jul 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I mean how do i add another dropdownlist continuing where the script ends.

 
Old July 30th, 2004, 09:37 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I'm still not sure what you mean. Can you explain it in more detail?
I see a dropdownlist, and you are populating it in the server code.
Are you asking how you add items to the dropdownlist?
 
Old July 31st, 2004, 01:42 AM
Authorized User
 
Join Date: Jul 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I am designing an stationary inventory control system and i plan to design my interface such that there a table which shows one side the stationary item and the other a dropdownlist that the uses can choose the quantity of item issued.

Can u help me??


Ong Lee Hiang

 
Old August 3rd, 2004, 04:36 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Where is the list of items coming from? I don't see how what you explained is related to the original post code. It sounds like you need to set up a data query to get the items (if they are in a database), then set up some data listing control (repeater, datalist, datagrid) in which you can place your "quantity" drop down list.
 
Old August 4th, 2004, 05:03 AM
Authorized User
 
Join Date: Jul 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am now designing an user interface and the above codes are for the interface. I seems to have a problem using asp:dropdownlist. It gives me a compilation error.


LeeHiang

 
Old August 4th, 2004, 08:08 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

And that error is?
 
Old August 9th, 2004, 08:24 PM
Authorized User
 
Join Date: Jul 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It says the aspdropdownlist is not in the form






Similar Threads
Thread Thread Starter Forum Replies Last Post
purpose of hash in CSS style crmpicco CSS Cascading Style Sheets 4 January 27th, 2018 08:34 AM
Comparing two images in C# (without HASH) aakash494 C# 6 June 9th, 2009 11:29 AM
Dynamic load of hash table jcwest Visual Basic 2005 Basics 0 October 29th, 2007 11:03 PM
Abt Hash Code.. pandian Java Basics 3 January 18th, 2006 06:31 PM





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