开发者

Unable to call update method on a datasource

开发者 https://www.devze.com 2023-03-19 16:18 出处:网络
I have a simple SQLDatasource that I have created in asp.net. the datasorce is calling stored procedures for both insert and select. the bound data controls are in a formview but the data source is ou

I have a simple SQLDatasource that I have created in asp.net. the datasorce is calling stored procedures for both insert and select. the bound data controls are in a formview but the data source is outside of the formview. I am attempting to call the update method when the save button is called. But when I run the page, I am getting the error: error BC30451: 'SqlValuations' is not declared. It开发者_运维技巧 may be inaccessible due to its protection level.

My code is very simple.

Public Sub Save_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Save.Click
      SqlValuations.Update()
End Sub

what am I missing?

0

精彩评论

暂无评论...
验证码 换一张
取 消