|
Yes, You can put the in a class Library and add the dll as reference in your project, or you can use as StringUtility Class in App_Code Folder.
|
|
|
|
|
|
Thanks
Looks like a dll is the answer.
Will have to look at how to manually make them (batch file...) as do not have full Visual Studio, just web express.
|
|
|
|
|
Hi,
I have a compare validator which compares the email and confirm email text boxes on my page.
Is there anyway that I could trim the spaces at the start and end of these email address and then get them compared by the control?
As is expected, It gives error if there is space at the end of either text boxes.
Thanks
|
|
|
|
|
I dont think it is possible.You can use custome validator for this Cheers!!
Brij
|
|
|
|
|
on thing you can do is use onblur event and create one javascript function which remove white space from the text box
hope this will help you
|
|
|
|
|
Adding to Pranay Rana's solution, trim the spaces in a javascript function on blur and then trigger the validation using the Page_ClientValidate() method to ensure that the compare validation is done after the trim.
HTH!
|
|
|
|
|
|
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.
|
|
|
|