User Profile

Collapse

Profile Sidebar

Collapse
Zetten
Zetten
Joined: Aug 26 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Zetten
    replied to Unpacking an archive using C#
    The SharpZipLib looks to be close to what I want. I'll play around with it and come back if I've got any problems.

    Embedding the resources would be useful, but the source may change frequently, so I would prefer it if I could just bundle up a new zip file and attach it with the executable for distribution.

    I suppose I should clarify the task. Rather than a straightfoward installation in the classic sense, what I'm trying...
    See more | Go to post

    Leave a comment:


  • Zetten
    started a topic Unpacking an archive using C#

    Unpacking an archive using C#

    I'm trying to build a customised installer-type program in C#. It's different enough to not be using any sort of preset 'Installer' template, so I'm trying to accomplish the same sort of tasks manually.

    My issue at the moment is how to get a bunch of files from one place to another. I can do a straightforward recursive directory copy, but I was hoping there was some way I could just bundle my compiled executable with a pre-packaged...
    See more | Go to post

  • Sorry for the delay in getting back to the thread.

    I'm afraid you've lost me now. Using SQL would be slightly more familiar to me, but I was under the impression that the DS.filter has its own specific syntax. Am I wrong about that? If so, how would I go about using the "sn LIKE xxx" syntax?

    What is LINQ and how would that help me? I've looked it up briefly, and I think it seems to answer my question a couple...
    See more | Go to post
    Last edited by Zetten; Oct 27 '08, 02:33 PM. Reason: Problem solved

    Leave a comment:


  • That seems like a good alternative method, although it doesn't appear to work. I think it's better than my original idea though.

    Removing the pipe and searching just for
    Code:
    (sn= " + strSurname + "*)
    alone (that is, with the space) works in exactly the same way as
    Code:
    (sn=" + strSurname + "*)
    (without the space) so it's not very useful.

    I also tried inserting single quotes around...
    See more | Go to post

    Leave a comment:


  • C# DirectorySearcher.Filter using a regular expression

    I have an AD search module which works as I want it to; searching for a matching forename and/or surname in the appropriate OU.

    I would like to extend it to be more flexible, so that instead of just searching for a matching string in the surname/forename fields it can match partial strings. I already have it applying a star to the end of the filter, which accomplishes part of this, but I would like it to match partial strings at the...
    See more | Go to post

  • Zetten
    replied to C# global object
    in .NET
    Thanks for the advice. I've decided to go down the .resx route, as it seems the most intuitive.

    I've created one .resx file (langEn.resx) and started putting the strings in. I can retrieve them with no problems at all directly in the pages by accessing Resources.langE n.<string name>

    This is enough for now, as I only have English to worry about. But in the future I would have to change "langEn" all through...
    See more | Go to post

    Leave a comment:


  • Zetten
    started a topic C# global object
    in .NET

    C# global object

    I'm writing a website in ASP.NET, with C# doing all the work, but I'm fairly new to the whole Object Orientated way of thinking, so I'm having a few teething troubles.

    I have an external XML file which contains all the static text for the site, with the idea that there will eventually be multiple files for different languages, and all that will need to change is a single declaration of which language to use at a high level.
    ...
    See more | Go to post

  • Zetten
    started a topic Active Directory groups lookup

    Active Directory groups lookup

    I'm trying to develop a page which will grab a few details for the currently logged-in Windows user from the Active Directory controller.

    I can get the full name of the user from their username without any problems.

    What I can't do is find out which groups the user belongs to. The end result will hopefully be a method to ascertain whether the current user is a member of the 'mod' group, the 'admin' group, or neither....
    See more | Go to post
    Last edited by Zetten; Sep 24 '08, 01:30 PM. Reason: Tidying code

  • Zetten
    replied to String matching
    Update: I sorted this out myself using a regular expression. I suspected that would be the answer, but it was easier than I thought to get it working.

    If anyone's interested, this is the code I used to grab the number in the [[form=]] tag:

    Code:
    Set oRegEx = New RegExp
    	With oRegEx
    		.Pattern = "\[\[form=.*?\]\]"
    		.IgnoreCase = True
    	End With
    Set temp = oRegEx.Execute(line)
    ...
    See more | Go to post

    Leave a comment:


  • Zetten
    started a topic String matching

    String matching

    I've got a script which basically goes line by line through an external file, and hands it to the screen in a slightly parsed form.

    I'd like to apply another bit of parsing to what's coming in though, and specifically look for a pattern matching "[[form=x]]" where x can be any number.

    If that string is found, I'd like to grab the "x" part, pass it through a subroutine, and then replace the "[["...
    See more | Go to post

  • Zetten
    replied to Working with the DOM for forms in IE
    After yet more testing, it seems that while the name attribute isn't visibly attached to the element in IE (in the same way it is in Firefox) it still acts like it is.

    I'm successfully sending the form to an ASP script which can grab the form data from named fields, even if the name isn't visible. I guess it's still attached in the DOM somehow, even if it's not visible in IE. It's still amazingly stupid not to show it in the same way...
    See more | Go to post

    Leave a comment:


  • Zetten
    replied to Working with the DOM for forms in IE
    Apologies for the double-post, but this is distinct enough that I didn't want to fill the other post up more than necessary.

    Apparently, after some more testing, IE isn't setting the name attribute, which just completely baffles me - who on earth thought that would be a good idea? Looking around the net, this isn't an uncommon finding, but there doesn't seem to be a single, vouched-for workaround.

    The three user agents...
    See more | Go to post

    Leave a comment:


  • Zetten
    replied to Working with the DOM for forms in IE
    The radio buttons are created by this code:
    [CODE=javascript]function preselOpt(check id) {
    var inputTbody = document.getEle mentById(checki d.replace("_pre sel","_tbod")) ;
    var newID = checkid.replace ("_presel"," ");
    var numEls = document.getEle mentById(newID+ "_count").value ;

    if (document.getEl ementById(check id).checked) {
    for (i=1;i<=numEls; i++)...
    See more | Go to post

    Leave a comment:


  • Zetten
    started a topic Working with the DOM for forms in IE

    Working with the DOM for forms in IE

    This is going to be a long one, but hopefully that will make it easier to understand. I know I don't like posts with too little detail when I'm searching for help.

    I am creating a form with which a user can make forms. After filling in basic details like Title, Author, Description, the user can add multiple input fields of different types.

    This is done in the form of a table, with each row acting for a single input,...
    See more | Go to post
No activity results to display
Show More
Working...