Hi,
Any regex experts out there, been working on this, but wondering if anyone has idea to creating this...
A string value and return a boolean indicating if the string matches the pattern
The input can consist of the following values: a-z, \, _, %.
_ in the pattern represents any character...
Hi,
I have a webservice which existing clients are bound to, if I add an extra param to the method would I break the existing compatibility? or would it be best I add a second method. (Overloading doesn't work very well in web servicess).
Thanks
Hi,
I want to be able to process a string of html, but only to include html tags which are not self closing for example:
- <b>test</b> Include
- <b><br/><br />test</b> The br's to be excluded
I have this which sucks it all in. <[^/](.|\n)*?>.
Any help would be appriciated to finish the...
Hi,
I have a string which contains HTML for eg;
"<strong>the fox jumped over the fence</strong>"
But if I truncate say at character 5, I'd loose the closing tag.
There could also be a range of potential html tags as well.
Anyone has any slick ideas how to write a routine, to add the closing...
Hi,
In the end I added a regular expression validator and built a dynamic script server side to set it.
Seems all good now, looking back I should of done it in jquery...!
Thanks any way.
Hi,
I'm using the password extender and even though it says what your password stregnth is, it doesn't stop you from doing a postback.
So you could part-type your password and still update it.
has anyones came across this:
<asp:TextBox ID="txtPassword" runat="server"...
Hi,
I'm trying to do a generic tryparse for any data type, well stuff like int, double, decimal etc.
So if a value is null will just return defaulv value of 0.
here is an example of what i'd like to convert from:
protected decimal DecimalTryParse(object value)
{
decimal...
Hi,
I have the following bit of code:
private static T GetConfigValue2<T>(string key)
{
int value = 0;
if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings[key]))
{
int.TryParse(ConfigurationManager.AppSettings[key], out value)...
Hi
I'm using a validationsummary to show a load of page errors, does any one know how to switch off the individual validations...
This is to only see the errors in validationsummary..
Thanks
HI,
I have a dropdown list in excel and I want to rename one of the items, but I have already selected those items in the excel sheet.
When I change it, the others selected don't change, does anyone know how to make this dynamic to save me reselecting the change..
Thanks
Hi,
I building an excel sheet for eg;
Date Transaction Value
01/01/2010 Service Charges £100
01/01/2010 Maintenance £50
02/01/2010 Service Charges £10
The Tranaction is a dropdown so what I want to do for each item is add up all the Value fields and display and...
Hi,
I am wanting to deserialise xml into a series of classes.
For eg;
<PurchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ShipTo Name="Teresa Atkinson">
<Line1>1 Main St.</Line1>
<Line2>Line2</Line2>...
Hi,
I have a general data access which is created with a NEW constructor for each use.
Within it for each method I record with Modular variables how long a data access takes.
Then within the Close Method, called from client code, I then stop the timer and log the start and end time.
I'm...
Hi,
I'm writing a database wrapper to time how long it takes to return and iterate through a datareader.
I don't want to duplicate code, so within my data access class I'd ideally like to detect when the reader is being closed, and when it is stop the timer and log.
But a datareader will keep...
Hi
I have a website solution which has a number of dll projects.
The website has a PROJECT reference to each seperate dll project.
When I make a change with any dll project, the website bin doesn't automatically refresh on a build and I have to copy in the dll manually.
I've never had this...
Hi,
I'm doing some unit tests and is it possible to call a method and check if a function from within has been called.
I think this is like Rhino mocks AssertWasCalled, is this possible with VS unit tests?
Thanks
Tim.
Hi,
I am opening up a text file and doing a find and replace on a number of params. On example;
ServerUrl=http://localhost/site
Instead of doing an explicit find on the whole string, I want to locate the string up to the =, and then replace the entire contents with a new value.
This is to...
Hi
I'm using some lambda for sql access - does anyone know how to do a select statement, I have the following below, but the select don't work.
IEnumerable<Table1> agentTeamFacts = entities.Table1
.Where(
e => e.InstanceID.Equals(Id))...
Hi,
int index = 0;
if (rangeItems.Count > 1)
{
index = rangeItems.BinarySearch(new RangeItem(dayID, 0, 20760606));
if (index < 0)
{
index = ~index;
}
}
What does index = ~index; mean, the "~" bit.
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.