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 SkipVought 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. Guru7777

    Can someone help me figure out why this code is not working..

    Have you put a debugger on those lines to see if they are hit when your button event (or whatever fires)? Have you checked in the debugger to see if those variables being assigned are actually populated from the textboxes? I also don't know if you should have that \ in the Attach Db Filename...
  2. Guru7777

    Simple Question

    jmeckley, I was talking about the return false in the catch block. My point was that returning false would prevent the throw from being executed and that the line didn't make any sense to be there in that example (superfluous). I was pointing out that you can't throw an exception and return a...
  3. Guru7777

    Simple Question

    I believe that throw won't even be executed. Your return statement will get you out of there and the next line is superfluous. ---------------------------------------- TWljcm8kb2Z0J3MgIzEgRmFuIQ==
  4. Guru7777

    Web service advice

    It doesn't have to be a web service, though you can use one if you want. What you really need is something to queue up the email requests and send them at intervals or in a batch or whatever it is that you are thinking. ---------------------------------------- TWljcm8kb2Z0J3MgIzEgRmFuIQ==
  5. Guru7777

    RegularExpressionValidator

    I have modified what I found here. http://davidhayden.com/blog/dave/archive/2004/09/25/501.aspx Take a look at it. I tested it and it seems to work. ^.*(?=.{10,})(?=.*\d)(?=.*[a-zA-Z]).*$ ---------------------------------------- TWljcm8kb2Z0J3MgIzEgRmFuIQ==
  6. Guru7777

    How do I specify an Init module?

    I'm lobbing a hail mary here, but when you searched, did you use the "find in files" search, or make sure that the "search hidden text" option was checked in search options? Unless the global.asax file calls it itself or some other module or page calls it, there is nothing about that name that...
  7. Guru7777

    Use of 'getElementById' within WebUserControl

    It looks like that function is just in the .aspx page itself. If it is an issue of a strange client id being generated by ASP.Net, you can just insert this into the page. <%= ddlValues.ClientID %> Like this: (I've also included one for txtTest) <script language="javascript"...
  8. Guru7777

    Key Generation

    @stevexff Kurie wants to make an installation key for a product. Unless there is a key server, a guid can't be verified as a proper product key. Anyone who can go SELECT newid() or Console.WriteLine(System.Guid.NewGuid().ToString()); could make a "valid" key on the system. I think...
  9. Guru7777

    Key Generation

    What makes a hash potentially problematic (to hackers or whomever) is their ability to reproduce it in some other way than brute force (besides knowing your original factors). If you use a SHA256 hash, there have been no known collisions on that hash (SHA1 was listed as broken in 2005). But...
  10. Guru7777

    Expose C# Properties as COM Properties

    Check this out. http://forums.msdn.microsoft.com/en-US/csharpgeneral/thread/7313191a-10db-4a16-9cdd-de9fb80b378a/ Specifically, the response by TaylorMichaelLMVP on Thursday, October 04, 2007 11:56:23 AM. I know I learned something reading it. ----------------------------------------...
  11. Guru7777

    T-Sql Grouping Question

    Thanks, guys. That did the trick. SQLDenis, sorry about that. I will try to remember that for next time. ---------------------------------------- TWljcm8kb2Z0J3MgIzEgRmFuIQ==
  12. Guru7777

    T-Sql Grouping Question

    I have data similar to what is below. I have duplicates across the 4 grouping criteria that I’ve indicated. I need the one record that is the max value of both the date submitted and time submitted (unfortunately, both varchar data) across the grouping values. So, in the data set I've...
  13. Guru7777

    get out the numbers - regex

    This does the trick. You can be the judge if it is simpler. I tweaked the regex to pull the numbers out in chunks. Then you just have to parse the collections to get your guys. string telH = " asd833. 0000 cell "; string telH2 = " 777 9999 C "; string...
  14. Guru7777

    how to keep muliple ellipse's on a grid.

    I don't have much experience in this, but my guess would be that you need to store the previous ellipse (and all others as well) and when a new one is redrawn, redraw the stored ones. ---------------------------------------- TWljcm8kb2Z0J3MgIzEgRmFuIQ==
  15. Guru7777

    Passing parameters to a string?

    string line6 = string.Format("PATH {0}", "some other string"); ---------------------------------------- TWljcm8kb2Z0J3MgIzEgRmFuIQ==
  16. Guru7777

    application location

    This also tells you where the .exe was started from.. System.Environment.CurrentDirectory ---------------------------------------- TWljcm8kb2Z0J3MgIzEgRmFuIQ==
  17. Guru7777

    Getting a Service to Run on Startup Pre-Login

    If the user is an administrator on their own computer, then they could change it. If they aren't, they can't. If the computers are part of a domain, then the settings for that dialog box (and all of group policy) should come from the domain controller. Those cannot be altered...
  18. Guru7777

    Getting a Service to Run on Startup Pre-Login

    If you just want to show users a message they have to accept, you need to set it in the Group Policy. This KB article is titled for Server 2003, but has lots of other examples down the page. http://support.microsoft.com/kb/310430 Additionally (and the hard way), you could look into writing...
  19. Guru7777

    How do I extract domain name from host header?

    I actually did something like this and it seemed to work for me so far. I pass in any url, but usually request.Url.DnsSafeHost. Then the method checks if what is passed in is an IP Address (via a method using a regex). If it is, it returns right then. Next, it splits the url parameter based...
  20. Guru7777

    XML doc getting blank (empty) xmlns on every element

    xmlns is the Xml Namespace. You are setting it in the 2nd parameter of the CreateElement() method. If you change your code to be like this it goes away. XmlDocument doc = new XmlDocument(); XmlNode node; node = doc.CreateElement("requestMessage")...

Part and Inventory Search

Back
Top