将ASP.net程序的方法发布到VB中 [英] Post method of ASP.net program into vb

查看:75
本文介绍了将ASP.net程序的方法发布到VB中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP.net程序.它包含:

I have an ASP.net program. It contains:

<%
    If Request.ServerVariables("REQUEST_METHOD") = "POST"
        Dim num = Request.Form("TextBox1")
    End If
%>



这将使用post方法从另一个aspx文件中获取TextBox1.

我想知道的是如何稍后在同一文件中将变量"num"放入vb程序中?

一种方式:



This will bring TextBox1 from another aspx file using the post method.

What I want to know is how to get the variable "num" into a vb program later in the same file?

One way:

<asp:Label ID="num1" runat="server" Text="<% num %>"></asp:Label>



有什么方法可以将变量直接插入vb程序本身吗?



Is there any way of inserting the variable right into the vb program itself?

推荐答案

带有vb代码的ASP.net程序.不是VB.net,这是一个完全不同的程序.

我希望从另一个aspx程序中插入Textbox1数据,并使用post方法在当前的aspx程序中使用该数据.
ASP.net program with vb code. Not VB.net that is a totally different program.

I am looking to insert Textbox1 data from another aspx program and using that data in my current aspx program using the post method.


这篇关于将ASP.net程序的方法发布到VB中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆