Now it has error msg:
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 'WebApplication1.Global'.
Source Error:
|
Source File:c:\inetpub\wwwroot\qingaspnet\WebApplication1\global.asax Line:1
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
I use microsoft visual studio. net
I double click on the button and add one line code in function Button1_Click --it is under WebForm1.aspx.cs
rivatevoid Button1_Click(object sender, System.EventArgs e)
{
Text1.Value="Hello, Web Forms!";
}
and then right click on WebForm1.aspx--> view in browser.
-----Code Here:
/*
<%@dotnet.itags.org. Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="WebApplication1.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">
<INPUT style="Z-INDEX: 101; LEFT: 85px; POSITION: absolute; TOP: 88px" type="text" id="Text1" name="Text1" runat="server">
<asp:Button id="Button1" style="Z-INDEX: 102; LEFT: 128px; POSITION: absolute; TOP: 143px" runat="server" Text="Button"></asp:Button>
<DIV style="DISPLAY: inline; Z-INDEX: 103; LEFT: 59px; WIDTH: 211px; POSITION: absolute; TOP: 26px; HEIGHT: 37px" ms_positioning="FlowLayout"><STRONG><FONT size="4">Sample
Web Forms Page:</FONT></STRONG></DIV>
</form>
</body>
</HTML> */ Thanks for help!
i am not sure exactly but i saw thesame problem ... it might be the asp.net can not be read by the iis.... have you installed iis before or after the VS.NET?Hello!
I use IIS for my PHP and MYSQL project. It run fine. I just recently installed the .net and try to learn it.
I search the internet for the problem. It seems the .dll or directory problem. It is compile problem--it didnot compile it for me.
I went to the property of the folder under IIS and don't know what I should to change.
The project WebApplication1 is under C:\Inetpub\wwwroot\qingaspnet\WebApplication1
Please tell me what to change step by step.
Thanks!
Hello!
I use F5 to rebuild it. It works and showed on the browser. But when I click on button, the text did not show on the text box.
why?
Thanks for help!
rivatevoid Button1_Click(object sender, System.EventArgs e)
{
Text1.Value="Hello, Web Forms!";
}
this is your code and as i can see if your text box ID is Text1 so your code telling me that when you click on the button the text box will be filled by this string provided in code so what is the strange !!!!! if something else please expand what you mean and what is the problem !!?? but any way how it is worknig now what have you changed?
0 comments:
Post a Comment