值不能为空。 参数名: String
protectedvoidPage_Load(objectsender,EventArgse){if(!IsPostBack){intsortid=int.Parse(R...
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack) {
int sortid = int.Parse(Request.QueryString["sortid"]);
ArticleSort articlesort = ArticleSortDAL.GetArticleSortByID(sortid);
this.tbSortid.Text = sortid.ToString();
this.tbName.Text = articlesort.Name;
this.tbDescription.Text = articlesort.Description;
this.tbName.Focus();
}
那个大虾指点一下应该怎么纠正啊…… 展开
{
if (!IsPostBack) {
int sortid = int.Parse(Request.QueryString["sortid"]);
ArticleSort articlesort = ArticleSortDAL.GetArticleSortByID(sortid);
this.tbSortid.Text = sortid.ToString();
this.tbName.Text = articlesort.Name;
this.tbDescription.Text = articlesort.Description;
this.tbName.Focus();
}
那个大虾指点一下应该怎么纠正啊…… 展开
展开全部
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack) {
if (Request.QueryString["sortid"]!=null)
{
int sortid = int.Parse(Request.QueryString["sortid"]);
ArticleSort articlesort = ArticleSortDAL.GetArticleSortByID(sortid);
this.tbSortid.Text = sortid.ToString();
this.tbName.Text = articlesort.Name;
this.tbDescription.Text = articlesort.Description;
this.tbName.Focus();
}
}
{
if (!IsPostBack) {
if (Request.QueryString["sortid"]!=null)
{
int sortid = int.Parse(Request.QueryString["sortid"]);
ArticleSort articlesort = ArticleSortDAL.GetArticleSortByID(sortid);
this.tbSortid.Text = sortid.ToString();
this.tbName.Text = articlesort.Name;
this.tbDescription.Text = articlesort.Description;
this.tbName.Focus();
}
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询