[基础问题]查询字符串
albumId = Request.QueryString[ "AlbumID "];
ownerName = Request.QueryString[ "OwnerName "];
设断点后,Request.QueryString 值为 aa.aspx?AlbumID=1&OwnerName=a
为什么 albumId 和 ownerName 值都为 null 呢 ???
我很菜,谢谢大家!
[解决办法]
应当是两个&&,
aa.aspx?AlbumID=1&&OwnerName=a
albumId = Request.QueryString[ "AlbumID "].ToString;
ownerName = Request.QueryString[ "OwnerName "].ToString;