Web Forms :: Restrict Content Selection From Webpage?
Jan 7, 2011
On my web page i have to restrict content selection if user drag mouse on page, as on normal page have enable that if user try to drag mouse then content will get select.
I have found javascript for same and apply it, its running well for IE and i have found css tag for Mozzila to restrict content selection, both working well,but now what i want , on my web page i have textboxes, due to apply JS and CSS user also can't able to select text from textbox..and i want to allow to select content from textbox.
window.onload = function () {
document.onselectstart = function () { return false; } // ie
}
CSS
Body
{
-moz-user-select:none; // Mozzila
}
I'm trying to set up two check box's in a DataGrid so that only one can be checked at any one time.
At the moment, the following renders the existing state of the choice on screen:
[code]....
How do I go about ensuring that if the user chooses ChoiceOne that any selection of ChoiceTwo will be unselected and vice versa? Is there any way to state in the DataGrid control that these two checkboxes are grouped together?
I developed an application form which includes some textboxes for input. When the user click on the button the following tasks has to be done.
1) If page is valid all data should be stored in database
2) A new webform should appear on the same window and the some content of the application form should be displayed in it.
3) When clicking on browser back button it should not post back to previous page.....
I did the first task..and i don't know the code for the remaining tasks. Here is some information
.aspx button control code
[code]....
I opened new webform by using Response.Redirect ("submit.aspx"). Where submit.aspx is the form to be opened after data stored upon the button click in application form.
Today my client asked to implement SMS Counter and restriction to 150 characters in SMSalert.aspx form,I have done only Validation Control. I am working with SMS for the first time.
I have a master page containing menu items and if i click on any menu item then postback happens(it's not an asynchronous postback) that page loads in the content area. Now, if the page has taken some time to load and the user again clicks some other menu, then at some cases, it is crashing. So what i want to do is when postback is happening, I want to restrict the user to click anywhere on the master page or content page. We have achieved this on asynchronous postback.... But cant find a solution during postback.
if I have a data grid on my web page along many other controls, and that datagrid is fetching some data while the page loading.
The page won't load until data grid finish fetching .
I want to show the page to user even thou data grid didn't finished loading and after it loaded it will show. I saw that on few sites, it has preloading bar.
I'm trying to put a updateprogress into a webpage where selection from the dropdownlist causes postback. Works out well except that on the first postback, the gif image shows on the leftside rather than on the center. On succeeding postback, it will show on the centre where I intend it to be. Below is my code:
on left side i have a Tree Control on the basis of that i have to refresh the right side details element into div. Scrolling tree should not disturbed the right side elements as well as right side details should not scroll the page or tree control scrolling.
I'm trying to display content in 3 columns on a page. I've done a 2 column layout as follows using a foreach which just puts a hyperlink from the database into a div:
We have some table with messages. Each message could have attachments.
We need to have text of attachmnet inside html table of messages on web page. For the first stage we need to have at least support of doc, excel attachments (in future possibly will desire pdf). So in table we show from, subject and body as html cells of message tr. And cell for body should contain firstly rendered content of attached documents (with all images and styles), and then real message body. They don't want any links for download or something similar :(
I know only about possibility to use MS Word Save As logic (but don't have a lot of details). So in this case I should have MS word, excel installed on server. And based on type of attachment use one of the compopnents.
I'm new to c#. I need to do a script to get the HTML content of a webpage. Where I can get examples on how to do this? I have searched here but I can't find.
I need to scrape a remote html page looking for images and links. I need to find an image that is "most likely" the product image on the page and links that are "near" that image. I currently do this with a javascript bookmarklet so that I am able to get the rendered x/y coordinates of images and links to help me determine if those are the ones that I want. What I want is the ability to get this information by just using a url and not the bookmarklet. The issues it that by using the url and trying something like httpwebrequest and getting the html on the server, I will not have location values since it wasn't rendered in a browser. I need the location of images and links to help me determine the images and links that I want.So how can I get html from a remote site on the server AND use the rendered location
When I made an AJAX call to an ASP.NET page, I had a mechanism to return some text based on QueryString parameters. Such as :
Response.Write("<text>");
But in the response, I got a lot of extra information about viewstate status. This does not happen in classic ASP or PHP. Also if I ask for the whole page, it returns it with the page directive
Actually i want code of when user upload his document, its automatically generate all the content of document to display in the web page.. and all the code belongs to c#,javascript,jquery
i developed one simple xml program in asp.net i ll display the xml content in the webpage specific area of the page but i am trying to use this code
string strPath = Server.MapPath(@"App_Datamain_page.xml"); XmlTextReader textReader = new XmlTextReader(strPath); textReader.Read(); // If the node has value while (textReader.Read()) { // Move to fist element textReader.MoveToElement(); Response.Write(textReader.Value.ToString()); }
this code ll print the xml output in top of page . how to avoid this and to display the outpur some specific area of the page.
this web application must scan any webpage and save result if some data has been changed.
it should to search for key words and seek if their values has been modifyed/changed.
i will create this application with asp.net mvc.
what should i use to scan some webpage? if i will insert in my page any url of page which i will to scan, what should happens? are they some robots which looking for it if some content changes?
The problem is that rblNavigation.SelectedValue is not the value that the user has selected to trigger this event. How do I get the value the user has just selected?I'm using C# and this selection event is inside my MasterPage.
I have a master page with an unordered list that contains items like, Home, Messages etc.
Now I am working on an EditProfile.aspx page and I want the menu to change and have items like Basic Information, Profile Picture etc. Sort of like facebook. What is the best way to accomplish this...
I am working on a financial portal and I am having a problem..I don;t know what to call it so i mentioned it as an 'unknown to me' problem..I have a webpage..whenever I click on any button on my webpage, the request goes through..but nothing show up on the webpage..then If I click on another link and then again come back to previous link,then only I see the results of button_click..
e.g.
I have a currency conversion and investment form..so after filling up the form in following way and if I click on "INVEST" then nothing shows up..
so now if i click on any other link and go back to 'buy currency' link I see the result as 'investment successful'