Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Badgers

    Regex challenge !

    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...
  2. Badgers

    web service and adding extra methos params

    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
  3. Badgers

    regex - include html tags but exclude self closing tags

    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...
  4. Badgers

    Truncate a string which contains HTML

    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...
  5. Badgers

    Unit test frameworks

    Hi, Anyone any opinion on the best unit test frameworks..? There's Rhino, NUnit and loads.. What seems the industry standard? Thanks
  6. Badgers

    ajax password strength extrender

    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.
  7. Badgers

    ajax password strength extrender

    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"...
  8. Badgers

    Generic tryparse method

    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...
  9. Badgers

    Config helper ysing generics

    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)...
  10. Badgers

    validationsummary

    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
  11. Badgers

    Excel 2010 - Dropdown item change

    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
  12. Badgers

    Excel 2010 - Add up rows depending on dropdown value

    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...
  13. Badgers

    Dererialising XML into an Object

    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>...
  14. Badgers

    Data access class and thread safe variables

    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...
  15. Badgers

    Data reader and time how long open

    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...
  16. Badgers

    Project group and dll refresh

    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...
  17. Badgers

    Visual Studio Unit test 2010

    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.
  18. Badgers

    Regex replace and pattern match

    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...
  19. Badgers

    lambda select

    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))...
  20. Badgers

    Really easy question

    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

Part and Inventory Search

Back
Top