Click here to Skip to main content
15,889,859 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to push down the footer to bottom in master page Pin
cmk1-Jul-09 14:49
cmk1-Jul-09 14:49 
QuestionSession End Pin
zeeShan anSari1-Jul-09 3:22
zeeShan anSari1-Jul-09 3:22 
AnswerRe: Session End Pin
Manas Bhardwaj1-Jul-09 3:29
professionalManas Bhardwaj1-Jul-09 3:29 
GeneralRe: Session End Pin
zeeShan anSari1-Jul-09 3:31
zeeShan anSari1-Jul-09 3:31 
AnswerRe: Session End Pin
r a m e s h1-Jul-09 7:15
r a m e s h1-Jul-09 7:15 
AnswerRe: Session End Pin
Abhijit Jana1-Jul-09 8:08
professionalAbhijit Jana1-Jul-09 8:08 
QuestionError Pin
<<Tash18>>1-Jul-09 1:37
<<Tash18>>1-Jul-09 1:37 
AnswerRe: Error [modified] Pin
r a m e s h1-Jul-09 1:43
r a m e s h1-Jul-09 1:43 
The exception clearly says that you are violating primary key constraint.

A simple way is to put try catch statement aroung your table inserting code.

Then handle SqlException and check the value of the Number property of the SqlException object if it equals to 2627.
try
 {
  //your db insert code goes here

 }
catch(SqlException ex)
 {
   
    if (ex.Number.Equals(2627))   
    {
       // Display your error here
    }
}


modified on Wednesday, July 1, 2009 8:16 AM

GeneralRe: Error Pin
<<Tash18>>1-Jul-09 3:19
<<Tash18>>1-Jul-09 3:19 
AnswerRe: Error Pin
Manas Bhardwaj1-Jul-09 1:43
professionalManas Bhardwaj1-Jul-09 1:43 
GeneralRe: Error Pin
<<Tash18>>1-Jul-09 1:45
<<Tash18>>1-Jul-09 1:45 
GeneralRe: Error Pin
K03061-Jul-09 1:59
K03061-Jul-09 1:59 
GeneralRe: Error Pin
<<Tash18>>1-Jul-09 2:24
<<Tash18>>1-Jul-09 2:24 
QuestionSession closed Pin
zeeShan anSari1-Jul-09 1:33
zeeShan anSari1-Jul-09 1:33 
AnswerRe: Session closed Pin
SeMartens1-Jul-09 1:35
SeMartens1-Jul-09 1:35 
GeneralRe: Session closed Pin
zeeShan anSari1-Jul-09 1:44
zeeShan anSari1-Jul-09 1:44 
GeneralRe: Session closed Pin
zeeShan anSari1-Jul-09 1:54
zeeShan anSari1-Jul-09 1:54 
Questiondisplaying a pdf document using an Iframe Pin
LucBite1-Jul-09 1:13
LucBite1-Jul-09 1:13 
AnswerRe: displaying a pdf document using an Iframe Pin
koolprasad20031-Jul-09 1:24
professionalkoolprasad20031-Jul-09 1:24 
QuestionHow to Open a WebForm on Calendar_0nSelectionChanged Pin
vandanaconedify1-Jul-09 1:02
vandanaconedify1-Jul-09 1:02 
AnswerRe: How to Open a WebForm on Calendar_0nSelectionChanged Pin
r a m e s h1-Jul-09 1:39
r a m e s h1-Jul-09 1:39 
QuestionDataView error: Pin
padmanabhan N1-Jul-09 0:20
padmanabhan N1-Jul-09 0:20 
Questionhow to set Autopostback false on calendar_OnSelectionChanged Pin
vandanaconedify30-Jun-09 23:48
vandanaconedify30-Jun-09 23:48 
AnswerRe: how to set Autopostback false on calendar_OnSelectionChanged Pin
r a m e s h1-Jul-09 0:25
r a m e s h1-Jul-09 0:25 
GeneralRe: how to set Autopostback false on calendar_OnSelectionChanged Pin
r a m e s h1-Jul-09 0:27
r a m e s h1-Jul-09 0:27 

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.