|
Let us say you created web service with some web method called
foo(). Now you create a web page in a new project from which you want to call this web service.
The first thing you need to do is to add a web reference to the Reference node of your project. This opens up a wizard where you need to reference your .asmx or .wdl url reference. Once you do this, you have the localhost( your local website)with the web service ready.
Add a button to your page. In the click event you need to create the following code. Before you write this code, at the top of the page, you need to add:
imports localhost.service1
in the click event add the following code:
dim mysvc as new service1
document.write(mysvc.foo())
ps;The service1 is having the method foo() when you created the web service. I will try to write a codewalk on this next time to the CodeProject.
|
|
|
|
|
How do I shutdown a webserver from a browser page with frames
Senthil
|
|
|
|
|
Could you be more specific with this? Are you using ASP or ASPX?
~javier lozano
(blog || email)
|
|
|
|
|
Hi
The server is a java application
Scripts used are javascript. The page has frames
Best
Senthil
|
|
|
|
|
still a little vague...
~javier lozano
(blog || email)
|
|
|
|
|
How to collect garbage in JS effectively?
i came across a function CollectGarbage in JS which can do the task but the article says that it is undocumented and in testing. That article was of May 2001. but the function is stil there in IE6. Anyone who know consequences of using CollectGarbage or have ever used the function
Regards
Muhammad Shoaib Khan
http://geocities.com/lansolution
|
|
|
|
|
AWS Report for OpenListing
---------------------------------
Hi..
Can any one help me Generate & Get Open Listing report in Amazon Web Services (AWS)
Just need steps..
Thanks
Never consider anything Impossible before trying to solve that..---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
|
|
|
|
|
hey if you get the code please let me know as well
ZAK
|
|
|
|
|
Suppose you have a web server which is completely dumb, and a client which is served a webpage from that server.
The client opens a socket and sends commands to the server. This works very well with java, but we need to use a handheld pc such as a Palm Tungsten, which doesn't have a java enabled browser...
The web server just serves pages, it's completely dumb in that respect, no ASP, no PHP, no perl, nothing spiffy and useful like that.
|
|
|
|
|
yeah...what about it? All do is send simple HTTP request to this server and get databack. It's not that hard, I've done it before with my pocket pc...why you ask about this?
Here's one for quicks:
on your PC open a command window (cmd.exe), then type the following:
<br />
telnet www.codeproject.com 80<br />
after the screen goes blank type the following:
<br />
GET / <br />
hit <Enter> twice...
There you have it, a simple HTTP request.
~javier lozano
(blog || email)
|
|
|
|
|
I want to make a select box in a Javascript function, this is my code:
var val = new Array('0','1','2','3','4','5');
var lis = new Array('java','php','asp','jsp','vbscript','jscript');
function makeOption(obj,selectID)
{
obj.options[0] = new Option(lis[0],val[0],false,false)
for(i=1;i<lis.length;i++)
if (val[i]==selectID){
obj.options[i] = new Option(lis[i],val[i],false,true);
}
else{
obj.options[i] = new Option(lis[i],val[i],false,false);
}
}
var selectID = 3
makeOption(document.form1.ProgramList,selectID);
The trouble is in Netscape the selectlist can't make selected with selectID("asp"), the selectlist its always select the first item "java". But this code run correct in IE.
Is Anybody can help me, please? Thanks for all response!
|
|
|
|
|
I have a table layout that uses CSS to format the background color of the cells, etc. The problem is when I use any of the border styles, the space for the border is drawn, but not the color. (i.e. if I have border-bottom: solid 1px black; it I get a 1 px, solid WHITE border. I have tried many colors and it always ends up white. I also changed the width to something big, like 10px, and once again, I got a 1px, WHITE border. Any ideas???
There's a fine line between confidence and arrogance.
|
|
|
|
|
Hi,
What browsers are you using to render the HTML? Also, are you setting the class at the table level or the cell level.
I don't seem to have any problems using IE6. Can you post the HTML of the table + defined CSS that you are using.
Cheers,
Andy
|
|
|
|
|
Hi,
I am trying divide my display into pages.i.e if there are 400 records then if I display 10 records in 1 page,I have 40 pages.Now I have certain conditional sql statements for which I have to retain the values of the dropboxes from which I select the Author,Name and Title of the book with the following code.
if request("ACTION")="Submit" then
for i = 1 to Request.Form.Count
'if Request.Form.Key(i)<>"ACTION" then
iname = Request.Form.Key(i)
ival = Request(iname)
if i>1 then filterIS = filterIS & "&"&iname&"="&ival else filterIS="&"&iname&"="&ival
next
session("filterIS")= filterIS
end if
but now this session variable is lost when I click on different page nos on my page.
%><%=x%><%
Please tell me how do I retain the value of filterIS so that the records for respective pages are displayed.
Thanks
|
|
|
|
|
I have read articles explaining how to host a .NET Windows Form within IE and I have a general question that perhaps someone can answer and save me some research. Once a .NET control has been constructed within IE, can this control communicate back to the HTML page that is hosting it? Can I push a button within the .NET control, and have C# code find an HTML element on it's parent page and perform an operation on it (change its color or update its value)?
If that's possible, is the reverse possible? Can a javascript operation on an HTML button, call a method within that .NET control that it's hosting? If these things are possible, can you point me to where I need to look to implement these behaviors?
Thank you in advance for any input.
-Ron Ward
|
|
|
|
|
|
Thank you for the article...that is a big help.
|
|
|
|
|
hi all,
kindly someone explain the process and coding as to how to download a file from client to server,as we generally do in attaching files thru mail
|
|
|
|
|
Two questions to help me with an answer:
1) Do you mean upload instead of download?
2) And if 'upload', using what? ASPX or a Windows Form application?
Thanks!
~javier lozano
(blog || email)
|
|
|
|
|
sorry for the mistake, its uploading to the server, it would be great if u can explain both ways, aspx and windows form application
thanks for the same
|
|
|
|
|
hi!
i'm a newbie to web development and wonder if anyone knows how to set up an audio recorder at a website?
|
|
|
|
|
pork chop wrote:
i'm a newbie to web development and wonder if anyone knows how to set up an audio recorder at a website?
Recording what?
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
The Second EuroCPian Event will be in Brussels on the 4th of September
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
|
|
|
|
|
hi!
i need to implement a voice recorder...
ie.. the viewer at my website wil be able to record his voice using a mic. his voice will then be stored in a file so that i can have access to the file
|
|
|
|
|
I've seen photography sites where, around each photo, a picture frame is displayed. How is this done?
My first guess would be to set the background of each data cell in a table to a transparent frame image, then use an IMG tag to load the picture over it. The picture would have to be resized to be slightly smaller than the frame image, though, and might get screwed up by oddball monitor resolutions. Would that work? What other technique would you suggest?
"My kid was Inmate of the Month at Adobe Mountain Juvenile Corrections Center" - Bumper Sticker in Bullhead City
|
|
|
|
|
Well one drastically different way would be to generate framed images with a program and use the new image on the site. Thus eliminating all HTML, CSS browser compatibility delightfulness. You could use the app dynamically or when the image is added to the site.
From the little I know of the .NET framework and ASP.NET I would think that would be fairly easy to do dynamically.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|