Morning

am a beginner in (programming)asp.net(vb).Please help me with the code,After the user selected the value from the dropdownbox,and enter some in the textboxes,when the user click add entry(button),the values to be anded to the database and be displayed in the datagrid,for modification.

Thank you in Advance

I think you have found a solution.but,any way

I am assuming these dd,tb are not it the edittemplate of datagrid.

code looks like this

// FillDataGrid()

here you have total code for filling datagrid
like
connection,fill. etc..

in button click()
VALUE =val(dd1.selectedvalue)+val(tb1.text)
here write command obj update query by setting the required field with VALUE.
obj.ExecuteNonquery() will update the database.
the call again FillDataGrid()

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.