This is a migrated thread and some comments may be shown as answers.

RadConfirm at runtime with VB.net

5 Answers 123 Views
Window
This is a migrated thread and some comments may be shown as answers.
Luiz
Top achievements
Rank 1
Luiz asked on 29 Nov 2010, 10:50 AM
Hi,

I´d like to get return of RadConfirm when Button NO was pressed.
How can I do that at runtime with VB.net?

Tks

Luiz

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 Nov 2010, 11:46 AM
Hello,


Radconfirm is just as standard confirm which works on the client. Therefore, to perform any actions on the server side after you select Yes/No, you need to make a postback to the server.

Checkout the following forum link which discusses how to show radconfrm from server side.
radconfirm from server

[Note: As an alternative you can also perform an ajax request instead of using __doPostBack javaScript built-in function. You can do this by using the RadAjaxManager control's ajaxRequest method]


-Shinu.
0
Luiz
Top achievements
Rank 1
answered on 29 Nov 2010, 01:18 PM
Hi Shinu,

I´m a novice in ASP.NET Web, actually I develop with VB.net and Winform.
I understood but can you send me and example in VB.net to clarify me?

For Example:
If MessageBox.Show("Confirm Delete?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2,MessageBoxOptions.DefaultDesktopOnly, False) = Windows.Forms.DialogResult.Yes Then
   DeleteCli()
else
   ExitSub

Tks

Luiz
0
Georgi Tunev
Telerik team
answered on 30 Nov 2010, 02:37 PM
Hi Luiz,

Basically, what you need cannot be directly achieved in WebForms scenario because of the client - server specifics.I believe that this forum thread will provide more information on the subject.

I would suggest to check the following Code Library that was submitted by another customer of ours:
http://www.telerik.com/community/code-library/aspnet-ajax/window/server-side-msgbox-user-control-for-radconfirm-radalert-and-radprompt.aspx#752958

Kind regards,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Luiz
Top achievements
Rank 1
answered on 30 Nov 2010, 08:59 PM
Hi,

Unfortunatelly I need to use it in VB.net because my logic are focused on it.
Is there a way to call this code in ASP inside Code behind?

Tks

Luiz
0
Georgi Tunev
Telerik team
answered on 02 Dec 2010, 03:38 PM
Hi Luiz,

I'm afraid this is not possible.

All the best,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Window
Asked by
Luiz
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Luiz
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or