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 strongm 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: *

  • Users: mbde
  • Order by date
  1. mbde

    Sql To XML

    Hi, I have done a lot of XML PATH statements, but this one escapes me or might not even be possible with multiple different children. The end result should look like this <Process> <TaskList> <SqlTask Name="Get Report Parameters"> <StoredProcName>GetReportParameters</StoredProcName>...
  2. mbde

    Defining A WCF Service In a N-Tier Project

    Never mind I added the contents of the app.config to web.config... works like a charm.
  3. mbde

    Defining A WCF Service In a N-Tier Project

    I have a WCF service that works well by itself. It contains two methods and one business object, EdiResponse So I put the Service Refence into the Entities Project. Adding a reference to Entities.EdiService to the Business and the Data layers. Then Business calles the method does some...
  4. mbde

    Bound ListBox not updating

    If you are binding like ListBox.DataSource = list; ListBox.DataBind(); Then yes you need to rebind if the list changes.
  5. mbde

    Resizing user control

    I though it would be very simple but I can not get it today. I have a user control, with a grid control contained in it. public Unit Width { get { return CustomerGrid.Width; } set { CustomerGrid.Width = value...
  6. mbde

    Maintaining my own DataSource

    Figured it out I was calling base.Databind on the control after trying to retreive the value by alling base.DataBind(); CustomerGrid.DataSource = DataSource; CustomerDatabind(); That worked.
  7. mbde

    Maintaining my own DataSource

    I am in the midst of creating a re-usable composite control that just has a predefined grid on it, and a couple of text boxes to display customer information I create a public datasource public Customer DataSource { get{ object o = ViewState["DataSource"]; return (o ==...
  8. mbde

    webclient downloading many files from web server

    Is there a listing page that links to the files. If so you can use HttpWebRequest and HttpWebResponse to read the page extract all of the file links using regular expressions then run your code to get all of the files calling the hrefs of the links that were returned. If this sounds like...
  9. mbde

    Creating An Inheritance with Multiple Enums

    I am in the process of creating many custom controls, each with a grid control in it (the Complete Grid Control) I wanted to try and make all of these grid controls inherit from some base control so that code does not have to be duplicated and every control follows the same standard So I have...
  10. mbde

    Ajax Toolkit-- Is UpdatePanel suppose to reload the entire page

    Right now I have a master page. In the master I have a script manager, a Update Panel, a Label and a timer. Right now I am just putting the time in the label, if I get this to work I will want to do something more advance of getting a status from a database. But the concept is the same I...
  11. mbde

    UpdatePanel suppose to reload the whole page

    Right now I have a master page. In the master I have a script manager, a Update Panel, a Label and a timer. Right now I am just putting the time in the label, if I get this to work I will want to do something more advance of getting a status from a database. But the concept is the same I...
  12. mbde

    Decorator as a Singleton Pattern

    Jason, what then would be your advice for posting code on a public board so that the intellectal property of a company are not violated. Granted if I did get strange answers to my question then I would have most likely clearified. But since your first answer was, and usually is, the correct...
  13. mbde

    Decorator as a Singleton Pattern

    Craig thanks for the response. You do bring up a good point however I am not selling pizzas. That was just an example to mask some really business code. The company product is like a insurance service where you have to start out with a basic plan then you can addon addition types of...
  14. mbde

    Decorator as a Singleton Pattern

    Jason, Point 1. Good point, will do. 2 & 3. Yes, I was going to do that but it was sort of irrelevant to the post. 4. I never heard of a validation visitor, I will look into that. Thank you
  15. mbde

    Decorator as a Singleton Pattern

    Thanks, for the discussion this is what I think I will go with... Of course I am not selling pizza's but an object where the customer gets to choose multiple items (so I didn't go Strategy pattern) and the order of the items are irrelevent (so I didn't choose Chain pattern). The only other...
  16. mbde

    Decorator as a Singleton Pattern

    Attached is a classic Decorator pattern. My question is how would you modify the below code so that you can wrap zero or one of each topping on to the Pizza Right now I can have a Pepporini -> Sausage --> Pepporini --> Pizza class driving the total cost up to $10, charging twice for Pepporini...
  17. mbde

    SSIS Question(s)

    0) Disclaimer I do not know AS400. 1) When I need to convert information whether it be format or type I try to do it in the query, even with a text file you should be able to write a query against it with an ADO provider So Select Convert(DateTime, Right(field, 4) + '-' + Substring(5,2) + '-'...
  18. mbde

    how to combine the sql results from diff sql statements

    you can join the three sql statments using a inner (or Left) join and displaying the columns from each query Select A.Name, A.ResourceID, A.Cnt_s1, B.Cnt_s2, C.Cnt_s3 From (select T1.Name, T2.ResourceID, count(T2.ResourceID) as Cnt_s1, T1.CollectionID from v_Collection as T1...
  19. mbde

    String Formatting Question

    I don't see a space between }{1}{2
  20. mbde

    Locate and Insert empty/new lines when comparing two text files

    Here is the brute force way I beleive there is a better way opening the files into a DataSet and running left join queries and such, I may look into that given more time. public static void CompareFilesBrute(string bigFile, string littleFile, string finishfile) {...

Part and Inventory Search

Back
Top