开发者

variable in ASP not working

开发者 https://www.devze.com 2023-03-13 02:55 出处:网络
Probably a simple answer to this. In php, something like this would work fine. Why doesn\'t this code work? The variable \"Does not exist under the current 开发者_如何学JAVAcontext\".

Probably a simple answer to this. In php, something like this would work fine. Why doesn't this code work? The variable "Does not exist under the current 开发者_如何学JAVAcontext".

    <% string var = Page.Request.Form["DropDownList1"]; %>
    <title><% Response.Write(var); %></title>

Thanks


A variable declared in a Content Control is scoped only within the Content Control

See here for an example

0

精彩评论

暂无评论...
验证码 换一张
取 消