![]() |
Simple Web Form
Hi
I am new to ASP.NET and I am trying to create a very simple form with one TextBox and one Button which will update one record The TextBox is data bound to: "select top 1 value from table" I am using SqlDataAdapter.Fill(DataSet) and TextBox.DataBind() I have setup the SqlDataAdapter UpdateCommand what do I do next? John |
RE: Simple Web Form
Have your code update the changed value from the databound TextBox into the
corresponding DataRow of your datasource, and pass it into the SqlDataAdapter's Update method. Peter -- Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com "John Rivers" wrote: > Hi > > I am new to ASP.NET and I am trying to create a very simple form > > with one TextBox and one Button > > which will update one record > > The TextBox is data bound to: "select top 1 value from table" > > I am using SqlDataAdapter.Fill(DataSet) and TextBox.DataBind() > > I have setup the SqlDataAdapter UpdateCommand > > what do I do next? > > John > > |
Re: Simple Web Form
textbox do not support 2-way databinding. they must be in a control that
does, say the DetailView or FormView classes. -- bruce (sqlwork.com) "John Rivers" <first10@btinternet.com> wrote in message news:1161798502.103343.226140@i42g2000cwa.googlegr oups.com... > Hi > > I am new to ASP.NET and I am trying to create a very simple form > > with one TextBox and one Button > > which will update one record > > The TextBox is data bound to: "select top 1 value from table" > > I am using SqlDataAdapter.Fill(DataSet) and TextBox.DataBind() > > I have setup the SqlDataAdapter UpdateCommand > > what do I do next? > > John > |
| All times are GMT. The time now is 03:43 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.