all groups > asp.net announcements > july 2004 >
You're in the

asp.net announcements

group:

ASP.NET


ASP.NET Solange Ferreira via .NET 247
7/3/2004 7:51:02 AM
asp.net announcements:
(Type your message here)

--------------------------------
From: Solange Ferreira

Hi to All!

I created te following aspx file:
"
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="Teste.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 134px; POSITION: absolute; TOP: 127px" runat="server" Text="Button"></asp:Button>
<asp:DropDownList id="DropDownList1" style="Z-INDEX: 103; LEFT: 8px; POSITION: absolute; TOP: 8px" runat="server" Width="256px" Height="34px"></asp:DropDownList>
<asp:Label id="Label1" style="Z-INDEX: 102; LEFT: 72px; POSITION: absolute; TOP: 71px" runat="server">werwerwerwerwerwe</asp:Label>
</form>
</body>
</HTML>

"

When i do "view in browse" only the label appeared.
I don't know why the button and dropdownlist disappeared.
Could anyone give me any tip?

Thanks

Solange Ferreira

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

Re: ASP.NET Angus Logan
7/10/2004 2:02:03 PM
you need to add runat="server" onto the asp:dropdownlist.

- Angus

[quoted text, click to view]
POSITION: absolute; TOP: 8px" runat="server" Width="256px"
Height="34px"></asp:DropDownList>
[quoted text, click to view]

AddThis Social Bookmark Button