Web Forms :: Prompt A Msg With 'YES' And 'NO' Button?
Feb 3, 2010how can i prompt a msg with 'YES' and 'NO' button. C#
View 5 Replieshow can i prompt a msg with 'YES' and 'NO' button. C#
View 5 RepliesSince 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.
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]....
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.
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.
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...
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 RepliesI 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 RepliesMy 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)?
how can i compile command line through web application? my application is built on asp.net(C#)....
View 1 RepliesUsing 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" ...
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?
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 RepliesI'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]...
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]....
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 Repliessomeone 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.
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.
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 Repliesi 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 RepliesI 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 RepliesBefore 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]....
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 RepliesI 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.
how to restore My sql databse on my sql command prompt
View 2 Replies