Re: Binding C1WebDataSet to a Webtextbox

Legacy

A description has not yet been added to this group.

Binding C1WebDataSet to a Webtextbox

  • rated by 0 users
  • This post has 5 Replies |
  • 0 Followers
  • Hi,

    I have been using the Winforms part of the C1 data controls for a while and
    would like to design a new Web project of the same type.

    I have gone through the examples, all of them uses grids to bind the
    dataset. How do i bind a column in a webdataset to the text box in my
    project. I tried whatever properties of the webtext and c1dataset, but still
    no luck.

    Any help would be appreciated very much.

    kesk
  • Hi kesk,
     
    I'm not an expert in ASP.NET. So, I may miss something. But I don't
    know any simple controls, except lists and AdRotators, which can be
    bound to a datasource. There is no concept of the PropertyManagers
    in ASP.NET. You have to set/get the value of a TextBox web server
    control manually. Again, I may be wrong because I don't know much
    about that stuff.
     
    Regards,
     
    -Andrey
     
    <kesk> wrote in message news:185211@test.componentone.com...
    Hi,

    I have been using the Winforms part of the C1 data controls for a while and
    would like to design a new Web project of the same type.

    I have gone through the examples, all of them uses grids to bind the
    dataset. How do i bind a column in a webdataset to the text box in my
    project. I tried whatever properties of the webtext and c1dataset, but still
    no luck.

    Any help would be appreciated very much.

    kesk

    http://home.componentone.com/cs/forums/185211/ShowPost.aspx

  • Dear Andrey,

    Thanks for the response, but i can do it with the MS dataset. So it should
    be possible with the C1Dataset also, only thing is i dont exactly know which
    part of the properties i should use.

    kesk


    <C1_AndreyD> wrote in message news:185390@test.componentone.com...
    Hi kesk,

    I'm not an expert in ASP.NET. So, I may miss something. But I don't
    know any simple controls, except lists and AdRotators, which can be
    bound to a datasource. There is no concept of the PropertyManagers
    in ASP.NET. You have to set/get the value of a TextBox web server
    control manually. Again, I may be wrong because I don't know much
    about that stuff.

    Regards,

    -Andrey

    <kesk> wrote in message news:185211@test.componentone.com...
    Hi,

    I have been using the Winforms part of the C1 data controls for a while and
    would like to design a new Web project of the same type.

    I have gone through the examples, all of them uses grids to bind the
    dataset. How do i bind a column in a webdataset to the text box in my
    project. I tried whatever properties of the webtext and c1dataset, but still
    no luck.

    Any help would be appreciated very much.

    kesk


    http://home.componentone.com/cs/forums/185211/ShowPost.aspx





    http://home.componentone.com/cs/forums/185211/ShowPost.aspx#185390
  • I'm sorry. Could you please send me a small sample where a column of the
    MS dataset is bound to a simple control, such as TextBox. I have probably
    omitted something important in ASP.NET.
     
    Thanks in advance.
     
    -Andrey
     
    <kesk> wrote in message news:185573@test.componentone.com...
    Dear Andrey,

    Thanks for the response, but i can do it with the MS dataset. So it should
    be possible with the C1Dataset also, only thing is i dont exactly know which
    part of the properties i should use.

    kesk


    <C1_AndreyD> wrote in message news:185390@test.componentone.com...
    Hi kesk,

    I'm not an expert in ASP.NET. So, I may miss something. But I don't
    know any simple controls, except lists and AdRotators, which can be
    bound to a datasource. There is no concept of the PropertyManagers
    in ASP.NET. You have to set/get the value of a TextBox web server
    control manually. Again, I may be wrong because I don't know much
    about that stuff.

    Regards,

    -Andrey

    <kesk> wrote in message news:185211@test.componentone.com...
    Hi,

    I have been using the Winforms part of the C1 data controls for a while and
    would like to design a new Web project of the same type.

    I have gone through the examples, all of them uses grids to bind the
    dataset. How do i bind a column in a webdataset to the text box in my
    project. I tried whatever properties of the webtext and c1dataset, but still
    no luck.

    Any help would be appreciated very much.

    kesk


    http://home.componentone.com/cs/forums/185211/ShowPost.aspx





    http://home.componentone.com/cs/forums/185211/ShowPost.aspx#185390

    http://home.componentone.com/cs/forums/185390/ShowPost.aspx#185573

  • sol.zip
    Hello Mr Andrey,

    Find attached a sample program which is working with me. Possibly you might
    have a problem when you open the project that cant find a websolution 'sol',
    but i am sure you can solve it.

    kesk


    <C1_AndreyD> wrote in message news:185594@test.componentone.com...
    I'm sorry. Could you please send me a small sample where a column of the
    MS dataset is bound to a simple control, such as TextBox. I have probably
    omitted something important in ASP.NET.

    Thanks in advance.

    -Andrey
  • Thank you very much for your sample. It is possible to use a C1WebDataSet
    instead of the standard dataset component on that web page. For example,
    you may put C1SchemaDef and C1WebDataSet components on a web page
    and adjust their properties. After that, please replace
     
    Text='<%# DataBinder.Eval(Ds1, "Tables[Customers].DefaultView.[0].CustomerID", "{0}") %>'
     
    and
     
    Text='<%# DataBinder.Eval(Ds1, "Tables[Customers].DefaultView.[0].City", "{0}") %>'
    with two following fragments, correspondingly:
     
    Text='<%# DataBinder.Eval(C1WebDataSet1.TableViews("Customers").Rows(0).DataItem, "CustomerID", "{0}") %>
     
    Text='<%# DataBinder.Eval(C1WebDataSet1.TableViews("Customers").Rows(0).DataItem, "City", "{0}") %>
     
     
    Regards,
     
    -Andrey
     
    <kesk> wrote in message news:185631@test.componentone.com...
    Hello Mr Andrey,

    Find attached a sample program which is working with me. Possibly you might
    have a problem when you open the project that cant find a websolution 'sol',
    but i am sure you can solve it.

    kesk


    <C1_AndreyD> wrote in message news:185594@test.componentone.com...
    I'm sorry. Could you please send me a small sample where a column of the
    MS dataset is bound to a simple control, such as TextBox. I have probably
    omitted something important in ASP.NET.

    Thanks in advance.

    -Andrey

    http://home.componentone.com/cs/forums/185594/ShowPost.aspx#185631

Page 1 of 1 (6 items)