السلام عليكم .......اود طرح مشكلة وهي في حالة ضغط زر التحديث( حفظ التعديلRowUpdating )في ال Grid View
Protected Sub GV_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GV.RowUpdating
Dim TextId As TextBox = GV.DataKeys(e.RowIndex).Value
Dim TextAddress As TextBox = CType(GV.Rows(e.RowIndex).Cells(1).Controls(1), TextBox)
If (da.UpdateText(TextId, TextAddress) > 0) Then // UpdateText(TextId, TextAddress) دالة في الكلاس
GV.EditIndex = -1
DataBind()
End If
End Sub
ورسالة الخطاء
Argument 'Prompt' cannot be converted to type 'String'.
السلام عليكم .......اود طرح مشكلة وهي في حالة ضغط زر التحديث
( حفظ التعديلRowUpdating )
في ال Grid View
Protected Sub GV_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GV.RowUpdating
Dim TextId As TextBox = GV.DataKeys(e.RowIndex).Value
Dim TextAddress As TextBox = CType(GV.Rows(e.RowIndex).Cells(1).Controls(1), TextBox)
If (da.UpdateText(TextId, TextAddress) > 0) Then
/////////////////////// UpdateText(TextId, TextAddress) دالة في الكلاس
GV.EditIndex = -1
DataBind()
End If
End Sub
ورسالة الخطاء
Argument 'Prompt' cannot be converted to type 'String'.