473,396 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Confirm after saving (asp.net)

Hi all,
I need your help. I have an asp.net page with a simple component. After
users hit the Save button, I like to confirm them with a message including
the record #. What is the best way to do this? Thanks.
--CalSun
Dec 1 '05 #1
7 1350
You could use a bit of JavaScript to pop up an alert, as detailed here:
http://SteveOrr.net/articles/ClientSideSuite.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"CalSun" <so*****@somecom.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi all,
I need your help. I have an asp.net page with a simple component. After
users hit the Save button, I like to confirm them with a message including
the record #. What is the best way to do this? Thanks.
--CalSun

Dec 1 '05 #2
Thanks Steve.
I am sorry that I was not clear myself.

After users click on the Save button, they confirm 'Yes'. Server side will
process the users' request and right here, I'd like to prompt the users
something like: "Your record number is: RecNum". RecNum varies on each
request.

--CalSun

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eN**************@TK2MSFTNGP09.phx.gbl...
You could use a bit of JavaScript to pop up an alert, as detailed here:
http://SteveOrr.net/articles/ClientSideSuite.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"CalSun" <so*****@somecom.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi all,
I need your help. I have an asp.net page with a simple component. After
users hit the Save button, I like to confirm them with a message
including the record #. What is the best way to do this? Thanks.
--CalSun


Dec 1 '05 #3
Ram
You can have a literal control on your asp.net page and on server after save
generate a little javascript alert statement on the fly and set it to literal
control text

Thanks,
<Ram/>
"CalSun" wrote:
Hi all,
I need your help. I have an asp.net page with a simple component. After
users hit the Save button, I like to confirm them with a message including
the record #. What is the best way to do this? Thanks.
--CalSun

Dec 1 '05 #4
Yes, I understood your request.
Did you understand my suggestion? If not, you should read the article which
provides multiple possible solutions.
http://SteveOrr.net/articles/ClientSideSuite.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"CalSun" <so*****@somecom.com> wrote in message
news:ec**************@tk2msftngp13.phx.gbl...
Thanks Steve.
I am sorry that I was not clear myself.

After users click on the Save button, they confirm 'Yes'. Server side will
process the users' request and right here, I'd like to prompt the users
something like: "Your record number is: RecNum". RecNum varies on each
request.

--CalSun

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eN**************@TK2MSFTNGP09.phx.gbl...
You could use a bit of JavaScript to pop up an alert, as detailed here:
http://SteveOrr.net/articles/ClientSideSuite.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"CalSun" <so*****@somecom.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi all,
I need your help. I have an asp.net page with a simple component. After
users hit the Save button, I like to confirm them with a message
including the record #. What is the best way to do this? Thanks.
--CalSun



Dec 1 '05 #5
Thanks.
--CalSun
"Ram" <Ra*@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
You can have a literal control on your asp.net page and on server after
save
generate a little javascript alert statement on the fly and set it to
literal
control text

Thanks,
<Ram/>
"CalSun" wrote:
Hi all,
I need your help. I have an asp.net page with a simple component. After
users hit the Save button, I like to confirm them with a message
including
the record #. What is the best way to do this? Thanks.
--CalSun

Dec 1 '05 #6
Thanks.
I understand your article and it's a great one indeed. I bookmarked the
article for further references, but I use Ram's solution for just now.
--CalSun

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:et**************@TK2MSFTNGP09.phx.gbl...
Yes, I understood your request.
Did you understand my suggestion? If not, you should read the article
which provides multiple possible solutions.
http://SteveOrr.net/articles/ClientSideSuite.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"CalSun" <so*****@somecom.com> wrote in message
news:ec**************@tk2msftngp13.phx.gbl...
Thanks Steve.
I am sorry that I was not clear myself.

After users click on the Save button, they confirm 'Yes'. Server side
will process the users' request and right here, I'd like to prompt the
users something like: "Your record number is: RecNum". RecNum varies on
each request.

--CalSun

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eN**************@TK2MSFTNGP09.phx.gbl...
You could use a bit of JavaScript to pop up an alert, as detailed here:
http://SteveOrr.net/articles/ClientSideSuite.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"CalSun" <so*****@somecom.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi all,
I need your help. I have an asp.net page with a simple component. After
users hit the Save button, I like to confirm them with a message
including the record #. What is the best way to do this? Thanks.
--CalSun



Dec 1 '05 #7
Ram
if you are using any user input in the javascript that gets created Just make
sure you validate it before writing to literal control, so that you won't
expose yourself to cross-site scripting problem
Thanks,
<Ram/>
"CalSun" wrote:
Thanks.
I understand your article and it's a great one indeed. I bookmarked the
article for further references, but I use Ram's solution for just now.
--CalSun

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:et**************@TK2MSFTNGP09.phx.gbl...
Yes, I understood your request.
Did you understand my suggestion? If not, you should read the article
which provides multiple possible solutions.
http://SteveOrr.net/articles/ClientSideSuite.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"CalSun" <so*****@somecom.com> wrote in message
news:ec**************@tk2msftngp13.phx.gbl...
Thanks Steve.
I am sorry that I was not clear myself.

After users click on the Save button, they confirm 'Yes'. Server side
will process the users' request and right here, I'd like to prompt the
users something like: "Your record number is: RecNum". RecNum varies on
each request.

--CalSun

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eN**************@TK2MSFTNGP09.phx.gbl...
You could use a bit of JavaScript to pop up an alert, as detailed here:
http://SteveOrr.net/articles/ClientSideSuite.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"CalSun" <so*****@somecom.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
> Hi all,
> I need your help. I have an asp.net page with a simple component. After
> users hit the Save button, I like to confirm them with a message
> including the record #. What is the best way to do this? Thanks.
> --CalSun
>



Dec 1 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Logger | last post by:
Help, I’m trying to implement a confirm button on an asp.net page. I have it attached to a asp:button control. In the button1 click event I call the CreateConfirmBox subroutine. The Box comes...
0
by: Logger | last post by:
Help, I’m trying to implement a confirm button on an asp.net page. I got some useful help earlier but it’s not quite working yet. I have searched the newsgroups for past questions/answers but...
1
by: Hans | last post by:
Basically what I would like to do is my own confirm dialog so I can choose the text on the buttons etc. My code looks something like this today if (confirm("Do you want to save?")) //do some...
0
by: Joe Finsterwald | last post by:
Recently I needed to add a confirm to a LinkButton that called a JavaScript function on success, and did nothing on failure. I found documentation on adding a confirm, but not on how to place a...
13
by: Chris | last post by:
I can create Javascript confirm message boxes during page creation, etc adding them to the button attributes (many good posts on this!). But how can I add this event after the button is pressed? I...
3
by: Tarun Upadhyaya | last post by:
Hi, I am facing strange problem I read Scott mitchell's article about ASP.NET and javascript at ...
5
by: robert | last post by:
I have a dropdownlist with the autopostback set to true. I want the user to be confirm whether they do indeed want to change the value, which on post back fires a server side event...
8
by: rn5a | last post by:
I have gone through a no. of posts in this NewsGroup regarding my problem but alas, couldn't come across one which would have helped me in resolving the issue. My problem is this: An ASPX Form...
4
by: ChrisA | last post by:
I need to get the user to confirm a button push/postback with a popup from the browser, in ASP.NET 1.1. What's the right way to wire that up?? Thanks
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.