User Profile

Collapse

Profile Sidebar

Collapse
zhshqzyc
zhshqzyc
Last Activity: Feb 26 '08, 07:24 PM
Joined: Feb 8 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • zhshqzyc
    replied to remove other DataRows from your DataTable
    in .NET
    I need more details because I tried to deleted the extra lines but the deleted parts are still displayed. Why? Thanks for your help.



    Code:
    protected void Button1_Click(object sender, EventArgs e)
            {
                DataTable t1 = new DataTable();
                t1 = GetTable();
                for (int i = 3; i < t1.Rows.Count; i++)
                    t1.Rows.RemoveAt(i);
    ...
    See more | Go to post

    Leave a comment:


  • zhshqzyc
    started a topic Missing DataView in toolbox
    in .NET

    Missing DataView in toolbox

    I am using vwd 2008 express.
    I don't see DataView in the toolbox.
    I tried to choose it but never get it added.

    Thanks for help.
    See more | Go to post

  • zhshqzyc
    started a topic remove other DataRows from your DataTable
    in .NET

    remove other DataRows from your DataTable

    remove other DataRows from your DataTable

    Hi, I want to display the top three rows of the table.
    So I just want to remove the other rows.
    Suppose the datas are not from a database.
    How to do it?

    Thanks
    See more | Go to post

  • zhshqzyc
    replied to Passing dataset between ASP.NET Web Forms
    in .NET
    Thanks!
    I will try it.
    See more | Go to post

    Leave a comment:


  • zhshqzyc
    replied to Paging,Gridview is invisible
    in .NET
    I just add
    Code:
    <EmptyDataRowStyle BackColor="Transparent"  HorizontalAlign="Center" />
             <PagerStyle BackColor="Yellow" />
             <PagerSettings Mode="NumericFirstLast" />
    It is still invisible.
    I got rid of "protected void Page_Load(objec t sender, EventArgs e)".
    Is it a cause?

    Could uou please directly point out what...
    See more | Go to post

    Leave a comment:


  • zhshqzyc
    started a topic Paging,Gridview is invisible
    in .NET

    Paging,Gridview is invisible

    Hi, I am using the paging skills for my page.
    I'm doing manual databinding (that is, setting the DataSource property, and then calling DataBind()) instead of automatic databinding. So I manually handle events for paging. But the page is invisible.
    Thanks for your help.

    Code:
    protected void GridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
            {
                
                DataSet myDataSet
    ...
    See more | Go to post

  • zhshqzyc
    started a topic Passing dataset between ASP.NET Web Forms
    in .NET

    Passing dataset between ASP.NET Web Forms

    I am going to past a dataset from First.aspx to Second.aspx.
    A whole table will be displayed on First.aspx and partial columns
    will be displayed on Second.aspx.
    First.aspx view in browser works well if I exclude Second.aspx. But when Second.aspx is included in the project, an error happens.
    I can't find what is wrong in my code.

    Code:
     System.NullReferenceException was unhandled by user code
    ...
    See more | Go to post

  • zhshqzyc
    replied to DataBind and GridView
    in .NET
    Thanks for your reply. I will study on the skills of dataset in Session state.
    It's brand new to me.
    See more | Go to post

    Leave a comment:


  • zhshqzyc
    started a topic DataBind and GridView
    in .NET

    DataBind and GridView

    Hi,

    I am going to create two aspx pages.
    The first page will display the whole content of a table which is from a DataSet.
    Code:
     
    DataSet myDataSet = new DataSet(); 
     try
            {
                myConnection.Open();
                // create the data
                GenerateDataSet(myDataSet, myConnection);
            }
            finally
            {
                myConnection.Close();
    ...
    See more | Go to post
No activity results to display
Show More
Working...