Hi all,
I am developing a web app.Using master pages. C# In it is a save method,
which retunrs true or false (saing to a sql server)
I want to notify the user of a save failure in two ways, check the error
from the SQL server if it is a duplicate key error, display a cutom message
to state such, if some other error, display some other custom error message.
Thanks
Robert 5 1179
Hello Robert,
And the question is.....?
RBHi all,
RB>
RBI am developing a web app.Using master pages. C# In it is a save
RBmethod,
RBwhich retunrs true or false (saing to a sql server)
RBI want to notify the user of a save failure in two ways, check the
RBerror
RBfrom the SQL server if it is a duplicate key error, display a cutom
RBmessage
RBto state such, if some other error, display some other custom error
RBmessage.
RBThanks
RBRobert
---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Look in the MSDN index for "validation server controls". In particular, I
would suggest a custom validator along with a ValidationSummary control.
Dale
--
Dale Preston
MCAD C#
MCSE, MCDBA
"Robert Bravery" wrote:
Hi all,
I am developing a web app.Using master pages. C# In it is a save method,
which retunrs true or false (saing to a sql server)
I want to notify the user of a save failure in two ways, check the error
from the SQL server if it is a duplicate key error, display a cutom message
to state such, if some other error, display some other custom error message.
Thanks
Robert
How can I notify users of this error, provising a suitable error message
that they will undersatand
Robert
"Michael Nemtsev" <ne*****@msn.comwrote in message
news:17***************************@msnews.microsof t.com...
Hello Robert,
And the question is.....?
RBHi all,
RB>
RBI am developing a web app.Using master pages. C# In it is a save
RBmethod,
RBwhich retunrs true or false (saing to a sql server)
RBI want to notify the user of a save failure in two ways, check the
RBerror
RBfrom the SQL server if it is a duplicate key error, display a cutom
RBmessage
RBto state such, if some other error, display some other custom error
RBmessage.
RBThanks
RBRobert
---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour
"At times one remains faithful to a cause only because its opponents do
not
cease to be insipid." (c) Friedrich Nietzsche
Robert,
In addition to the others, don't forget to these pages for your problem. http://ajax.asp.net/default.aspx?tabid=47
Cor
"Robert Bravery" <me@u.comschreef in bericht
news:e1****************@TK2MSFTNGP04.phx.gbl...
Hi all,
I am developing a web app.Using master pages. C# In it is a save method,
which retunrs true or false (saing to a sql server)
I want to notify the user of a save failure in two ways, check the error
from the SQL server if it is a duplicate key error, display a cutom
message
to state such, if some other error, display some other custom error
message.
Thanks
Robert
Hello Robert,
As i undestand u got the error that SQL returns u.
So just use any label to inform about error or javascript with window.alert
(your_message) or use custom form and show its via javascript's showDialogBox
RBHow can I notify users of this error, provising a suitable error
RBmessage that they will undersatand
RB>
RBRobert
RB>
RB"Michael Nemtsev" <ne*****@msn.comwrote in message
RBnews:17***************************@msnews.micros oft.com...
RB>
>Hello Robert,
And the question is.....?
RBHi all, RB> RBI am developing a web app.Using master pages. C# In it is a save RBmethod, RBwhich retunrs true or false (saing to a sql server) RBI want to notify the user of a save failure in two ways, check the RBerror RBfrom the SQL server if it is a duplicate key error, display a cutom RBmessage RBto state such, if some other error, display some other custom error RBmessage. RBThanks RBRobert --- WBR, Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour "At times one remains faithful to a cause only because its opponents do
RBnot
RB>
>cease to be insipid." (c) Friedrich Nietzsche
---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: lkrubner |
last post by:
This is a general computer question, but I'm writing in PHP so I'll
post this to comp.lang.php.
I've been writing a content management system. I've a Singleton object
that keeps track of all...
|
by: Steve |
last post by:
Hi;
I went to the microsoft site to try to find a guide to the error
messages that the jdbc drivers give ( for sqlserver 2000 ).
I had no luck.
Does anyone know if there is such a guide?
...
|
by: DataBard007 |
last post by:
Hello Access Gurus:
I use Win98SE and Access97.
I just built a simple Access97 application which holds all contact
information for my personal contacts, such as first name, last name,
address,...
|
by: Brian Conway |
last post by:
I have no idea what is going on. I have a Login screen where someone types
in their login information and this populates a datagrid based off of the
login. Works great in debug and test through...
|
by: Janning Vygen |
last post by:
Hi,
i have a question about how to handle postgresql constraint errors in
the client app. I found some mails in the archive about it, too. But
i have still so many questions about how to do it,...
|
by: Brian Tkatch |
last post by:
Server: DB2/SUN 8.1.6
Client: DB2 Connect Personal Edition (No 11)
<URL:ftp://ftp.software.ibm.com/ps/products/db2/fixes2/english-us/db2winIA32v8/fixpak/FP11_WR21365/FP11_WR21365_CONPE.exe>
...
|
by: lawrence k |
last post by:
I've made it habit to check all returns in my code, and usually, on
most projects, I'll have an error function that reports error messages
to some central location. I recently worked on a project...
|
by: hyperpau |
last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding.
I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com).
Ergo, I...
|
by: FutureShock |
last post by:
I am using a registration class to process a registration form and need
some opinions on returning error messages.
I am self referring the page on submit.
I would like to send each form field...
|
by: hyperpau |
last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding.
I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com).
Ergo, I...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |