This message was discovered on ASPFriends.com 'aspngdatagridrepeaterdatalist' list.
| =?iso-8859-1?Q?Andr=E9_Colbi=F6rnsen?= |
..and you have built your VS.Net project too?
Regards/Halsningar
Andre Colbiornsen -------------------------------------- Sonnenburg Communications Bergsgatan 3, SE-211 54 Malmö Sweden Tel.: +46-(0)40-97 78 80 Fax.: +46-(0)40-97 78 80 Mob.: +46-(0)708-97 78 79 Mail: Click here to reveal e-mail address Web.: www.sonnenburg.se ---------------------------------------- B2B Web Solutions - Specializing in .Net ----------------------------------------
-----Ursprungligt meddelande----- Från: Mohammed Mudassir [mailto:Click here to reveal e-mail address] Skickat: den 25 juli 2002 07:36 Till: aspngDataGridRepeaterDatalist Ämne: [aspngdatagridrepeaterdatalist] Strange DataGrid Bug...
Error:
Server Error in '/femClub' Application.
_____
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'femClub.EditDataGrid'.
Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="EditDataGrid.aspx.vb" Inherits="femClub.EditDataGrid" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML>
Source File: d:\inetpub\wwwroot\femClub\lab\EditDataGrid.aspx Line: 1
_____
Version Information: Microsoft .NET Framework Version:1.0.3705.209; ASP.NET Version:1.0.3705.0
Dear All,
I sometime get this bug, though my .vb file already exists, but I don't know what happened... I did some sample work and here is the Code
.aspx File code: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="EditDataGrid.aspx.vb" Inherits="femClub.EditDataGrid" %><%@ Page Language="vb" AutoEventWireup="false" Codebehind="EditDataGrid.aspx.vb" Inherits="femClub.EditDataGrid" %><%@ Page Language="vb" AutoEventWireup="false" Codebehind="EditDataGrid.aspx.vb" Inherits="femClub.EditDataGrid" %><%@ Page Language="vb" AutoEventWireup="false" Codebehind="EditDataGrid.aspx.vb" Inherits="femClub.EditDataGrid" %><% @ Page Language="vb" AutoEventWireup="false" Codebehind="EditDataGrid.aspx.vb" Inherits="femClub.EditDataGrid" %> <form id="Form1" method="post" runat="server"> <asp:DataGrid id="EdGrid" style="Z-INDEX: 101; LEFT: 15px; POSITION: absolute; TOP: 14px" runat="server"></asp:DataGrid> </form>
EditDataGrid.aspx.vb Source Code:
Imports System.Data
Imports System.Data.SqlClient
Public Class EditDataGrid
Inherits System.Web.UI.Page
Protected WithEvents EdGrid As System.Web.UI.WebControls.DataGrid
#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
If Not Page.IsPostBack Then
BindData()
End If
End Sub
Public Sub BindData()
Dim myDataSet As New DataSet()
Dim mySqlDataAdapter As SqlDataAdapter
mySqlDataAdapter = New SqlDataAdapter("SELECT * FROM Employees", "server=127.0.0.1.;database=northwind;uid=sa;pwd=;")
mySqlDataAdapter.Fill(myDataSet, "Employees")
EdGrid.DataSource = myDataSet.Tables("Employees")
EdGrid.DataBind()
End Sub
End Class
| [aspngdatagridrepeaterdatalist] member Click here to reveal e-mail address = YOUR ID | http://www.aspfriends.com/aspfriends/aspngdatagridrepeaterdatalist.asp JOIN/QUIT
|
|
| |
| |
| Mohammed Mudassir |
MeddelandeYes, and it is in teh same namespace, now I am amazed that it works? Anybody know why ??? Why it start working, I just did the same stuff as I was doing, "Build SOlution" and thing start working fine and dandy ...
Take care,
Mudassir
One who knows the enemy and knows himself will not be in danger in a hundred battles. -Art of War ----- Original Message ----- From: André Colbiörnsen To: aspngDataGridRepeaterDatalist Sent: Thursday, July 25, 2002 10:09 PM Subject: [aspngdatagridrepeaterdatalist] SV: Strange DataGrid Bug...
..and you have built your VS.Net project too?
Regards/Halsningar
Andre Colbiornsen -------------------------------------- Sonnenburg Communications Bergsgatan 3, SE-211 54 Malmö Sweden Tel.: +46-(0)40-97 78 80 Fax.: +46-(0)40-97 78 80 Mob.: +46-(0)708-97 78 79 Mail: Click here to reveal e-mail address Web.: www.sonnenburg.se ---------------------------------------- B2B Web Solutions - Specializing in .Net ----------------------------------------
-----Ursprungligt meddelande----- Från: Mohammed Mudassir [mailto:Click here to reveal e-mail address] Skickat: den 25 juli 2002 07:36 Till: aspngDataGridRepeaterDatalist Ämne: [aspngdatagridrepeaterdatalist] Strange DataGrid Bug...
Error:
Server Error in '/femClub' Application. ----------------------------------------------------------------------------
Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'femClub.EditDataGrid'.
Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="EditDataGrid.aspx.vb" Inherits="femClub.EditDataGrid" %> Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> Line 3: <HTML>
Source File: d:\inetpub\wwwroot\femClub\lab\EditDataGrid.aspx Line: 1
----------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.209; ASP.NET Version:1.0.3705.0
Dear All,
I sometime get this bug, though my .vb file already exists, but I don't know what happened... I did some sample work and here is the Code
.aspx File code: <% @ Page Language="vb" AutoEventWireup="false" Codebehind="EditDataGrid.aspx.vb" Inherits="femClub.EditDataGrid" %> <form id="Form1" method="post" runat="server"> <asp:DataGrid id="EdGrid" style="Z-INDEX: 101; LEFT: 15px; POSITION: absolute; TOP: 14px" runat="server"></asp:DataGrid> </form>
EditDataGrid.aspx.vb Source Code:
Imports System.Data
Imports System.Data.SqlClient
Public Class EditDataGrid
Inherits System.Web.UI.Page
Protected WithEvents EdGrid As System.Web.UI.WebControls.DataGrid
#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
If Not Page.IsPostBack Then
BindData()
End If
End Sub
Public Sub BindData()
Dim myDataSet As New DataSet()
Dim mySqlDataAdapter As SqlDataAdapter
mySqlDataAdapter = New SqlDataAdapter("SELECT * FROM Employees", "server=127.0.0.1.;database=northwind;uid=sa;pwd=;")
mySqlDataAdapter.Fill(myDataSet, "Employees")
EdGrid.DataSource = myDataSet.Tables("Employees")
EdGrid.DataBind()
End Sub
End Class
| [aspngdatagridrepeaterdatalist] member Click here to reveal e-mail address = YOUR ID | http://www.aspfriends.com/aspfriends/aspngdatagridrepeaterdatalist.asp = JOIN/QUIT | [aspngdatagridrepeaterdatalist] member Click here to reveal e-mail address = YOUR ID | http://www.aspfriends.com/aspfriends/aspngdatagridrepeaterdatalist.asp = JOIN/QUIT
|
|
| |
|
|
|
|
|