Click here to Skip to main content
15,908,455 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: System.Data.SqlClient.SqlException: SQL Server Internal Error. Text manager cannot continue with current statement. Pin
Tej Aj18-May-10 1:32
Tej Aj18-May-10 1:32 
QuestionSystem.Data.SqlClient.SqlException: SQL Server Internal Error. Text manager cannot continue with current statement. Pin
developerit14-May-10 1:03
developerit14-May-10 1:03 
QuestionHow to Display Outlook E-mail Box Pin
cheguri13-May-10 23:12
cheguri13-May-10 23:12 
AnswerRe: How to Display Outlook E-mail Box Pin
saini arun14-May-10 1:17
saini arun14-May-10 1:17 
GeneralRe: How to Display Outlook E-mail Box Pin
cheguri14-May-10 1:42
cheguri14-May-10 1:42 
AnswerRe: How to Display Outlook E-mail Box Pin
Not Active14-May-10 1:19
mentorNot Active14-May-10 1:19 
GeneralRe: How to Display Outlook E-mail Box Pin
cheguri14-May-10 1:42
cheguri14-May-10 1:42 
QuestionFirst Web Service Pin
Learner52013-May-10 23:08
Learner52013-May-10 23:08 
Hi Everybody,

I am using web services first time. Only for my understanding I have used very simple functionality: Addition of two numbers and population of a dropdown list. My questions are
1- when I used "Namespace" It raised an error that 'error BC30002: Type 'First Web Service' is not defined.'
later I commented out namespace it is working fine. any tip how to sortout this error.

2- Basically I play all the time with database (binding and manipulating data with controls )and desperate to use WCF and web services. Is this any better/helpful to use in the same way I have use in the FirstWebService.
why I am asking this because I can perform the same functionality using simple classes. I dont see any difference or I am confusing myself.

any help will be appreciated.

FirstWebService code:

Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports Microsoft.VisualBasic
Imports System.Data
Imports System.Data.SqlClient
Imports App_Code.DB
Imports App_Code.Web

'Namespace App_Code.Web

' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
'<System.Web.Script.Services.ScriptService()> _
<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class FirstWebService
Inherits System.Web.Services.WebService

Dim dbeng As DBEngine
Dim lEBStruct As EBStruct

Public Sub New()
dbeng = New DBEngine
dbeng.YourDBName = ConnectionSource.DBName.PupilVoice
End Sub

Private _YGid As Integer
Private _YGDesc As String

Public Property YGId() As Integer
Get
Return _YGid
End Get
Set(ByVal value As Integer)
_YGid = value
End Set
End Property

Public Property YGDesc() As String
Get
Return _YGDesc
End Get
Set(ByVal value As String)
_YGDesc = value
End Set
End Property

<WebMethod()> _
Public Function HelloWorld() As String
Return "Hello Mathematician"
End Function

<WebMethod()> _
Public Function AddTwoIntegers(ByVal dig1 As Integer, ByVal dig2 As Integer) As String
Return Convert.ToString("<br/>you entered teri tou two digits: " & dig1 & " and " & dig2 & ". Sum of two digits is " & dig1 + dig2)
End Function

<WebMethod()> _
Public Function YearGroup_GetAll() As EBStruct
Dim lcmd As New SqlCommand
Dim dbeng1 As New DBEngine
lcmd.CommandType = CommandType.StoredProcedure
lcmd.CommandText = "YearGroup_GetAll"
lEBStruct = dbeng.GetDataTable(lcmd)
Return lEBStruct
End Function
End Class
'End Namespace
QuestionAPI for Paypal Intigration with Asp.net,C# Pin
Ratnesh N Bharos13-May-10 21:45
Ratnesh N Bharos13-May-10 21:45 
AnswerRe: API for Paypal Intigration with Asp.net,C# Pin
Peace ON13-May-10 22:26
Peace ON13-May-10 22:26 
AnswerRe: API for Paypal Intigration with Asp.net,C# Pin
raju melveetilpurayil14-May-10 9:42
professionalraju melveetilpurayil14-May-10 9:42 
QuestionHow to deploy web application in FTP Server ??? Pin
JC.KaNNaN13-May-10 21:36
JC.KaNNaN13-May-10 21:36 
QuestionBind Child table data on View field- MVC ASP.Net Pin
tassadaque13-May-10 19:40
tassadaque13-May-10 19:40 
Questionpage expire problem Pin
souravghosh1813-May-10 19:18
souravghosh1813-May-10 19:18 
AnswerRe: page expire problem Pin
Viral Upadhyay13-May-10 19:39
Viral Upadhyay13-May-10 19:39 
AnswerRe: page expire problem Pin
suwangsoft14-May-10 2:30
suwangsoft14-May-10 2:30 
Questionjavascript expected ')' Pin
chartierpw13-May-10 18:03
chartierpw13-May-10 18:03 
AnswerRe: javascript expected ')' Pin
chartierpw13-May-10 18:10
chartierpw13-May-10 18:10 
AnswerRe: javascript expected ')' Pin
adkalavadia13-May-10 18:12
adkalavadia13-May-10 18:12 
AnswerRe: javascript expected ')' Pin
Dinesh Mani13-May-10 19:25
Dinesh Mani13-May-10 19:25 
Questionhow i add a pictures in the database & how to connect to sql server with formview and gridview using c# Pin
ihbos13-May-10 17:30
ihbos13-May-10 17:30 
AnswerRe: how i add a pictures in the database & how to connect to sql server with formview and gridview using c# Pin
nagendrathecoder14-May-10 0:15
nagendrathecoder14-May-10 0:15 
QuestionRedirect fails Pin
Dot-Net-Dev13-May-10 17:19
Dot-Net-Dev13-May-10 17:19 
AnswerRe: Redirect fails Pin
Viral Upadhyay13-May-10 18:19
Viral Upadhyay13-May-10 18:19 
AnswerRe: Redirect fails Pin
Ankur\m/13-May-10 18:22
professionalAnkur\m/13-May-10 18:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.