我正在尝试创建一个Local IIS Website使用ASP.NET.
当我点击New -----> Website and select the type as HTTP对话框并从对话框中选择该选项时,LOCAL IIS WEBSITE我收到的消息为"此计算机上未安装IIS"
当我签入时Control Panel---->Add or remove programs ---->Add or remove windows components.选项Internet Information Service已经过选中标记.
但是当我点击它时Control Panel ---> Administrative Tools,我没有找到选项Internet Information Service.
我也有根目录C:\Inetpub\WWWRoot.
当我在VS命令提示符中给出以下命令时
aspnet_regiis.exe -i
Run Code Online (Sandbox Code Playgroud)
它在完成安装ASP.NET时给出了消息
任何人都可以帮我识别是否IIS安装在我的系统中?
请帮帮我!
我已经安装了Microsoft SQL Server 2005.
这包括配置工具(SQL Server配置管理器,SQL错误和使用情况报告,SQL Server表面区域配置,Reporting Services配置)和SQL Server Management Studio.
但是,我找不到SQL Server Business Intelligence Development Studio.
怎么安装?
它是否可以在线免费下载?
我想跟踪我网站的访问者数量.
我在Global.asax类中尝试了以下代码,
<script runat="server">
public static int count = 0;
void Application_Start(object sender, EventArgs e)
{
Application["myCount"] = count;
}
void Session_Start(object sender, EventArgs e)
{
count = Convert.ToInt32(Application["myCount"]);
Application["myCount"] = count + 1;
}
</script>
Run Code Online (Sandbox Code Playgroud)
我正在检索aspx页面中的值,如下所示:
protected void Page_Load(object sender, EventArgs e)
{
int a;
a = Convert.ToInt32((Application["myCount"]));
Label4.Text = Convert.ToString(a);
if (a < 10)
Label4.Text = "000" + Label4.Text ;
else if(a<100)
Label4.Text = "00" + Label4.Text;
else if(a<1000)
Label4.Text = "0" + Label4.Text;
}
Run Code Online (Sandbox Code Playgroud)
上面的编码工作正常.它正确生成访问者,但问题是当我重新启动系统时,count变量再次从0开始,这在逻辑上是错误的.
我希望count的值从最后一个计数值增加1.
那么有人能告诉我如何完成这项任务吗? …
我正在我的PC中使用.net Framework 2.0和Visual C#(Microsoft Visual Studio 2008)开发Windows应用程序.
在我的项目完成后,我必须在具有Visual Studio 2005和.net framework 2.0的系统中执行它.
所以我怀疑的是,如果我在Microsoft Visual Studio 2008中开发应用程序,我能否在Visual Studio 2005中正确执行它?可能吗?
请帮我!
提前致谢!
我是初学者用C#作为编程语言学习ASP.NET.
目前我正在使用HTTPSERVERUTILITY.
我创建了一个名为Default.aspx和Default2.aspx的Web表单:
我写了以下代码:
Default.aspx的:
在源视图中
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
</div>
</form>
Run Code Online (Sandbox Code Playgroud)
在代码隐藏文件中:
protected void Button1_Click(object sender,EventArgs e){
Server.Transfer("Default2.aspx ? name =roseline & password = pass@123");
}
Run Code Online (Sandbox Code Playgroud)
Default2.aspx的编码:
在源视图中:
在代码隐藏文件中:
public string n, p;
protected void Page_Load(object sender, EventArgs e)
{
n = Request.QueryString["name"];
p = Request.QueryString["password"];
}
protected void Button1_Click(object sender, EventArgs e)
{
TextBox1.Text = n;
TextBox2.Text = p;
}
Run Code Online (Sandbox Code Playgroud)
当我执行上述应用程序时,我没有收到任何错误.
当我单击Default.aspx中的Button1时,它会显示Default2.aspx,但是当我单击按钮时,我没有得到TextBox中的值,TextBoxes是空的,没有任何值.
谁能告诉我我的编码有什么问题?为什么它没有在TextBoxes中显示值?
请帮帮我!
提前致谢!
我Page N of M在水晶报告中添加了特殊字段.我想在最后一页和当只有一页时禁止这个字段.
例如,如果只有1页,则Page N of M不应显示该字段.如果有5页,Page N of M则只应显示前4页的字段.
我应该在抑制条件下给予什么来抑制这个字段?