|
string s=Textbox.Text.TrimEnd().TrimStart();
|
|
|
|
|
Hi,
I want to change the UI look of a ComboBox, so when I hover over a list item
I want to change the backgroundcolor of the hovered item. Therefore I use the
ListItemHoverCssClass property of the ComboBox as follows :
<asp:ComboBox ID="Combo1" runat="server" Width="80px" AutoPostBack="True"
ListItemHoverCssClass="ComboListItemHover">
<asp:ListItem Text="Item1" Selected="True" />
<asp:ListItem Text="Item2" />
<asp:ListItem Text="Item3" />
<asp:ListItem Text="Item4" />
</asp:ComboBox>
In my CSS file, I do :
<br />
.ComboListItemHover<br />
{<br />
background-color: #F2D429;<br />
}<br />
Why doesn't that work ?
tia
|
|
|
|
|
It is good to check the basic things like whether CSS file has been "linked" and the link is given appropitely(path is proper or not). .... !!! Couple of time I do forget to link the CSS Thanks,
Arindam D Tewary
|
|
|
|
|
It is properly linked. I have other styles defined in the CSS file that work properly.
|
|
|
|
|
I have a repeater bounded from a list of classes. I want to check if one the class' properties is equal to "str" for any repeater's items, but I get an error when trying to do it.
I try to do it like this:
<asp:Repeater ID="rpt" runat="server" DataSource="<%#airplanes %>">
<ItemTemplate>
<% if (Eval("Tail") == "str")
{ %>
<asp:LinkButton ID="lnb" runat="server" Text="click here!" />
<% }
else
{ %>
<asp:Label ID="lbl" runat="server" Text="expired..." />
<% } %>
</ItemTemplate>
</asp:Repeater>
|
|
|
|
|
and what error do you get? I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Inline logic is not the way to do that kind of thing. If you want your repeater to act differently based on the data is it binding to you need to use OnItemDataBound[^]
|
|
|
|
|
use
<%# if (Eval("Tail").ToString() == "str")
{ %> The Eval result is an object, not a string! good luck!
|
|
|
|
|
<itemtemplate>
<%# Eval("Tail").ToString()=="str" ? "Click here" : "expired..." %>
|
|
|
|
|
Hi,
I have a requirement on code highlighting.
Whenever user submits an article from editor if it is related to .net code i want to display like what visual studio does( in the color format eg public key word as blue color,comment like green..etc).
It should support both C# and VB.NET.
Can anyone tell me how to do this any free tool available. i want to do web application.Ashok Nalam
modified on Friday, March 5, 2010 3:37 AM
|
|
|
|
|
when u read line by line from editor, u should compare the words...if it matches any pattern then color them accordingly...if the pattern matches a comment until the end of line u need to mark it as green...
|
|
|
|
|
I have a publicly accessible website. I want to create a folder that will contain pages that I want to require login for access. Essentially, I will be the only person that will be able to access the pages in this folder.
I don't want to use SQL Server for membership, and I would like to avoid doing anything in IIS if possible. What is the best way to implement this?
I have a custom membership provider that uses XML files for storing users, if that helps..45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Are you looking for something like this[^] I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I have to look at it, but it looks like a good start. Thanks.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
row highlight on mouse over and undoing it mouse out is working f9...when we do mouse over we change only back color, whether is it possible to change both fore n back color or even font in code behind or javascript?
|
|
|
|
|
write code in the GridView1_RowCreated event.
If e.Row.RowType = DataControlRowType.Header Then
'write code for the grid header only
else
'write code for rest of the rows
you can customize every column from here.
e.Row.Cells(0).CssClass = "style1"
End If
from style you can change anything forecolor, backcolor, font, font size ... anything...
The miracle is this--the more we share, the more we have.
|
|
|
|
|
Hi Friends,
I have a list box in which 12 items are displayed at a time.If more than 12 items are present and if i click on the 1st item and then use arrow keys to navigate further down the scroll is not working but if i use mouse to scroll down its working.
Please suggest a solution for this problem.
Thanks in advance.
Santosh.
|
|
|
|
|
Hi All,
I've got a really simple Mvc app that I'm having trouble communicating with via Fiddler.
My Controller looks like this:
[ActionName("AddEmail")]
[AcceptVerbs(HttpVerbs.Post)]
public EmptyResult AddEmail(FormCollection collection)
{
Console.WriteLine("I called the AddEmail ActionMethod!");
return new EmptyResult();
}
And I have this mapped in Global.asax like this:
public class MvcApplication : System.Web.HttpApplication
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default",
"{controller}",
new { controller = "Test", action = "AddEmail", id = "" }
);
}
protected void Application_Start()
{
RegisterRoutes(RouteTable.Routes);
}
}
Using fiddler to create a POST with a simple html form in results in an HTTP 405 error saying that the resource is not allowed.
Not sure what to check in terms of configuration in order to get this to accept POST requests. Any ideas would be much appreciated. I'm using IIS 5.1.
Thanks,
|
|
|
|
|
Hello,
In asp.net, at present I get the user details inside the aspx.cs file as follows:
string strUserName = User.Identity.Name;
Do you know how to get this information within a class which I have under the app_code folder? it seems the same code does not work in there.
Thanks
|
|
|
|
|
It's in a thing I like to call documentation[^]. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hello, i searched a bit but couldn`t find any info about this !!
Is there any way to detect the active Addons on the browser that is being used?
I mean the user comes to your aspx page, and you take a course of action if a particular addon is installed or not.
|
|
|
|
|
There are plenty of articles out there if you get specific about what plugin you are looking for. I have seen articles for detecting flash, adobe reader, silverlight, and java.
|
|
|
|
|
Hello..
I am not talking about plugins..Let me give you an example
Firefox has an addon called Downloadhelper, how could i detect that this addon is active while the user is surfing my wep page and take a course of action according to it...
|
|
|
|
|
Firefox changed what they call them but they are still plugins.
Even Mozilla themselves can't decide what they call them. Note the Mozilla Addons page[^] starts with "Plugins help your browser perform specific functions..."
|
|
|
|
|
Hmm ok i`ll look into it, thanx
|
|
|
|