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...
User Profile
Collapse
-
Web Services and Threads
-
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) -
If you mean an asp:table then in the code behind of the page you would use
This would return nothing if the table didn't exist and the object if it did.Code:Me.FindControl("TableID")
Hope this helps -
Or you could just use the trimend
LiamCode:Dim strVariable As String = "1,2,3,4,5,6," strVariable = strVariable.TrimEnd(",")Leave a comment:
-
Is there any specific reason for wanting the line breaks ect because this would only make your file larger
LiamLeave a comment:
-
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 -
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... -
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 -
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... -
Attributes on ArrayItems Serialization
Hi
I have manged to generate this xml
Using this VB.net 2.0 serializationCode:<COSTPRICE> <COST>45.67</COST> <COST>46.67</COST> <COST>2.67</COST> </COSTPRICE>
...Code:<XmlArrayAttribute("COSTPRICE")> <XmlArrayItem(ElementName:="COST")> Public Cost() -
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
but when i try and add data,Code:Public DESCRIPTION As XmlCDataSection
it doesn't work I end up getting an object reference not set error....Code:object.DESCRIPTION.VALUE = "test desc"
-
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
No activity results to display
Show More
Leave a comment: