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

    new keyword wierdness

    Forget it :) I spent the 40 minutes or so it takes to get all the solution from source safe again and start with completely fresh dlls for everything (excepting 3rd party stuff of course) and voila its pushed it through... Must just be something buggy with VS.NET, I could understand if none of...
  2. crazyboybert

    new keyword wierdness

    Hi All I am experiencing some very strange behavior with the new keyword when using it as a modifier not an operator. Background: I'm working on a fairly complex multi project web application with a tiered architecture. There is a code gen application another contractor brought with them...
  3. crazyboybert

    Self closing HtmlGenericControl

    Hi all I'm writing a composite server control that adds some children that aren't available in the HtmlControls or WebControls namespaces so I am using HtmlGenericControl to create the child controls and adding those to the server control. Some of these I would like to be self-closing (e.g like...
  4. crazyboybert

    Referencing WebForm from Class

    Hey Rob How about making a base class that derives from System.Web.UI.Page with your reusable functionality in it, and then deriving your pages from that class so you have the functionality available in all pages? That way the controls collection would be directly available in the base class...
  5. crazyboybert

    DataBinding to collection of Interfaces

    As a rather charmless fix I have created a new concrete type which implements the interface and takes an object which implements the interface in its constructor, giving a concrete "version" of the interface. Now I am then converting my collection of IMyInterface to an MyConcereteInterface[]...
  6. crazyboybert

    DataBinding to collection of Interfaces

    Hi All Ive got a requirement to bind a datagrid to a collection of objects of different type. They all implement the same interface and the DataSource is a custom collection derived from collection base of IMyInterface objects. The grid only uses properties from the interface to bind to and yet...
  7. crazyboybert

    [sadeyes] Having trouble with sessions

    You can access the ASP.NET session from any class in any assembly using System.Web.HttpContext.Current.Session Rob i'm a boy, called Bert, and I may not be crazy, but if i'm not the rest of you are...
  8. crazyboybert

    Deleting file after File.Copy

    Found the problem just in case someone else has the same friday no-brain syndrome that I seem to have suffered from! You can't delete ReadOnly files from the file system programatically regardless of what permissions the ASPNET account has on the file. So you need to use...
  9. crazyboybert

    Deleting file after File.Copy

    Ah ok - fairy nuff :D i'm a boy, called Bert, and I may not be crazy, but if i'm not the rest of you are...
  10. crazyboybert

    Deleting file after File.Copy

    Wow - great to see in my recent abscence that the tek-tips community is just as active and helpful as always, keep upi the good work guys :) Bizarrely it is now working fine having gone for the conventional coffee and smoke break without me touching the code at all. I'm inclined to think it is...
  11. crazyboybert

    Sequentially Open multiple Files into same Browser Window

    This may be as simple as checking "Reuse windows when opening shortcuts" in the advanced settings of Internet Options in IE.... Rob i'm a boy, called Bert, and I may not be crazy, but if i'm not the rest of you are...
  12. crazyboybert

    Deleting file after File.Copy

    Hi All Ok, my application lets users browse a directory of files on the server and select files to add to the system (write to a specific storage client and the database). When the user selcts a file it is copied into a directory which temporarily stores the file(s) to be added until the user...
  13. crazyboybert

    WYSIWYG Alternative?

    Hi all, been a while since I been around here, hope you don't mind helping out someone who has been too busy for helping out himself the last few months :-) [ RANT ] Im fed up of WYSIWYG, rich-text, all singing, all dancing editors for CMS and forums. I've been working with them in various...
  14. crazyboybert

    Change browse button caption from type "file"

    Ok sounds good, that is essentially the same as the method I proposed with a textbox as a gui for the browsed file and some non-DOM Javascript ;-) If ca8msm has used this before it sounds like the type="file" input can be clicked programtically LFCfan. Like i said though I havent tried it and...
  15. crazyboybert

    Change browse button caption from type "file"

    AFAIK there is no way to change the text of the button on a file input control... However you could have one hidden using CSS and then "click" it using javascript when another button is clicked, which would have the same effect of opening the dialog without the user ever seeing the control. Of...
  16. crazyboybert

    Regular Expression Replace

    Yeah was being stoopid :) Using the framework Regex classes you can perform a replace starting from the specified position in the string thus something like regex.Replace(string, replacement, -1, 1) would replace all instances starting from the character in position 1 (the second in the...
  17. crazyboybert

    Regular Expression Replace

    Hi I want to write a regex to replace the _ character in framework generated control ids. Easy :) except I need the expression to match all instances of an _ except where it is the first character in the string. Can't work it out at all. Obviously ^_ will match the first character if it is an...
  18. crazyboybert

    datalist and css styling

    These are the default outputs for the DataList's properties like Cellpadding, Cellspacing and GridLines. Unfortunately you cannot turn these off as such. The outout from most 1.1 ASP.NET controls is not XHTML compliant. Fortunately the ASP.NET team have said they have made all controls output...
  19. crazyboybert

    Creating and Accessing Web Controls at Runtime

    ooops sorry you think in VB and I did C# - Doh! Oh well is simple enough code that it shouldn't be a problem. Shout if you want a VB example :-) Rob i'm a boy, called Bert, and I may not be crazy, but if i'm not the rest of you are...
  20. crazyboybert

    Creating and Accessing Web Controls at Runtime

    Declare the controls as private member variables of the page before adding them to the Controls collection, that way you can reference them by name something like this private Panel myPanel = new Panel(); private Table myTable = new Table(); void Page_Load(object sender, EventArgs e){...

Part and Inventory Search

Back
Top