Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Simple Web Form (http://www.velocityreviews.com/forums/t381392-simple-web-form.html)

John Rivers 10-25-2006 05:48 PM

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


=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?= 10-25-2006 06:21 PM

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
>
>


bruce barker \(sqlwork.com\) 10-25-2006 07:55 PM

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.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57