请更正此代码 [英] please Correct this code

查看:78
本文介绍了请更正此代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

public partial class GridViewCellsEdit : System.Web.UI.Page
{
    private const int _firstEditCellIndex = 2;

    #region Page Load
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            _sampleData = null;
            this.GridView1.DataSource = _sampleData;
            this.GridView1.DataBind();
        }

推荐答案

那只是一个没有问题的代码转储-我们不知道它应该做什么,所以我们没有办法告诉它做错了什么.

我们只需要相关的代码片段,而不是整个代码.但是,我们确实需要了解您遇到的实际问题是什么.

使用改善问题"小部件来编辑您的问题并提供更好的信息.
That is just a code dump without a question - we have no idea what it is supposed to do, so we have no way of telling what it is doing wrong.

We only need relevant code fragments, not the whole code. But we do need some idea of what the actual problem you are having is.

Use the "Improve question" widget to edit your question and provide better information.


在您的代码中,您错过了_sampleData的定义. _sampleData是什么类型?
From your code you have missed the definition of _sampleData. what type is _sampleData?


仍然没有更新?

请给我们您收到的错误,以便我们为您解决问题.
Still no update?

Please give us the error you are receiving so we could help you with your problem.


这篇关于请更正此代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆