Web Forms :: Distinguish Between Window.open Request And Copy Paste It In Browser
Apr 19, 2010
We have a page that is opened in the child window using window.open. Now the user will copy the child's window Url and copy-paste it in the browser. We need to restrict this scenario. How should we do this. I mean I need to know in my page load method whether the request has come from window.open or whether the user copy-pasted the Url on the Browser's Address bar.
Am using a image cropper(custom control)what i need is i have to copy the cropped images and then save it wherever i want in local system (just like copy/paste in windows folders)..also need to copy the images from system and paste it to web page
Is it possible to Open a new browser tab/window using c#. I have query string info I don't want to put in a hidden field due to it showing on the client side. I do save the data in ViewState and encrypt the viewstate; however, I don't know how to access that information on client side.
I can access the viewstate data fine on Server Side but I need to open the new browser window on server side in order to access the ViewState. I may be wrong. Is there a trick to this?
I did find a way; however, on any other click after the initial click everything goes to a new window:
I have the following hyperlink code that opens a new browser window to display a page. The page (browser) opens not full size (maybe something like 500x500). How can I modify this code to make the new browser window open full-size?
I can't use RegisterStartupScript('window.open...), because Chrome blocks the popup without even informing the userI can't use "onclientclick=window.open(..." in the markup, because I have to invoke code in the button click event handler before opening the popup window.I can't expect every user of the website to add the site as an exception in Google Chrome's popup blocker, since they'll assume it's an error on the website and not with the popup blocker
I'm exporting the GridView to Excel. It works fine and I receive a prompt to Save/Open/Cancel the file although I need the file to be saved automatically in the provided (passed to the Export function) location and opened in the same browser window where the Gridview was.
What control would allow me to paste a single row (5 columns) from Excel and allow me to copy it to an Excel type of row (5 columns) in asp.net form? Then I want to be able to save the contents by a click of a command button to database.
I am sending mail using .net c# code. In that mail i am providing link of customer website. When anyone click on link (in outlook mail) then it will open new window if already not opened any window. Suppose user already working in IE browser [URL] and then user click on link using outlook mail then link open in new tab in already opened IE browser window. So i want that everytime open new browser window when click on link.
When I run this code as non secure with HTTP, everything works just like it should. The report opens.
Is there any difference using those two different URLs with default.aspx and without it, because in development it behaves the same way, but under HTTPS one page doesn't exist and another is blank?! Is HTTPS the reason for that?
I'm running into a really weird issue: when a user copies text from another file and pastes into an ASP textbox, question marks occasionally appear. For example, copying text from one file ("P/U FILE5") pastes correctly into the ASP textbox, displaying as "P/U FILE5"
However, in the database, the text is stored as "P?/?U FILE?5"
So by way of checking and converting the textbox string to a byte array, I see byte values like this: "80 63 47 63 85 70 73 76 69 83 63 53" which means that when I actually look at the VALUE of the textbox string, it's actually sticking question marks in there. But they don't appear anywhere in the textbox!
Im calling the new popup window from gridview like
In the AddTargetPopUP.aspx ,I have button Call "ADD".When i click the add button it'll insert datas into database.I want to reload the parent gridview after insert into the database and want to close the popup.
We have a number of multi-line text fields on our pages for form submissions. On the backend of things, we have our stored procedures checking for html coding in those fields to help prevent sql injection. In some cases, someone that is completing the form without any malicious intent is copying and pasting from their word resume into our text fields and once they submit the page it fails because word uses html encoding for formatting and such. So is there a way to either prevent pasting in that way or maybe a way to submit the data to sql in plain text?
Just looking for the easiest solution so that the user doesnt have to do multiple things to submit their application. In order to get it to work for anyone having issues, is to have them copy and paste into "notepad" and then copy and paste from there to our form, which strips the html coding.