Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASPx page used to execute Query needs to post results to itself

Reply
Thread Tools

ASPx page used to execute Query needs to post results to itself

 
 
Beryl Small
Guest
Posts: n/a
 
      12-02-2003
Okay,

I have a third party (Macromedia Authorware ) software passing a student
I.D. number to an ASP page for verification against an SQL database.
Authorware uses something like the following:
result:=PostUrl: http://myserver/MyAsp.aspx?Student=StudentID
MyAsp.aspx has VB code that executes a Stored Procedure to return the
student's name. I need to post the result back to the same form in order
for the "result:=" variable in Authorware to receive the student's name.
All this has to be done without the page ever being displayed on the client
computer.

My code looks like this:

strSocSec = Request.QueryString("File")

Dim Student As RemoteTestingDB = New RemoteTestingDB

Dim strStudent As String = Student.CheckStudent(strSocSec)

strSTudent holds the student name. Code works fine I just don't know how to
dismiss the page and make the strStudent variable the result of the
initiating call.


 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      12-02-2003
you'd be better off doing a SOAP call, rather than a post. but even using
the post, you just have to format the reponse in someway that is easy to
parse in Macromedia's macro langauge (javascript).

-- bruce (sqlwork.com)


"Beryl Small" <> wrote in message
news:...
> Okay,
>
> I have a third party (Macromedia Authorware ) software passing a student
> I.D. number to an ASP page for verification against an SQL database.
> Authorware uses something like the following:
> result:=PostUrl: http://myserver/MyAsp.aspx?Student=StudentID
> MyAsp.aspx has VB code that executes a Stored Procedure to return the
> student's name. I need to post the result back to the same form in order
> for the "result:=" variable in Authorware to receive the student's name.
> All this has to be done without the page ever being displayed on the

client
> computer.
>
> My code looks like this:
>
> strSocSec = Request.QueryString("File")
>
> Dim Student As RemoteTestingDB = New RemoteTestingDB
>
> Dim strStudent As String = Student.CheckStudent(strSocSec)
>
> strSTudent holds the student name. Code works fine I just don't know how

to
> dismiss the page and make the strStudent variable the result of the
> initiating call.
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enbedding aspx page into another aspx page and post back Naga_01 Software 0 06-06-2006 05:51 AM
Can i execute aspx file in my asp pag with server.execute method(sorry) Savas Ates ASP General 1 08-17-2004 04:52 PM
How do I post data from aspx page to another aspx page. Sriram Mallajyosula ASP .Net 1 11-05-2003 04:48 PM
aspx Page events execute twice after HTTP POST Lewis ASP .Net 1 08-20-2003 01:46 PM
aspx Page events execute twice after HTTP POST Lewis ASP .Net 1 08-20-2003 01:46 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57