User Profile

Collapse

Profile Sidebar

Collapse
bennett
bennett
Last Activity: May 30 '08, 11:59 PM
Joined: Jul 5 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • bennett
    started a topic Web Services and Threads
    in .NET

    Web Services and Threads

    Hi All,

    I am making a web service that needs make several calls to different websites and format the website responses into the same format using XSLT.

    Currently I am just using an array of threads that starts a class with a complete/done event handler.

    When each feed has finished it increments a counter so I can see how many thread were fired off and how many completed.

    The problem is i...
    See more | Go to post

  • bennett
    started a topic Stream Reader And Buffer
    in .NET

    Stream Reader And Buffer

    I have written the following function
    Code:
            Public Function ReadFile(ByVal FileName As String) As String
                Dim objReader As StreamReader = Nothing
                Dim objData As New StringBuilder
                Dim strReturn As String = ""
                Try
                    objReader = New StreamReader(FileName, Encoding.Default, True, 512)
                    objData.Append(objReader.ReadToEnd)
    ...
    See more | Go to post

  • If you mean an asp:table then in the code behind of the page you would use

    Code:
    Me.FindControl("TableID")
    This would return nothing if the table didn't exist and the object if it did.

    Hope this helps
    See more | Go to post

    Leave a comment:


  • bennett
    replied to how to remove last comma
    in .NET
    Or you could just use the trimend

    Code:
    Dim strVariable As String  = "1,2,3,4,5,6,"
    strVariable = strVariable.TrimEnd(",")
    Liam
    See more | Go to post

    Leave a comment:


  • bennett
    replied to XML serialization
    in .NET
    Is there any specific reason for wanting the line breaks ect because this would only make your file larger

    Liam
    See more | Go to post

    Leave a comment:


  • bennett
    started a topic XsltCompiledTransform 3rd Party Alternative
    in .NET

    XsltCompiledTransform 3rd Party Alternative

    Hi All

    Does anyone know of any 3rd party dll's that I can use to transform large XML (typically 3 - 5 MB in size with a complex structure) documents more efficiently than XsltCompiledTra nsform?

    Bennett
    See more | Go to post

  • bennett
    started a topic XsltCompiledTransform and Global Caching
    in .NET

    XsltCompiledTransform and Global Caching

    Hi All

    I have just been reading up on improving the speed of transforming XML using XsltCompiledTra nsform in .NET 2.0, and I have read if you set the XsltCompiledTra nsform processor as a static or an application object it doesn't have to recall the document every time a transformation is requested.

    I am creating a Webservice that processes 4 or 5 XSLT style sheets once each to get feeds from 5 locations into a uniform...
    See more | Go to post

  • bennett
    started a topic Foreign Keys Either/Or Design

    Foreign Keys Either/Or Design

    Hi All

    I am just working on a database I need a little help with the logic, I have 3 tables for example

    Department
    Staff
    Resources

    I need to assign a resource to either / or a department or staff member is the correct way to do this add 2 foreign keys to the resources and make the foriegn keys non requied.

    Or do I need to use some kind of link table.

    Liam
    See more | Go to post

  • bennett
    started a topic Geographic Locations in a database

    Geographic Locations in a database

    Hi

    Has anyone ever tried to store international address information in to a single data

    example

    UK Address
    Nildram Ltd
    Ardenham Court
    Oxford Road
    AYLESBURY
    BUCKINGHAMSHIRE
    HP19 3EQ
    GREAT BRITAIN

    US Address
    CHRIS NISWANDEE
    BITBOOST SYSTEMS
    421 E DRACHMAN
    TUCSON AZ 85705
    USA

    Spainish Address...
    See more | Go to post
    Last edited by bennett; Aug 16 '07, 09:00 PM. Reason: Spelling

  • bennett
    started a topic Attributes on ArrayItems Serialization
    in .NET

    Attributes on ArrayItems Serialization

    Hi

    I have manged to generate this xml

    Code:
    <COSTPRICE>
            <COST>45.67</COST>
            <COST>46.67</COST>
            <COST>2.67</COST>
    </COSTPRICE>
    Using this VB.net 2.0 serialization

    Code:
    <XmlArrayAttribute("COSTPRICE")> <XmlArrayItem(ElementName:="COST")> Public Cost()
    ...
    See more | Go to post

  • bennett
    started a topic Serializing CDATA
    in .NET

    Serializing CDATA

    Hi

    I have managed to get my head around arrays in serializtion, however, i need a node that could contain foreign characters or >,< etc.

    How can i do cdata in serializtion

    Code:
    Public DESCRIPTION As XmlCDataSection
    but when i try and add data,

    Code:
    object.DESCRIPTION.VALUE = "test desc"
    it doesn't work I end up getting an object reference not set error....
    See more | Go to post

  • bennett
    started a topic Serialization Help!
    in .NET

    Serialization Help!

    Hi

    I am just trying to get my head into serialization, i have created this

    Code:
    Imports System
    Imports System.Xml
    Imports System.Xml.Serialization
    
    <XmlRoot(ElementName:="RESPONSE")> Public Class RESPONSE
        <XmlElementAttribute(ElementName:="AVAILABILITY")> Public AVAILABILITY As AVAILABILITY
    End Class
    Public Class AVAILABILITY
    ...
    See more | Go to post
No activity results to display
Show More
Working...