I am trying to apply themes to my site using profiles. So in my web.config file I need to write the code so that once that user logs in, then the theme of the site changes. Right now I just have color themes; yellow, blue, and orange.
If this isn't in the right section feel free to move it.
If I apply Theme1 or Theme2 to my project, since the common style definition names in the css files are same, it's not applying properly.
For kind information, before I start applying Themes, I was using "Link" to link the css file at run-time by enabling it using the "ID" property like
<link href="..." id="xyz"/>
It was working fine. AFter applying themes, it got confused like what css files to be loaded and what style definitions to be run as it is duplicated or a-needy-one for my approach in project.
I am trying to figure out if Global Themes will be something our department could use. However, I am a little unclear on it. Can you basically just have one theme? Either a theme from the Global directory or one from the application theme folder? Or is there a way to use both at the same time?
I am in need of applying the skins and themes in asp.net to my asp.net mvc2 applicatoin too. however i need to figure out the best way to apply the theme and skins in the mvc framework.
kindly suggest me the folder structure and how to apply them to different views. even though the css can do all stylings, i would like to get an insight into using these.
I'm trying to write a custom filter for Dynamic data that will allow me to run like type queries on entity columns. For example searching for john on name field to returen johnson, johns etc.
I'm trying to override the IQueryable GetQueryable(IQueryable source) method on the QueryableFilterUserControl class. To filter my results. Does anyone know the best way of achieving this?
If this were and IQueryable<T> it would be easy as I could return the results of a .Where() clause.
There is an ApplyEqualityFilter(IQueryable source, string Column.Name, object value) method on the QueryableFilterUserControl class but this performs a direct comparison.
I would like to know how to change the languages for web project. Because my project should need to meet the requirement of language need to be changing according to the selection of languages from dropdown. How it is interacting with many of languages.
So, most of the MVC examples I find are C#, so I seem to have trouble finding samples ....(bear with me, I'm a newbie) with that said, if anyone can point me in the right direction,
I simply want to be able to apply htmlattributes / styles to my select box
I currently use Roles / Access Rules to control access to my website. This work fine for folders, but I'm not sure how to implement this on individual aspx pages.
Scenario: I have folder that I granted access to everyone. I have one file that I only want members of the Admin role to be able to access.
How can I accomplish this? I would like to avoid putting this file into another folder.
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.
I am using the UrlRewriter.NET library to perform URL rewriting. I noticed that themes do not work properly as the browser tries to retrieve the CSS file incorrectly.
The link tag generated by ASP.NET automatically is as follows:
URL typed into browser: localhost:1708/BloggingEngine/aa Displays fine
URL typed into browser: localhost:1708/BloggingEngine/aa/ Browser does not load the CSS file
I can probably fix the problem by prefixing a "/" before the URL in the href attribute, but this is dynamically generated by ASP.net depending on selected theme and I have no control over it.
I have a Detailsview working fine in ASP.NET 2.0 VB. where I can obtain any links or articles detailing the settings for the Template as a guide to me apply RegularExpressionValidators to a number of the fields in my application.
My application works fine with the Required Field Validator. The majority of examples that I have been able to find are using this particular Validator.
I need to create a hash key on my tables for uniqueness and someone mentioned to me about md5. But I have read about checksum and binary sum; would this not serve the same purpose? To ensure no duplicates in a specific field.
How can implement this? do I need to write code in my vb application which populates the tables with stored procedures or can I do this from SQL server 2005 studio express?
how can i apply string.trim() accross the website when saving or editting data on the model rather then on individual fields accross the site in the controller.
I have a page on this page I have multiple user control and one of the control is on the user control.
on a button click event I can check all the validatoin which are on the main page, but I can't apply the validation on the user control which is not on focus. On the button click even if that particualar tab is on focus , the validaiton works otherwise it just ignores it.
Edit : Problem wasn't related Event Propagation, if you want to know how to stop propagation in jQuery, then use event.stopPropagation();
When user moves his/her mouse over <span> element my jQuery code appends an <img>into this <span> element and when he moves out his mouse off <span> than the element appended is removed. It helps people to edit the field when clicking on the appended <img> element.
The reason I used append() method to add <img> into <span> is because I want to keep <img> element visible when user moves his mouse over to appended <img> element (<img> is becoming <span>'s child element) But it didn't happen and when user moves his mouse over it <img> is being deleted. I am thinking it is because event propagation but I couldn't find how to activate it in jQuery as we do with addEventListener in Firefox based browsers.
I have a GridView control (GridView1) on a page which is reading from a database. I already have a CSS style applied to the GridView and all I want to do is change the background image applied in the style depending on if a certain cell has data in it or not.
The way I'm trying to handle this change is updating the CSS class applied to each row through C#. I have the code below doing this:
It seems as if the top piece of code is always returning the string with a value greater than 0, but when I check the database the fields are all null (except for my test record of "Smith").
I'm probably doing something very simple that's wrong here, but I can't see what. Like I said, I'm still very new to this. One thing I have tried is changing the argument in the if statement to things like: if (s != null), if (s != "") and if (s == string.empty) all with no luck.
I have a dropdown list in my webform and want to make that dropdown required in one form and optional in another form based on some conditions. My mark up for that is