Web Forms :: Prompt A Msg With 'YES' And 'NO' Button?

Feb 3, 2010

how can i prompt a msg with 'YES' and 'NO' button. C#

View 5 Replies


Similar Messages:

ASP.NET PageMethods - Back Button Causing 'Authentication Required' Prompt

Oct 15, 2010

Since last week I've had a really odd issue with PageMethods and the back button which i've never seen before.

Essentially, I have a 'home page' which on document.ready (using jQuery), loads some data through PageMethods, and then renders a list - from which you can click through to a details page about the item. In general use, it works fine. However, using the back button after clicking through (ie: going back to the home page), it throws a PageMethods error. The browser's 'authentication required' prompt appears, and if you click cancel, the server returns a 401. The error returned by PageMethods on the client side is 'authentication failed'.

Just FYI, the application is using ASP.NET forms authentication. The weird thing is, this happens as soon as you click the link and click back. It's not like the authentication cookie has expired or anything, and if you click cancel when the prompt appears and refresh the page, it works fine. I just can't work out what is going on.

I've tried disabling caching on the page [as I thought it was something to down with some browsers' caches of the DOM), but the same thing happens.

One workaround i've had is to redirect the page to itself if the PageMethods error is 'authentication failed', which does work - but only when you cancel the authentication prompt. Obviously the prompt appears, which is not ideal.

I don't understand it, and the user is clearly authenticated. Does anyone have any idea which might be happening?

It's happening in Chrome, Firefox, and IE.

View 1 Replies

MVC :: Finding Dialog Prompt Out By Ajax When User Click On An Image Button?

Mar 27, 2011

i wish to have a dialog prompt out by ajax when user click on an image button. Currently i able to include a simple text field and get the user input like this:

[Code]....

[Code]....

View 3 Replies

AJAX :: ASP.NET PageMethods - Back Button Causing 'Authentication Required' Prompt

Sep 27, 2010

Since last week I've had a really odd issue with PageMethods and the back button which i've never seen before. Essentially, I have a 'home page' which on document.ready (using Query), loads some data through PageMethods, and then renders a list - from which you can click through to a details page about the item. In general use, it works fine. However, using the back button after clicking through (ie: going back to the home page), it throws a PageMethods error. The browser's 'authentication required' prompt appears, and if you click cancel, the server returns a 404. The error returned by PageMethods on the client side is 'authentication failed'.

Just FYI, the application is using ASP.NET forms authentication. The weird thing is, this happens as soon as you click the link and click back. It's not like the authentication cookie has expired or anything, and if you click cancel when the prompt appears and refresh the page, it works fine. I just can't work out what is going on. I've tried disabling caching on the page [as I thought it was something to down with some browsers' caches of the DOM), but the same thing happens. One workaround i've had is to redirect the page to itself if the PageMethods error is 'authentication failed', which does work - but only when you cancel the authentication prompt. Obviously the prompt appears, which is not ideal. I don't understand it, and the user is clearly authenticated. Does anyone have any idea which might be happening? It's happening in Chrome, Firefox, and IE.

View 5 Replies

Web Forms :: Delete After Prompt Download Of File?

Jul 22, 2010

I believe this question has been asked before but I still couldn't find the appropriate answer.

My scenario is like this:

When the user click on a button, it will dynamically generate a .xls and prompt the user to download.I have used transmitfile but it doesn't allows the file to be deleted. I have also used outputstream.write but it doesn't delete the file after flush. Instead it will hold onto the .xls and no modification can be done to the file.

View 4 Replies

Web Forms :: How To Create An XML File And Have It Prompt To Download

Jul 12, 2010

I'm currently trying to write data (client machine) into a xml file where the user can save. However, I want the users to be able to decide on where they want to save this written xml file. Is there any controls or codes that I can use to allow the users to save the file?.

[Code]....

it does not work...

View 7 Replies

Web Forms :: Need To Prompt For Confirmation Before Executing The Rest Of Code?

Sep 17, 2010

I have a vb.net codebehind function 'ExtractFile' which i need to prompt for confirmation before executing the rest of my code.I dont know the best way to do this

View 3 Replies

Security :: Keep Getting Popup Login Prompt - Using Forms Authentication

Nov 10, 2010

I am using forms authentication. It's works fine locally. Once I upload my web application to a remote iis server and run it I get a Windows authentication prompt. The server [URL] at [URL] requires a username and password.

View 1 Replies

Web Forms :: Use Response Redirect After Prompt Save Dialog?

Dec 9, 2010

My situation:

i have a web form to let user export the file. It will prompt a save dialog to let user choose where they want to save the file.

So after user click the Export button, there are 3 things must be done at the same time :

(1) Prompt save dialog

(2) Refresh the Page

(3) Pop up a windows to show the crystal report

I have already done the (1) and (2) but how can i do the (3)?

View 1 Replies

Web Forms :: How To Compile Application Using Command Line Prompt

Nov 12, 2013

how can i compile command line through web application? my application is built on asp.net(C#)....

View 1 Replies

Web Forms :: Check If Record Exists In Table And Prompt User

May 27, 2010

Using C#.NET and VWD 2008 Express

I'm looking for a hand with:

When inserting, i would like to check if the record exists in the table, then if it doesn't, insert it, else either redirecting to a different page, or showing a message box saying "Record already exists" ...

View 6 Replies

Web Forms :: Prompt User To Save An Image File On Web Server?

Jan 19, 2011

I'm trying to write code that will allow a user to click a button and be prompted to save an image file that resides on the web server. I'm using the following code, but I get an error that says "Error: Could not complete the operation due to error c00ce514.".

[Code]....

I have verified that the file exists. Is there another method for prompting users to save a file to their local machine?

View 3 Replies

Web Forms :: Download A File On SQL Server And Prompt User For Location?

Nov 24, 2010

Does anyone know how this is possible? I can retrieve the file, but I cannot figure out or find anywhere online how to prompt the user where he/she wants to download the file to.

View 2 Replies

Web Forms ::specific Directory By Command Prompt By C# , Run A Java Application From There?

Mar 5, 2010

I'm new in working with Shell commands by C#.I want to go to specific directory(c:Program Files) by command prompt by c# and run a java application from there.I have a code but its only can open a application from C: directory,I appreciate if anyone can help me regarding it

[code]...

View 3 Replies

Web Forms :: Locally It Works Fine - But Deployed To The Web Serve It Gives A Windows Prompt?

Jan 6, 2010

This is very strange behaviour from my login control - locally it works fine - But deployed to the web server (With an external hosting company) it gives a windows prompt, even though the authorisation is set to "Forms".Here is my web.config file:

[Code]....

View 13 Replies

Web Forms :: How To Install Websetup In Visual Studio 2010 Using Command Prompt

Apr 22, 2012

I have created webset using the below link,   now i need to install using command prompt so that the virtual directory gets stored in c:/inet pub/ wwwroot/ finish where finish is the name of virtual directory. how can i do it. need command line. 

View 1 Replies

Web Forms :: Like To Prompt A Message Box With A Drop Down List That Retrieves Values From A Sql Server At Runtime?

Apr 7, 2010

someone can help and provide some info or links to achieve the following:

I would like to prompt a message box with a drop down list that retrieves values from a sql server at runtime so user can select from. After user selects the value from the drop down list, the value is passed to the Master/content page to use as an additional query parameter to proceed to the next step to display content page.I understand how to create a message box in javascript, but I understand you can't do queries from javascript, if I'm correct.

View 5 Replies

Web Forms :: HTTPHandler And Posted Files - Prompt A User To Crop Photos After Save

Mar 18, 2010

I am building an application that allows a user to upload multiple images, resizes them, and saves them. What I need (ok, what I'd like) is the following...

I would like some sort of way to prompt a user to crop the photos after they have been saved. I have code that creates a 175px square rectangle and saves that image. I need the user to select the image section they want saved and to do so I envision a window that automatically prompts them to do so once the upload(s) have completed. I think my preference would be to have a page or control (datalist, repeater, ectc..) that refreshes every time an image is saved and allows the user to crop the newly saved images. I'm opened to advice, opinions, free drinks and a clue.

View 2 Replies

Forms Data Controls :: Prompt User When Leaving The Gridview Row In Edit Mode?

May 19, 2010

I have to warn the user when leaving the gridview row in edit mode without saving or cancelling the data. How can I achieve this? I have a javascript function which simply prompts the user when he/she leaves the screen which is not serving the purpose.

View 6 Replies

Forms Data Controls :: Downloading Pdf Without Prompt Window To Local Computer Then Printing Automatically

Mar 30, 2011

i have two tasks to accomplish. There are several pdf files (invoices) sitting in web server. My tasks are 1) enabling Olga to download multiple invoices into her local computer WITHOUT prompting any dialog box. 2) printing these files then automatically by default local printer from her desktop computer. How is possible this? She has birthday soon. No gift could be better than this solution as she has to open each pdf separately and hit print button about 40 times a day.

View 1 Replies

IIS 6 Authentication Prompt?

Jan 14, 2011

I have set up a copy of a website on a server and think I Have replicated the folder permissions and the IIS settings, but I am getting a windows authentication prompt, once i login with my admin details the site loads.

View 3 Replies

AJAX :: ListSearchExtender Prompt?

Aug 9, 2010

Before you recommend any of the other posts I have viewed to resolve this, let me this them here:[URL]
My problem:The listsearchextender displays below the dropdownlist even though it is specified to be on the top.The prompt is always "...x" where x is the last letter typed. This has somehow automagically resolved itself!

Here is my code:

[Code]....

View 4 Replies

Prompt The User Whenever Delete Record Using C#?

Apr 21, 2010

when ever i click on the delete button,then one Message box should come, it must ask "Are You sure Do YOU want to delete this record?" it should have two options YES and NO ,if i click YES the Record should be delete and if I click on NO ,the record will not be deleted. how can i do this in C#.net and in asp.net.?

View 13 Replies

Downloading File From Webpage With Prompt?

Mar 26, 2010

I have VB code that parses XML data from a webpage. Up until 2 days ago the XML data could be viewed right on the page and I could just grab the HTML source code to get the information. Now they have changed the page to a link button to download the XML file.

The problem is that when I click on the XML link I get the 'File Download Prompt' which asks me to run or save the file. I figured I could just save the file to temp directory and then open it up to parse it in my VB app but I can't figure out how to grab the file from the browser in my application.

View 2 Replies

Databases :: How To Restore On Sql Command Prompt

Apr 21, 2010

how to restore My sql databse on my sql command prompt

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved