Web Forms :: How To Create CSS For Browser Specific
Feb 3, 2010I know how load CSS by the broswer specific. but i dont how to create CSS by broswer based. its means.
1. what are conditions need to care
I know how load CSS by the broswer specific. but i dont how to create CSS by broswer based. its means.
1. what are conditions need to care
I have an ASP.NET MVC App. The forrm has a "button control declared like this "<button name="" text="">I handle this in the post back in the controller. Though it works fine in development machine in IE, it DOE NOT work when i deploy to prod box. I tested it in Firefox and it works just fine
View 1 RepliesI am trying to get the pixel color of a mouse click event. (meaning when the user clicks on the page I need to identify what color he just clicked on.) I believe the best way to go about this is to create a screen cap of the browser contents then use image.GetPixel sending the x,y locations. The only part of this that I am having issues with is creating the screen cap at "click-time." It would be easiest for calculations if i could get a screen cap of the entire contents of the browser, but I could also work with being able to screen cap a specific div element by ID.
I have experimented with this using an actual image on the page and i can get the correct values however, the page will not be an image so i need to create the screen cap...
If you have any information about how to do this or have a better way to get the color of the pixel clicked on by a user.
In Visual Studio 2008 Express there is no folder browser to allow me to select a destination folder for downloading.
There is a FileUpload, but it requires a filename. I just want to select a folder only, and get its full path information.
In Windows API, there is a folder browser that I called in MS Access using VBA code.
Can someone supply me the code or tell me how to generate a folder browser to select a destination folder for downloading data to !! I would like it in VB.
I do have an .exe that generates a browser, but you can't run it on a website.
I am using Web Expression and Access database to build an aspx page.I am displaying records using listview Tiled option and DataPager is enabled also which is creating multiple pages.
View 1 RepliesI need to make my webpages compatible with chrome and IE8 that too using Browser caps. I have desingned the webpage using ASP.net 4. provide me with the solution. i hav tried a lot of different things and all have failed and i am using windows 7.
View 2 RepliesI am a ASP.net Web Form Developer , I simply want to know that is it possible to develop a mini ERP solution in ASP.net MVC ?
I have already developed such in ASP.net Web Forms but our company wants to re-write to whole app from scratch for bigger scale with increased modules and functionalities.
So can we go with ASP.net MVC this time rather than Web Forms?
I would like to take our current mobile website and redesign it for iPhone use. All of the code on our website is currently run server-side and is split up in multiple pages, but I would like to get all the client-side features like transition animations and iPhone-like buttons that jQTouch offers. Where should I start?
View 1 RepliesI've been reading about asp web administration tool. I read about creating roles and stuff and forcing a controller to use authentication in order to be viewed. My question is, say create on the administration tool a user called Peter and I assign him the Administrator role. Then I want to create another role called LimitedAdministrator. But I want Peter to create new users on his View (I'm using MVC). Can anyone point me in the direction of how to do this.
I want peter to see on his page, like "Create user" and this user will be created as a LimitedAdministrator.
I'm using SQL sever 2005 and 2008 expressHow Can I create a DB backup in a specific folder??I use Management Studio but I'd like to automatically create backup without use tools
View 5 RepliesI need to create a form that would work like this Choose Provider :( user would select gmail, yahoo, hotmail, ext) Enter Name: ( user enters there name) Message : ( user enters message) and then the "submit"button.
View 2 RepliesI have function named (display)
I need to call this function (display) avery two second
I have client that wants to specifiy their own version of localized content for a subset of my string resources.For simplicity here is basic example:Lets say I have 2 localized strings (showing english content)PageTitle="Hello World" PageDescription="This is a more wordy version of Hello World!"
Strings.resx (contains my English
string)
Strings.fr-ca.resx
(contains my French-Canadian strings)
Strings.fr-ca-clientX.resx (contains
[code]...
We are coding an intranet site using .net DirectoryServices and AccountManagement to create a computer account in Active Directory with access rules allowing a specific user to add the computer to the domain. Has anyone had any success using the AccessRuleFactory method to set access rules? I'm stumped with a few aspects. So far, this is what we have...Using AccountManagement, we can easily add the computer:
[Code]....
Next we get the DirectoryEntry and ObjectSecurity for the computer. Also dim the ACE object:
[Code]....
Set the userAccountControl:
[Code]....
Here's where we're having problems:
[Code]....
The IdentityReference needs to be the trustee for the computer - how can we get this using AccountManagement and/or DirectoryServices?And I'm not sure what to use for the Inherited Object guid?
Here's the complete vbscript we're trying to convert:
[Code]....
i am trying to create an asp.net service where it can delete specific records from the databas, this is by code so far:
View 1 RepliesI have a web application (SnapshotServer) which uses a WebBrowser control to take a snapshot images of a web page.
I use a WebBrowser control within SnapshotServer to navigate to a entry page of a secure web application (ImageHost) and then redirects me to my required page.The ImageHost application is protected by FormsAuthentication, which uses cookies. The entry page I navigate to takes care of logging me in - which will create an Auth cookie.
Once a response is generated from the ImageHost, I convert the result within the WebBrowser control to an image.
Issue:
When I run SnapshotServer on my PC (Windows 7, IE8), using IIS7, and navigate to ImageHost on my development server (Windows 2008 R2, IE8), the result is as required - I'm logged into ImageHost and redirected to the page I want an image of. When I run SnapshotServer on any Windows 2008 R2 server, using IIS7, and navigate to ImageHost on my development server (Windows 2008 R2, IE8), the result is not as required - ImageHost fails to log in - so my image is of the login page. The reason it fails to log in is that it isn't creating an Auth cookie.
So I'd like to know if anyone can tell me why the WebBrowser control, when run from a Windows 2008 server, cannot create cookies.
I'm trying to learn Visual Web Developer 2008 and web site design. I have created a website with a 'contact us' section and it is working fine. On this page I have appx 6 Input text boxes but lots of graphics and such on the page. I'm trying to figure out how to get started building a simple version of the same page so that blackberries, android, iphone, etc... could fill out and submit the form. I don't want anything fancy on the form, just labels and text boxes.
I'm been searching the web and everything leads me to add a mobile web form to my project but in VWB 2008 there is no such thing (at least that I can find)
I'm goingto create an asp.net control which should be cross browser. and support some skin - multilanguage and rtl & ltr support.
View 3 Replieshow to prepopulate an outlook email's body and subject using the mailto: form of an anchor tag.
What I'd like to see is some examples of Outlook automation code on the server, that creates an Outlook template file (.ost?) and binary writes it to the browser - the browser recognising the extension and firing up outlook with the template.
This is internal and the user will definitely have Outlook.
I'm looking for a way to get rid of the querystring of a page and redirect to itself but preserver the querystring data in some way. Exmaple: [URL] should redirect to [UL] Still, after the redirect, I want to be able to pick up the parameters that were originally passed. And I don't want to have [URL] in the browser's history.
What I tried so far:
* Response.Redirect(): does a proper redirect without creating browser history but I cannot preserver the parameters.
* Server.Transfer: preserves the parameters but the browser's URL remains unchanged.
* Create a client form on the fly and submit in "onload": works, querystring is gone, parameters are accessible through Request.Form, but creates a history entry in the browser.
The only thing I can currently think of is to store the parameters in the session, then redirect, then pick them up from there.
I want to create a custom attribute to check if the browser has cookies and javascript enabled. I'm guessing I would create a ActionFilterAttribute that would redirect to a controller action to load a page to check cookies and javascript on the client side. If they are enabled then it would redirect to the desired action, otherwise display an error message. Is this a correct approach or is there a better way to do this?
View 1 Replieswhen i started a brand new asp web site in "Microsoft Visual Web Developer 2010 Express".. i get the main page called "Default.aspx" which has the following code...
So if i Ctrl+f5, and load it into a browser, everything is perfect, if i change it, (From "Welcome to ASP.NET" -> "Yaahhooo ASP.NET" and then Run it again (Ctrl+F5) then it compiles just fine and still shows the original page, yes i've considered browser cache and opened it up in a new browser (first time ff then ie) but still, once i compile it the first time, i can't change it unless i create a brand new Default.aspx
Sorry for the long explanation, i have no idea what im doing, looks like im getting off on the wrong foot.
EDIT!!-> if i make a change and save it and doesnt reflect changes in the browser, if i just quit MVWD 2010, and open it back up then it will reflect the changes right away..
I used javascript code to open popup window.Popup window "Maximize" button is in
disable state.But in Chrome it is in enable state.I want to make browser maximize button disable.
Below is my javascript code
function Call_PopUp(event, URL) {
window.open(URL, 'CustomPopUp', 'width=990, height=540, menubar=no,scrollbars =yes, resizable=no, top=50,left=50,toolbar=no,dialog=yes,minimizable=yes,maximizable=no');
}
i need to get the Browser version, type of the user. i need the short name not the long one.
at the monent i have this:
browser = Request.ServerVariables("HTTP_USER_AGENT") that retuens this:
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249
i need only (Chrome/4.1.249), (MSIE 8.0)...............
plus i would like to get the operating system too
I have a web application that runs via IIS 7 what i want to do with the application (Asp.net with C#) is only load if the browser is greater than IE9, or greater than or equal to Chrome27 or greater than or equal to firefox19.
How to do this or areas i should read to do such a thing?