Click here to Skip to main content
15,895,799 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: add textbox to image Pin
mehrnoosh21-Nov-09 20:21
mehrnoosh21-Nov-09 20:21 
AnswerRe: add textbox to image Pin
Abhijit Jana21-Nov-09 19:54
professionalAbhijit Jana21-Nov-09 19:54 
AnswerRe: add textbox to image Pin
April Fans24-Nov-09 0:56
April Fans24-Nov-09 0:56 
GeneralRe: add textbox to image Pin
mehrnoosh24-Nov-09 21:43
mehrnoosh24-Nov-09 21:43 
QuestionMaxlength property in Textbox does not work Pin
nour12321-Nov-09 4:15
nour12321-Nov-09 4:15 
AnswerRe: Maxlength property in Textbox does not work Pin
Abhishek Sur21-Nov-09 5:49
professionalAbhishek Sur21-Nov-09 5:49 
GeneralRe: Maxlength property in Textbox does not work Pin
nour12321-Nov-09 23:08
nour12321-Nov-09 23:08 
QuestionObout grid with Row Template failed to save Pin
alaminfad20-Nov-09 23:42
alaminfad20-Nov-09 23:42 
Hi All

I’ve used Obout grid with Row Template,It displays the data from the database fine, when I click edit the edit template appears when I make some changes and click save this error appears

***********************************************************************
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation
***********************************************************************

This property helped me stopping that message from appearing again
<pages enableEventValidation="false" >

But then the changes are not reflected to DB ,when I debugged the following code I found out that the Event [e] which was supposed to hold the new(changed) data is holding the old data why? How to fix that? :
-----------------------------------------------------------------------
Sub UpdateRecord(ByVal sender As Object, ByVal e As Obout.Grid.GridRecordEventArgs)
Dim myConn As SqlConnection = New SqlConnection("Data Source=GP10;Initial Catalog=Integration;Integrated Security=True")
myConn.Open()

Dim m = e.Record("EmployeeID")
Dim mm = e.Record("EmployeeNameA")
Dim myComm As SqlCommand = New SqlCommand("UPDATE Employees SET APUsername=@APUsername, AccountNumber = @AccountNumber, EmployeeNameA=@EmployeeNameA, HasPC=@HasPC, Manager = @Manager WHERE EmployeeID = @EmployeeID", myConn)
myComm.Parameters.Add("@APUsername", System.Data.SqlDbType.VarChar).Value = e.Record("APUsername")
myComm.Parameters.Add("@AccountNumber", System.Data.SqlDbType.VarChar).Value = e.Record("AccountNumber")
myComm.Parameters.Add("@EmployeeNameA", System.Data.SqlDbType.NVarChar).Value = e.Record("EmployeeNameA")
myComm.Parameters.Add("@HasPC", System.Data.SqlDbType.Bit).Value = e.Record("HasPC")
myComm.Parameters.Add("@Manager", System.Data.SqlDbType.VarChar).Value = e.Record("Manager")
myComm.Parameters.Add("@EmployeeID", System.Data.SqlDbType.NVarChar).Value = e.Record("EmployeeID")
myComm.ExecuteNonQuery()
myComm.Dispose()
myConn.Close()
End Sub

-----------------------------------------------------------------------
AnswerRe: Obout grid with Row Template failed to save Pin
Abhijit Jana21-Nov-09 19:56
professionalAbhijit Jana21-Nov-09 19:56 
QuestionCNIC Validation Pin
sparlay_pk20-Nov-09 23:34
sparlay_pk20-Nov-09 23:34 
AnswerRe: CNIC Validation Pin
Abhishek Sur21-Nov-09 5:44
professionalAbhishek Sur21-Nov-09 5:44 
QuestionUpload file without file uploade control Pin
lrsalunkhe20-Nov-09 23:33
lrsalunkhe20-Nov-09 23:33 
AnswerRe: Upload file without file uploade control Pin
sashidhar21-Nov-09 0:44
sashidhar21-Nov-09 0:44 
AnswerRe: Upload file without file uploade control Pin
Abhishek Sur21-Nov-09 5:40
professionalAbhishek Sur21-Nov-09 5:40 
AnswerRe: Upload file without file uploade control Pin
Abhijit Jana21-Nov-09 19:58
professionalAbhijit Jana21-Nov-09 19:58 
AnswerRe: Upload file without file uploade control Pin
April Fans24-Nov-09 0:48
April Fans24-Nov-09 0:48 
Questionsending mails through webservices Pin
shankbond20-Nov-09 22:54
shankbond20-Nov-09 22:54 
AnswerRe: sending mails through webservices Pin
sashidhar20-Nov-09 23:04
sashidhar20-Nov-09 23:04 
GeneralRe: sending mails through webservices Pin
shankbond21-Nov-09 0:40
shankbond21-Nov-09 0:40 
GeneralRe: sending mails through webservices Pin
sashidhar21-Nov-09 0:59
sashidhar21-Nov-09 0:59 
GeneralRe: sending mails through webservices Pin
shankbond21-Nov-09 1:09
shankbond21-Nov-09 1:09 
GeneralRe: sending mails through webservices Pin
sashidhar21-Nov-09 1:20
sashidhar21-Nov-09 1:20 
GeneralRe: sending mails through webservices Pin
sashidhar21-Nov-09 1:23
sashidhar21-Nov-09 1:23 
GeneralRe: sending mails through webservices Pin
shankbond21-Nov-09 2:27
shankbond21-Nov-09 2:27 
GeneralRe: sending mails through webservices Pin
shankbond24-Nov-09 20:58
shankbond24-Nov-09 20:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.