Re: Catching Sql Expection and display in Textbox
Hi,I havent used catch (sqlexpection) before so i wouldnt know how to write the code to catch the error.This isnt a user application , this app will stay with dev team. But taking your opinion into...
View ArticleRe: Catching Sql Expection and display in Textbox
Hi,And the problem is ? Using catch (SqlException ex) doesn't work? You have to mention a variable name if you want to do something about that...Ah catch will be entered only if an exception is thrown....
View ArticleCatching Sql Expection and display in Textbox
I'm Trying to catch the result from the SP to display in the front end... Currently My code looks like the following.....Store Procedure... INSERT INTO [Table]...
View ArticleRe: Catching Sql Expection and display in Textbox
Hi Maesto10,Based on your requirement, I think you could modify your code like below:try { //Your code } catch(SqlException ex) { MessageBox.Show("there was an issue!"); } catch(Exception ex) {...
View Article