C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Binding C1WebDataSet to a Webtextbox

rated by 0 users
This post has 5 Replies | 0 Followers

Top 200 Contributor
Posts 25
kesk Posted: Wed, Aug 23 2006 2:00 AM
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
Top 10 Contributor
Posts 1,644
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

Top 200 Contributor
Posts 25
kesk replied on Thu, Aug 31 2006 7:01 AM
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
Top 10 Contributor
Posts 1,644
C1_AndreyD replied on Thu, Aug 31 2006 12:46 PM
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

Top 200 Contributor
Posts 25
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
Top 10 Contributor
Posts 1,644
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) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.