开发者

variable in ASP not working

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜