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

ASP.NET

 
QuestionTree View Control Pin
varshavmane2-Mar-07 1:23
varshavmane2-Mar-07 1:23 
AnswerRe: Tree View Control Pin
Sathesh Sakthivel2-Mar-07 1:46
Sathesh Sakthivel2-Mar-07 1:46 
QuestionFocus for Div tag Pin
sparkling star2-Mar-07 1:02
sparkling star2-Mar-07 1:02 
AnswerRe: Focus for Div tag Pin
Chris Buckett2-Mar-07 5:53
Chris Buckett2-Mar-07 5:53 
GeneralRe: Focus for Div tag Pin
sparkling star5-Mar-07 20:43
sparkling star5-Mar-07 20:43 
AnswerRe: Focus for Div tag Pin
Vasudevan Deepak Kumar6-Mar-07 9:49
Vasudevan Deepak Kumar6-Mar-07 9:49 
Questioncalling a webservice through javascript Pin
saqib822-Mar-07 0:55
saqib822-Mar-07 0:55 
AnswerRe: calling a webservice through javascript Pin
Khan.Bangash2-Mar-07 1:03
Khan.Bangash2-Mar-07 1:03 
<%@ WebService Language="VB" Class="Samples.AspNet.SimpleWebService" %>

Imports System.Web
Imports System.Web.Services
Imports System.Xml
Imports System.Web.Services.Protocols
Imports System.Web.Script.Services

Namespace Samples.AspNet

<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ScriptService()> _
Public Class SimpleWebService
Inherits System.Web.Services.WebService

<WebMethod()> _
Public Function EchoInput(ByVal input As String) As String
Dim inputString As String = Server.HtmlEncode(input)
If Not String.IsNullOrEmpty(inputString) Then
Return String.Format("You entered {0}. The " + _
"current time is {1}.", inputString, DateTime.Now)
Else
Return "The input string was null or empty."
End If

End Function 'EchoInput
End Class 'SimpleWebService

End Namespace
This is asmx File and this is aspx file
<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">
<style type="text/css">
body { font: 11pt Trebuchet MS;
font-color: #000000;
padding-top: 72px;
text-align: center }

.text { font: 8pt Trebuchet MS }
</style>

<title>Simple Web Service</title>

<script type="text/javascript">

// This function calls the Web Service method.
function EchoUserInput()
{
var echoElem = document.getElementById("EnteredValue");
Samples.AspNet.SimpleWebService.EchoInput(echoElem.value,
OnSucceeded);
}
GeneralRe: calling a webservice through javascript Pin
saqib822-Mar-07 1:40
saqib822-Mar-07 1:40 
GeneralRe: calling a webservice through javascript Pin
DavidNohejl2-Mar-07 2:56
DavidNohejl2-Mar-07 2:56 
GeneralRe: calling a webservice through javascript Pin
Haissam3-Mar-07 14:19
Haissam3-Mar-07 14:19 
GeneralRe: calling a webservice through javascript Pin
DavidNohejl3-Mar-07 14:28
DavidNohejl3-Mar-07 14:28 
GeneralRe: calling a webservice through javascript Pin
Haissam3-Mar-07 15:00
Haissam3-Mar-07 15:00 
AnswerRe: calling a webservice through javascript Pin
Vasudevan Deepak Kumar4-Mar-07 2:11
Vasudevan Deepak Kumar4-Mar-07 2:11 
QuestionTextbox to display Pin
Oga M2-Mar-07 0:26
Oga M2-Mar-07 0:26 
QuestionRefreshing Parent Page Pin
Khan.Bangash2-Mar-07 0:18
Khan.Bangash2-Mar-07 0:18 
AnswerRe: Refreshing Parent Page Pin
nikneem20052-Mar-07 14:07
nikneem20052-Mar-07 14:07 
QuestionGridView Update command Pin
Member 37415621-Mar-07 23:56
Member 37415621-Mar-07 23:56 
AnswerRe: GridView Update command Pin
Paddy Boyd2-Mar-07 0:07
Paddy Boyd2-Mar-07 0:07 
QuestionHow to convert the doc file into HTML Pin
hirenparekh1-Mar-07 23:51
hirenparekh1-Mar-07 23:51 
AnswerRe: How to convert the doc file into HTML Pin
Paddy Boyd2-Mar-07 0:01
Paddy Boyd2-Mar-07 0:01 
AnswerRe: How to convert the doc file into HTML Pin
bgriffin_tpa2-Mar-07 9:11
bgriffin_tpa2-Mar-07 9:11 
GeneralHow to convert the doc file into HTML Pin
hirenparekh2-Mar-07 16:11
hirenparekh2-Mar-07 16:11 
AnswerRe: How to convert the doc file into HTML Pin
Vasudevan Deepak Kumar4-Mar-07 2:12
Vasudevan Deepak Kumar4-Mar-07 2:12 
QuestionTextbox to display Pin
Oga M1-Mar-07 23:34
Oga M1-Mar-07 23:34 

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.