Ask a Question related to ASP.NET General, Design and Development.
-
Jonah Olsson #1
Define a class using an XML file?
Dear Sirs,
I'm looking for a way to define a class using an XML file. Since I'm
building a Web Service to be used by several customers I want to be able to
easily change the class below without having to change the actual code. This
class is also used in the communication with the customer's SQL server.
Thanks for any kind of help.
Regards,
Jonah Olsson
Public Class MemberData
Private _EmailGUID As String
Private _Email As String
Private _FirstName As String
Private _LastName As String
Private _Title As String
Private _Company As String
Private _Address As String
Private _PostalCode As Integer
Private _City As String
Private _Phone As String
Private _Active As Integer
Private _RegDate As DateTime
Private _ChangeDate As DateTime
Private _SoftBounces As Integer
Private _HardBounces As Integer
Private _GroupIDs As String
Public Sub New()
MyBase.New()
_EmailGUID = ""
_Email = ""
_FirstName = ""
_LastName = ""
_Title = ""
_Company = ""
_Address = ""
_PostalCode = 0
_City = ""
_Phone = ""
_Active = 0
_RegDate = Nothing
_ChangeDate = Nothing
_GroupIDs = ""
End Sub
Public Property EmailGUID() As String
Get
Return _EmailGUID
End Get
Set(ByVal Value As String)
If ((Value Is Nothing) OrElse (Value.Length = 0)) Then
Throw New Exception("The email address identifier cannot be
empty")
End If
_EmailGUID = Value
End Set
End Property
Public Property Email() As String
Get
Return _Email
End Get
Set(ByVal Value As String)
If ((Value Is Nothing) OrElse (Value.Length = 0)) Then
Throw New Exception("The email address cannot be empty")
End If
_Email = Value
End Set
End Property
[...]
End Class
Jonah Olsson Guest
-
What's the easiest way to..user define class...datagrid..paging..sorting..
I have a large number of user define class objects and want display in a datagrid and able to perform paging and column sorting. It seems using... -
WEBSERVICE class in external class file?
I'm currently working on a solution including .NET webservices and Flash Form application built in a MVC pattern with "codebehind" classes for each... -
How to Trans transmit my define class with Metthod args in Webservices.
Example: namespace aa { public class myobject { public string Value1 = ""; } } -
ActionScript 2.0 class scripts may only define class or interface constructs.
I have the following class with the name "Service.as". #include "NetServices.as" class Service { var GATEWAY_URL:String =... -
Is it possible to put the instance of ASP user define class into the session
This is my user-defined class class ABC public CC end class I make a instance of it and store it at the session set ee=new ABC ee.CC="hi"...



Reply With Quote

