开发者

Use different name in asp:hiddenfield

I have a for which is built within an ASP.net usercontrol. Th开发者_开发技巧is form is then used within a CMS as part of integration with a merchant gateway. The gateway requires that a number of hiddenfields be passed in which is fine in the main however one of these needs to be called Profile. The CMS I am using also defines a global variable called Profile and as such when I try and add a hidden field with this ID I get errors.

Is there a way of setting the 'name' property to Profile, and the ID to something different?


How about using plain HTML:

<input type="hidden" 
       name="Profile" 
       id="SomeId" 
       value="<%= Server.HtmlEncode("some value") %>" 
/>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜