asp如何獲取另面的文字返回值,asp如何獲取另一頁面的文字返回值?

時間 2021-10-14 20:24:20

1樓:匿名使用者

其實很簡單

<% a=request("action")if a="***x" then response.write "成功"

if a="zzz" then response.write "不成功"

%>

2樓:酒瓶裡的蚊子

<%'用於編碼轉換的函式

function bytestobstr(body,cset)

set objstream = server.createobject("adodb.stream")

objstream.type = 1

objstream.mode =3

objstream.open

objstream.write body

objstream.position = 0

objstream.type = 2

objstream.charset = cset

bytestobstr = objstream.readtext

objstream.close

set objstream = nothing

end function

function newstring(wstr,strng)

newstring=instr(lcase(wstr),lcase(strng))

if newstring<=0 then newstring=len(wstr)

end function

'抓取網頁內容的函式

'頁面開始執行

dim tempresult '儲存返回值的變數

'--------上面url中的localhost是我測試時用的,你得替換成自己的正確url

if tempresult = "yyy" then '判斷返回值的內容

response.write "操作成功"

else

response.write "操作失敗"

end if

%>

3樓:匿名使用者

<%dim inputinf

inputinf=request.querystring("action")

if inputinf="yyy" thenresponse.write("操作成功")else if inputinf="zzz" thenresponse.write("操作失敗")end if

%>

求助:asp如何獲取url的返回值

4樓:田響建站

dim x '例index.asp?x=123456

x=request("x")

c# asp.net 網頁彈另一個頁面,取一個值,返回當前頁面的文字框!

ASP獲取值某個表裡面的欄位

這樣寫 dim usertype dim sql sql select from reguser rs.open sql,conn,3 if not rs.eof then usertype rs usertype end if if usertype 醫院 then 釋出新資訊 else 釋出新資...

jquery如何獲取textarea文字域的值

jquery可以用 text 函式獲取textarea文字域的值。1 新建html檔案,在body標籤中新增textarea標籤,為這個標籤設定一個id,這裡以 demo 為例,然後在標籤內輸入一些內容 2 引入jquery檔案,然後新增script標籤,新增 demo text 然後將jquery...

jquery如何獲取選擇的文字,jquery怎麼獲取td的文字內容

baby 原來 this is test 收藏 ie ff都好用,其他的嘿嘿沒試過 var cursorposition if textarea.setselectionrange else if document.selection rangedata.start i rangedata.end ...