Click here to Skip to main content
16,004,828 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: AutoExtenderControl in ASP.NET Pin
Blue_Boy9-Sep-07 14:33
Blue_Boy9-Sep-07 14:33 
QuestionASP.NET generates absolute virtual path to WebResource.axd Pin
RamonCar9-Sep-07 11:44
RamonCar9-Sep-07 11:44 
QuestionSession variables Pin
SLG319-Sep-07 8:56
SLG319-Sep-07 8:56 
AnswerRe: Session variables Pin
Pete O'Hanlon9-Sep-07 9:07
mvePete O'Hanlon9-Sep-07 9:07 
GeneralRe: Session variables Pin
SLG319-Sep-07 9:33
SLG319-Sep-07 9:33 
GeneralRe: Session variables Pin
Chetan Patel9-Sep-07 21:13
Chetan Patel9-Sep-07 21:13 
GeneralRe: Session variables Pin
SLG3110-Sep-07 2:22
SLG3110-Sep-07 2:22 
Questionchange error exception Pin
hardyyanto9-Sep-07 4:42
hardyyanto9-Sep-07 4:42 
helo all...,

i have make register and display in formview(insert mode) with usesqlsource1. when customer register a same userid, the error is
"Violation of PRIMARY KEY constraint 'PK_user'. Cannot insert duplicate key in object 'dbo.user'.
The statement has been terminated."

now i want to change that error, i put a errorlabel. i want errorlabel show "sorry, your id has been use.please use other id."

my code is:

Protected Sub SqlDataSource1_Inserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs) Handles SqlDataSource1.Inserted
Dim label As Label = Me.FormView1.FindControl("label1")
If Not e.Exception Is Nothing Then
label.Text = "sorry, your id has been use.please use other id."
e.ExceptionHandled = True
End If
End Sub

the label is not show anything when i insert two same userid..
which is wrong?
plss.. help...
AnswerRe: change error exception Pin
Blue_Boy9-Sep-07 11:48
Blue_Boy9-Sep-07 11:48 
GeneralRe: change error exception Pin
hardyyanto9-Sep-07 17:12
hardyyanto9-Sep-07 17:12 
GeneralRe: change error exception Pin
Blue_Boy9-Sep-07 20:49
Blue_Boy9-Sep-07 20:49 
QuestionDownloading file in firefox Pin
Mr.Sam9-Sep-07 3:12
Mr.Sam9-Sep-07 3:12 
AnswerRe: Downloading file in firefox Pin
Christian Graus9-Sep-07 3:51
protectorChristian Graus9-Sep-07 3:51 
GeneralRe: Downloading file in firefox [modified] Pin
Mr.Sam9-Sep-07 4:13
Mr.Sam9-Sep-07 4:13 
GeneralRe: Downloading file in firefox Pin
Christian Graus9-Sep-07 5:40
protectorChristian Graus9-Sep-07 5:40 
GeneralRe: Downloading file in firefox Pin
Mr.Sam9-Sep-07 5:56
Mr.Sam9-Sep-07 5:56 
GeneralRe: Downloading file in firefox Pin
Christian Graus9-Sep-07 6:41
protectorChristian Graus9-Sep-07 6:41 
Questionsending mail Pin
garga19-Sep-07 1:46
garga19-Sep-07 1:46 
AnswerRe: sending mail Pin
Christian Graus9-Sep-07 2:41
protectorChristian Graus9-Sep-07 2:41 
QuestionUnmatched records from DataTables Pin
jayarajmrj8-Sep-07 20:28
jayarajmrj8-Sep-07 20:28 
Questionproblem with passing values from webform class to test.vb class Pin
MD128-Sep-07 19:58
MD128-Sep-07 19:58 
AnswerRe: problem with passing values from webform class to test.vb class Pin
Christian Graus9-Sep-07 2:44
protectorChristian Graus9-Sep-07 2:44 
GeneralRe: problem with passing values from webform class to test.vb class Pin
MD129-Sep-07 20:58
MD129-Sep-07 20:58 
AnswerRe: problem with passing values from webform class to test.vb class Pin
John-ph9-Sep-07 2:49
John-ph9-Sep-07 2:49 
QuestionAjaxPro Library and HTML problem .??? [modified] Pin
devboycpp8-Sep-07 5:23
devboycpp8-Sep-07 5:23 

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.