Click here to Skip to main content
15,923,273 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Sr No in GridView Pin
varshavmane2-Apr-07 18:28
varshavmane2-Apr-07 18:28 
GeneralRe: Sr No in GridView Pin
Nicejith2-Apr-07 18:35
Nicejith2-Apr-07 18:35 
GeneralRe: Sr No in GridView Pin
Nicejith2-Apr-07 18:46
Nicejith2-Apr-07 18:46 
GeneralRe: Sr No in GridView Pin
varshavmane2-Apr-07 18:50
varshavmane2-Apr-07 18:50 
GeneralRe: Thanks for the help Pin
varshavmane2-Apr-07 19:06
varshavmane2-Apr-07 19:06 
GeneralRe: Thanks for the help Pin
Nicejith2-Apr-07 19:37
Nicejith2-Apr-07 19:37 
QuestionEncripting with a hard condition Pin
nxde20002-Apr-07 16:36
nxde20002-Apr-07 16:36 
Questioncalling a java servlet from a asp.net page Pin
dub_beat2-Apr-07 15:44
dub_beat2-Apr-07 15:44 
Hi,

I was wondering if somebody could tell me how to call a java servlet from an asp.net page and process the value returned from the servlet.

Im working with a servlet that does exactly what I need. Basically I enter one value and it returns another.

I've tried using httpResonse, httpRequest as follows>

*****************************************************

string getVars = "1234567";

HttpWebRequest WebReq = (HttpWebRequest)WebRequest.Create(string.Format("http://localhost:80/demo1_res{0}",getVars));

WebReq.Method = "GET";

HttpWebResponse WebResp = (HttpWebResponse)WebReq.GetResponse();



Stream Answer = WebResp.GetResponseStream();
StreamReader _Answer = new StreamReader(Answer);

******************************************************

If I were to run the servlet by its self I enter a number into a text box and press submit. The submit button action is called "demo1_res".

I need a way to call the servlet passing the parameter and execute the method?

But i get this error
"System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.GetResponse()"

Im very new to all of this and im not really too sure how to approach the problem.

Thanks

Dub
AnswerRe: calling a java servlet from a asp.net page Pin
N a v a n e e t h2-Apr-07 17:49
N a v a n e e t h2-Apr-07 17:49 
Questionscrollbars Pin
753252002-Apr-07 12:17
753252002-Apr-07 12:17 
QuestionAdd music player to website Pin
musicDiva2-Apr-07 10:04
musicDiva2-Apr-07 10:04 
AnswerRe: Add music player to website Pin
Nicejith2-Apr-07 19:34
Nicejith2-Apr-07 19:34 
GeneralRe: Add music player to website Pin
musicDiva3-Apr-07 4:07
musicDiva3-Apr-07 4:07 
Questionformview's textbox Pin
jkaput2-Apr-07 9:47
jkaput2-Apr-07 9:47 
QuestionIs there alternative way to Insert Data into Database? Pin
Abubakarsb2-Apr-07 9:35
Abubakarsb2-Apr-07 9:35 
QuestionGridView with ShowFooter and 0 rows Pin
-Dr_X-2-Apr-07 9:30
-Dr_X-2-Apr-07 9:30 
AnswerRe: GridView with ShowFooter and 0 rows Pin
kubben2-Apr-07 10:11
kubben2-Apr-07 10:11 
GeneralRe: GridView with ShowFooter and 0 rows Pin
-Dr_X-2-Apr-07 10:21
-Dr_X-2-Apr-07 10:21 
Questionconditional hyperlink with repeater Pin
tvfoto2-Apr-07 5:50
tvfoto2-Apr-07 5:50 
QuestionTreeView help!! Pin
r_jaz2-Apr-07 5:49
r_jaz2-Apr-07 5:49 
QuestionDeclaring an array Pin
Oga M2-Apr-07 4:46
Oga M2-Apr-07 4:46 
AnswerRe: Declaring an array Pin
badgrs2-Apr-07 5:29
badgrs2-Apr-07 5:29 
GeneralRe: how to: multi lingual webpage Pin
Sylvester george2-Apr-07 3:46
Sylvester george2-Apr-07 3:46 
QuestionPrinting a string variable using Javascript function [modified] Pin
indian1432-Apr-07 3:34
indian1432-Apr-07 3:34 
AnswerRe: Printing a string variable using Javascript function Pin
Guffa2-Apr-07 6:01
Guffa2-Apr-07 6:01 

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.