Enable Compatibility View (IE8) from code-behind?
is there a way that i can add tag in my .aspx page to Enable Compatibility View for Web sites by using Internet Explorer 8 ? without using click on "compatibility" icon on the browser? ...
is there a way that i can add tag in my .aspx page to Enable Compatibility View for Web sites by using Internet Explorer 8 ? without using click on "compatibility" icon on the browser? ...
I am trying to connect to a web service that uses Kerberos Authentication to authorize the user, but all I get is a 401 unauthorized everytime I try to make the request. Below is the code that I am using. Thanks in advance for any help you can provide! public XPathNavigator GSASearch(string url, string searchString) { Ht...
I am using Request.Browser.IsMobileDevice in conjunction with the MDBF file that goes in the App_Browsers/Devices folder (http://mdbf.codeplex.com/) Now using Sea Monkey browser (latest version 2.0.7) IsMobileDevice returns true. Why might this be the case as clearly Sea Monkey is not a mobile browser. In fact, I had the understanding...
Here is what is in my code-behind: List<Event> events = new List<Event>(); protected void Page_Load(object sender, EventArgs e) { } protected void AddEvent_Click(object sender, EventArgs e) { Event ev = new Event(); ev.Name = txtName.Text; events.Add(ev); } I want to add an item to the list every time the Add button i...
I have an XML file structured as follows: <Levels> <Level Code="T" Text="Test"> <SubLevels> <SubLevel Type="9" Text="Nine"/> <SubLevel Type="8" Text="Eight"/> <SubLevel Type="7" Text="Seven"/> <SubLevel Type="6" Text="Six"/> </SubLevels> </Level> <Level Code="T2" Text="Test 2"> <SubLevels> ...
I'm trying to create an ASP.NET Web Application, but this is all I see: I have confirmed that I have the full Visual Studio installed, not just Visual C#. Why can't I see ASP.NET Web Application in the "new project" list? ...
hi, i created a SSIS package on my development machine which simply: 1) Deletes records from weak table in database. 2) Loads file from filesystem into weak table in database. 3) The package is called from an asp.net page When i run the package manually on my machine it works, when the protection level is EncryptSensitiveWithUserKey. W...
I am new in ASP.NET, currently I am learning about output caching. So at my page's Page_Load event I have assigned current time to Label control myLabel.Text = DateTime.Now.ToString(); and declared page directive : <%@ OutputCache Duration="30" VaryByParam="None" %> But then when I refresh the page, the time displayed on the l...
I currently have this working somewhat as follows aspRadioButtonList ID="leavingCert" CssClass="radio pc2 top8" RepeatDirection="Horizontal" runat="server" AutoPostBack="True" OnSelectedIndexChanged="includeDaft_CheckedChanged">" But the problem is this refreshes the page is it this possible without refreshing the page ...
I'm trying to get this mootools bubble chart demo (http://moochart.coneri.se/) to work in my code but am having a bit of difficulty. Can anyone help with this? Here is the code that I have (I think it's what the documentation is saying, but please correct me if I'm wrong). <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Mo...
Here is how my system is set up: A web service using ASP.Net web service The web service has a web method with EnableSession=true A client which refers to the web service using "Service References" (note: not "Web References") The app.config of the client has allowCookies=true On the client side, I have the following code to upload a...
Hi, Usually I would look at writing a Windows Service to manage tasks that aren't suited to being hosted in a web application. These types of tasks are usually long running processes or scheduled tasks. Although this is normally the primary approach for these types of tasks, people have looked at ways of running these kinds of backgroun...
My ASP.NET page has an <asp:TextBox /> whose text input is encoded via HttpUtility.HtmlEncode(); The page also contains validators such as <asp:RequiredFieldValidator /> and <asp:CustomValidator /> as well as several AJAX toolkit <toolkit:ValidatorCalloutExtender /> If the user inputs </ as the text in the textbox, a Javascript error ...
Have you heard of real ASP.NET applications that use Mono? What problems do they face? Would you advice this technology to build a server-side for a RIA? We plan to build ASP.NET Web Service. There is a team of .NET developers and we want to reuse our skills so we have to stick to ASP.NET. But it would be undesirable to use Windows serve...
In a scenario we use frequently here, we display old classic ASP pages as modal dialogs using window.showModalDialog. When the page is loaded, we read the dialogArguments property and away we go. Now, as far as a classic ASP page goes, that's fairly a no-brainer. But things got a little complicated when we upgraded some of those pages ...
I am trying to build an ASP.NET project, but Visual Studio keeps giving me the error (0): Build (web): Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference...
Hi, I would like to get a cell value on rowupdating event (or any event) of the gridview, based on a text key, rather than using an index. Is this possible? for example instead of saying GridView1.Rows[e.RowIndex].Cells[0].Text, I would like to say something like GridView1.Rows[e.RowIndex].Keys["CustomerId"].Value, so that even if I rear...
My site has a page that loads content from a web form in a subdirectory into a JQuery UI modal dialog using JQuery for the asynchronous requests. For example, "Default.aspx" loads "SubDir/UsersList.aspx" into the dialog. UsersList.aspx contains a GridView that allows the deletion of users and because the content is dynamically loaded i...
I'm working on a large ASP.NET project with a CMS driving lots of data. We have lots of modular components on our pages defined as ASCX controls. Several of these controls need to know about each other to know what data to get from the CMS (i.e. if there's a list of articles in one control, another similar control on the same page cannot...
Hi all i have following entities as you see BudgetPost has a composite primary key which is a foreign keys to entities Category and Budget. My question is what is the best way to make CRUD? Is there any way to mapp the foreign keys? The simple insert should look like this: Budget newBudget = new Budget(); newBudget.Bu...