我现在的程序里App_Data中有aspnetdb.mdf数据库,因为在程序中没有用到这个库中的内容,也没有用到用户管理,我现在想把它卸载掉~可是每次在程序运行之后就系统又自动的加上了-_-#,哪位高手知道怎么卸载就说下,谢了~~~
解决方案 »
- javascript脚本方法中如何引用.js文件中的方法?
- Ajax.dll调用问题。
- 请问Repeater中的HeaderTemplate为什么不能输出值?
- 多种web技术结合的问题,希望大家帮忙想想,多提建议,谢谢!
- 将普通的html控件转换成服务器控件后用findcontrol函数后如何做类型转换?
- 打包后的安装位置,能不能自己设置到D盘或者E盘???谢谢!
- 能不能做到一个页面的两个自定义控件不相互影响??
- ★★★★★关于DataGrid超连接传递2个或2个以上差数问题!急啊!!★★★★★
- 数据不能写入,页面没有出错提示,就是数据库里面没有任何信息。
- 我是初学asp.net的菜鸟,请问各位高手一些简单问题,谢谢!
- 请帮忙看看这个代码哪里有问题啊?
- 异构数据集成,高分求救!
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<connectionStrings>
<add name="***" connectionString="Data Source=**;Initial Catalog=*;Persist Security Info=True;User ID=*;Password=*" providerName="System.Data.SqlClient"/>
</connectionStrings>
<appSettings/>
<system.web>
<authentication mode="None"/>
<customErrors mode="On" defaultRedirect="~/GenericErrorPage.aspx">
<error statusCode="403" redirect="~/Error.aspx"/>
<error statusCode="404" redirect="~/GenericErrorPage.aspx"/>
</customErrors>
<compilation debug="true"/>
</system.web>
</configuration>
可还是会自动的生成出来那个数据库!还有其他的什么功能会影响到这个数据库的自动生成吗?
login控件中的Button事件代码:
protected void LoginButton_Click(object sender, EventArgs e)
{
try
{
this.Response.Redirect("~/Default2.aspx", false);
}
catch
{
}
}
当页面跳转后,刷新工程目录后就会自动生成了一个ASPNETDB.MDF数据库.可是如果把代码中的try-catch块去掉:
protected void LoginButton_Click(object sender, EventArgs e)
{
this.Response.Redirect("~/Default2.aspx");
}
这样就不会自动生成了ASPNETDB.MDF数据库了,这是为什么???
protected void Button_Click(object sender, EventArgs e)
{
this.Response.Redirect("~/Default2.aspx", false);
}
则也不会自动生成ASPNETDB.MDF数据库了,这又是为什么???