Response.Cookies["Name"].Value=userInfo[0].ToString();
在这句前面加上断点,命中的时候,在你的 userInfo 上点右键
选择快速监视(or 察看?)
可以看到你的userInfouserInfo[2].tostring()
的判断部分怎么不使用switch case?
在这句前面加上断点,命中的时候,在你的 userInfo 上点右键
选择快速监视(or 察看?)
可以看到你的userInfouserInfo[2].tostring()
的判断部分怎么不使用switch case?
解决方案 »
- ASP.NET里关于TreeView如何获取当前点击的节点?
- showModalDialog返回值问题?要疯了高手帮忙
- 如何实现树形列表(不是树形控件,是多列的列表),并且一次不是显示整个列表,需要层层展开
- TreeView页面之间传值问题
- 在VS2005中拖动login控件后不能自动生成MDB数据库的问题?
- 如何删除DataTable中的列或是DataGrid中自动绑定的列??
- Web.config设置问题(问题描述有点长,请大家耐心点,帮帮忙,谢谢)
- 留言板“检测到有潜在危险的 Request.Form 值。”??多谢各位
- 求高手解决一个问题~~~
- 文件下载问题!下载WORD文档后,在客户端打开后是一堆乱码,请高手指教,代码如下
- 困扰了几天的问题:有关xml提交checkbox值的问题!100分问题解决马上结贴!急!!!!
- HighChats 饼图连接数据库错误,求大神帮助
看看这个函数
顺便展示一下你的代码
看看我还想说什么 :)
放心, 绝对不会夸你的 :)
using System.Data.SqlClient;
using System.Data;namespace AAASoft
{
class test
{
static int Main( )
{
//ÕâÀïдÄãµÄÁ¬½Ó×Ö·û´®
string connectionString = @""; SqlConnection conn = new SqlConnection(connectionString);
string cmdString = @"select * from ManagePeople where username=@username and password=@password";
SqlDataAdapter ad = new SqlDataAdapter(cmdString , conn); ad.SelectCommand.Parameters.Add("@username",SqlDbType.Char,20);
ad.SelectCommand.Parameters.Add("@password",SqlDbType.Char,20);
ad.SelectCommand.Parameters["@username"].Value="meyer";
ad.SelectCommand.Parameters["@password"].Value="meyer";
DataSet ds = new DataSet();
ad.Fill(ds); string row = ds.Tables[0].Rows[0]["username"].ToString();
string Column = ds.Tables[0].Columns["username"].ToString();
Console.WriteLine(row);
Console.WriteLine(Column);
return 0;
}
}
}