Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 web controls not displaying

Author  Topic 

nofriends
Starting Member

2 Posts

Posted - 2005-12-02 : 06:04:11
hi.
I just addded 2 textboxes,1calendar,1 hyperlink,1 dropdownlist.
I run the application it is showing Hyperlink only,all other web ctrls are not displaying.


LeaveMaster.aspx


<%@ Page Language="vb" AutoEventWireup="false" Codebehind="LeaveMaster.aspx.vb" Inherits="Payroll.LeaveMaster" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<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:TextBox id="TextBox1" style="Z-INDEX: 101; LEFT: 166px; POSITION: absolute; TOP: 108px" runat="server" BorderColor="#FF8080" BackColor="#804000"></asp:TextBox>
<asp:TextBox id="TextBox2" style="Z-INDEX: 102; LEFT: 173px; POSITION: absolute; TOP: 197px" runat="server"></asp:TextBox>
<asp:dropDownList id="DropDownList1" style="Z-INDEX: 103; LEFT: 89px; POSITION: absolute; TOP: 261px" runat="server" Width="270px" Height="34px"></asp:dropDownList>
<asp:HyperLink id="HyperLink1" style="Z-INDEX: 104; LEFT: 71px; POSITION: absolute; TOP: 337px" runat="server" Width="265px" Height="36px">HyperLink</asp:HyperLink>
<asp:Calendar id="Calendar1" style="Z-INDEX: 105; LEFT: 431px; POSITION: absolute; TOP: 116px" runat="server"></asp:Calendar>
</form>
</body>
</HTML>


LeaveMaster.aspx.vb

Public Class LeaveMaster
Inherits System.Web.UI.Page
Protected WithEvents TextBox2 As System.Web.UI.WebControls.TextBox
Protected WithEvents DropDownList1 As System.Web.UI.WebControls.DropDownList
Protected WithEvents HyperLink1 As System.Web.UI.WebControls.HyperLink
Protected WithEvents Calendar1 As System.Web.UI.WebControls.Calendar
Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
End Sub

thanx

jhermiz

3564 Posts

Posted - 2005-12-02 : 09:54:57
Try recreating the page and see if this still happens, the code is fine to me.



Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]
Go to Top of Page

nofriends
Starting Member

2 Posts

Posted - 2005-12-02 : 23:26:48
thanx for reply..but hard luck..
still same problem.....
Go to Top of Page
   

- Advertisement -