C# - Css/skin Working In IE Not In Mozilla?
Nov 18, 2010my asp.net web application is good looking in IE whereas in Mozilla, the css/skin i've used doesn't work. what's the solution
View 3 Repliesmy asp.net web application is good looking in IE whereas in Mozilla, the css/skin i've used doesn't work. what's the solution
View 3 RepliesI am using vs2008 pro. my problem is that javascript debugger is not working on mozila firefox but working fine on IE8.
View 1 RepliesWindow.open javascript function is not working in Mozilla, but working in other browsers, here is what I have write.
<a href="javascript:window.open('../Terms.aspx','Terms','width=550,height=400')">
click here</a>
Actually what happened in Mozilla is popup is opened but parent window is blank with [object Window]
In my Application i write one javascript function as
Page.ClientScript.RegisterStartupScript(typeof(Page), "myscript", "<script >document.execCommand('SaveAs');</script>");
to save that file.
its working fine in IE but in firefox mozila that save as window is not comming.
which function will work for both IE and FireFox mozila.
Description:- hello code given below is working fine in i.e. and other but not working in all mozila version.javascript is simple to devide two textbox's value. you can easily understand.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="javascript_test.aspx.cs" Inherits="javascript_test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<script type ="text/jscript">
var _txtamount;
var _txtins;
var _txtinsamount;
[code]....
this is the code working fine with IE but not working in mozilla.
ResumeExists---is the physical location of file in my server
Response.Clear();
Response.ClearContent();
string path = Server.MapPath(ResumeExists);
string name = System.IO.Path.GetFileName(path);
string ext = System.IO.Path.GetExtension(path);
Response.AppendHeader("content-disposition", "attachment; filename=" + name);
Response.WriteFile(path);
Response.End();
At page level I have set EnableEventValidation="false" and at Page_load below code is written:
Code:
grdMaster.Attributes.Add("OnClick", String.Format("{1};this.disabled = true;document.getElementById('lblProgress').innerHTML='Generating...It will take approx 30 Mins.'; {0};", ClientScript.GetPostBackEventReference(grdMaster, ""), ""));
Above coding is fine in IE but it does not work in Mozilla.
What could be the reason?and what is the solution on this?
This is my code for making textbox accept number only.
<asp:TextBox ID="txtRotationNo" runat="server" onkeydown="return NumberOnly();" CssClass="textbox"></asp:TextBox>
function NumberOnly () {
if(!(event.keyCode>=48 && event.keyCode<=57) && event.keyCode!=8) {
event.returnValue=null;
}
}
This code is working in Chrome and Opera, but not in firefox.
var newcpe = $find(cpe);
newcpe._doOpen();
I am using the above code to open the collasible panel. But its working in IE only. Not working in mozilla. But I can get the collapsible panel id in both the browsers by alert(newcpe);
In my application modal popup extender is not working in mozilla. but it is working well in IE 7 perfectly.
View 1 RepliesI have created a we app. using win authentication. When type the server ip addres in chrome I get the login window and it works just fine with my organizations credentials, however when doing the same using Internet Explorer I have to login with the server credentials as my account is not valid.
View 1 RepliesIs there a compatibility issue with asp.net imagebutton with mozilla browser. I have set a margin-left for an imagebutton but when I tried to view on mozilla, it does not work?
View 1 RepliesI am using javascript based calendar control in my application.
Following is my .aspx and .aspx.cs file.:
.aspx file:
[Code]....
.aspx.cs:
[Code]....
On click of hyperlink we are opening javascript calendar and assiging it to textbox.
The same functionality is working in IE, but its not working in Mozilla firefox and Google chrome.
This is one of the major problem i am facing in entire application.
I want to make my application to be work fine on multiple browser.
I want postback on click of treeview node .So i called a javascript function to do the same. I wrote the following ..On page load:
[Code]....
This is working fine in IE. But it is not working in mozilla and google chrome.
[Code]....
I am a beginner in ASP.Net. I want to know what is CSS, Themes and Skin in ASP.Net? and How to create and use these things in ASP.Net? Please explain with simple example.
View 1 RepliesIn the Telerik.Web.UI.xml file I found this entry
<member name="P:Telerik.Web.UI.RadDataBoundControl.Skin">
<summary>Gets or sets the skin name for the control user interface.</summary>
<value>A string containing the skin name for the control user interface. The default is string.Empty.</value>
<remarks>
<para>
If this property is not set, the control will render using the skin named "Default".
If EnableEmbeddedSkins is set to false, the control will not render skin.
</para>
</remarks>
</member>
that says RadControls are using skin named Default..Now what if I want it to be not default ..what if I want it to be some CustomSkin to be rendered and not default skin?? Where do I need to set the value for the skin I wanna use? I don't know much of XML..so asking
Whats this xml file for anyway? Only describing stuff? What IS the purpose of this xml file??
[EDIT]
Tried setting Skin globally in webconfig.xml as mentioned in telerik's website as follows:-
<add key="Telerik.EnableEmbeddedSkins" value="true" />
<add key="Telerik.EnableEmbeddedBaseStylesheet" value="true" />
<add key="Telerik.RadEditor.Skin" value="CustomSkin" />
This is not making any diff! is using default file only.
I have a project where i want (almost) all controls of the same type to also have an extender set with the SAME properties - is there some way to skin the existence of that extender instead of placing it on each and every control?
View 1 RepliesI want to change the skin for a gridview using code behind, so that it has a different skin when view on mobile devices. How do I do this?
I have tried this but it doesn't work:
if (Request.Browser.IsMobileDevice)
{
gvContacts.SkinID = "NPTResults_m";
}
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<link href="Skins/CustomSkin/Editor.Default.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<telerik:RadEditor ToolbarMode="Default"
ID="editor1" runat="server" EnableEmbeddedSkins="false" Skin="CustomSkin">
</telerik:RadEditor>
</asp:Content>
RADEditor on my page was inheriting Master Page's CSS properties so followed this tutorial to create custom skin..now what I did was...I simply copied the Folder named "Default" under Skins folder and renamed it to "CustomSkin" and added it like in the code above ..thot it would work but it didn't coz now I don't see border on my RADEditor...why is that ? Also it is STILL inheriting properties from Master page's CSS file :(
I didn't change name of any of the CSS files inside "CustomSkin" folder...Also when I added the following inside "telerik:RadEditor"...still problem persisting..
<CssFiles>
<telerik:EditorCssFile Value="~/Skins/CustomSkin/Editor.Default.css" />
<telerik:EditorCssFile Value="~/Skins/CustomSkin/Window.Default.css" />
<telerik:EditorCssFile Value="~/Skins/CustomSkin/ToolBar.Default.css" />
</CssFiles>
Quite some time ago I used an old version of the AjaxToolkit. Now I decided to load the newest version.
Below code shows me the HEADER and CONTENT ok, HOWEVER:it seems that no theme (skin, CSS) areused / found / recognisedwhen running the page I see the header and content I even can click the header and the text fades away correctly!I used drag/drop from the toolbox in VS2008
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MyEvents.aspx.cs" Inherits="MyEvents" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
[code]....
What is the main difference between .skin and .css in asp.net?.skin is new enhancement of IDE. I have been working with .css. What is available in .skin that is not to .css
View 2 RepliesIf I am assigning a paricular css class to a control ,it hnherits the class but if i simultaneously give the skin id to the same control then this skin ID overrides the CSS class.
Why this is happening?Now if I am using !important in the css stylesheets then css class property is inherited by the control.
.lblUserName1
{
width: 400px;
line-height: 32px;
color: Red !important;
font-weight: bold;
background-color: #669999;
}
i am using skin for text boxes , for one perticular text box i don't wont any skin properties how can i disable
following code methods i used
i sets globally in master page
<%@ Master EnableTheming="true" Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs"
Inherits="MasterPage" %>
in skinFile.skin i used this tag
<asp:TextBox runat="server" BorderColor="#6BB7E1" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
for disable one text box i followed this method
<asp:TextBox ID="tb_search" runat="server" BorderStyle="None" Width="235px"
EnableTheming="False"></asp:TextBox>
with this, skin style not appeared in disable mode in all mozilla, and chorme
but IE 6 still i am getting skin properties , how can disable skin properties for IE 6 browser
i installed dotnetnuke in my system, installation is completed successfully, now i want to change skin settings according to my requirement like changing colors,font,logs like that can u help me how can i do this in dotnetnuke.
View 1 RepliesI implemented a lot of ASP.NET controls inheriting controls from existing control library. My problem is that I can't use existing library themes/ skin files for skinning my controls. Is there a way to use existing skin files in inherited controls? Changing parts or renaming skin files is not an option. I could read data from skin file and then apply it to control programatically. Is there some kind of API for reading skin files?
View 1 Replies