如何创建webusertag或非英语 [英] How to create webusertag otherthan Non English
问题描述
嗨代码项目团队,
我有一个疑问在asp.net中我使用c#创建了一个asp.net web应用程序,在此我创建了一个webuser控件我的页面名称是Usercontrol.ascx。
我使用注册标记名,Tagprefix我调用了在asp.net页面即Myusercontrol.aspx
我可以这样打电话吗
< %@注册TagPrefix =వTagName =విSrc =〜/ ROPA / WebuserControllers / Feedback.ascxCulture =te-IN%>
TagPrefix以外的英语Tagname也不是英语。
目前我正在使用泰卢固语来调用这个我已经用Google搜索了这个问题没有解决方案。
<%@ Page Language =C#AutoEventWireup =trueCodeFile =FeedBackUsingWebUSer.aspx.csInherits =ROPA_FormsUsing_WebuserControllers_FeedBackUsingWebUSerUICulture =teCulture =te-IN%>
<!DOCTYPE html PUBLIC - // W3C // DTD XHTML 1.0 Transitional // ENhttp://www.w3.org/TR/xhtml1/DTD/ xhtml1-transitional.dtd>
< html xmlns =http://www.w3.org/1999/xhtml>
< head runat =server>
< meta http-equiv =Content-Typecontent =text / html; charset = utf-8/>
< title>< / title>
< ;%@注册TagPrefix =వTagName =విSrc =〜/ ROPA / WebuserControllers / Feedback.ascx%>
< / head>
< body>
< form id =form1runat =server>
Hi Code project Team,
I have one doubt in asp.net I have created one asp.net web applicaition using c#, In this I have created one webuser control My page name is "Usercontrol.ascx".
My using Registration Tagname , Tagprefix I called in asp.net page i.e "Myusercontrol.aspx"
Can I call like this
<% @ Register TagPrefix="వ" TagName="వి" Src="~/ROPA/WebuserControllers/Feedback.ascx" Culture="te-IN" %>
TagPrefix other than English language Tagname also other than english language.
Currently I am using Telugu language for calling this I have googled for this problem No solution for this.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FeedBackUsingWebUSer.aspx.cs" Inherits="ROPA_FormsUsing_WebuserControllers_FeedBackUsingWebUSer" UICulture="te" Culture="te-IN" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title></title>
<% @ Register TagPrefix="వ" TagName="వి" Src="~/ROPA/WebuserControllers/Feedback.ascx" %>
</head>
<body>
<form id="form1" runat="server">
< వ:విid =sandruant =serverculture =te-INxmlns:వ=#unknown/>
<వ:వి id="sand" ruant="server" culture="te-IN" xmlns:వ="#unknown" />
< asp:按钮ID =lgoutbttnrunat =serverText =Logoutonclick = lgoutbttn_Click/>
<asp:Button ID="lgoutbttn" runat="server" Text="Logout" onclick="lgoutbttn_Click" />
< / form>
< /身体>
< / html>
你能帮助我解决这个问题。
</form>
</body>
</html>
Can you guys any one help me slove this.
推荐答案
请看我对这个问题的评论。无论如何,看起来你需要从这里开始: http:// msdn .microsoft.com / zh-CN / library / c6zyy3s9%28v = vs.100%29.ASPX [ ^ ]。
此CodeProject文章也可以有用:在ASP.NET中使用全球化和本地化 [ ^ ]。
-SA
Please see my comment to the question. Anyway, it looks like you need to start here: http://msdn.microsoft.com/en-us/library/c6zyy3s9%28v=vs.100%29.ASPX[^].
This CodeProject article can also be useful: Using Globalization and Localization in ASP.NET[^].
—SA
我不希望标签名称必须是英文名称以外的名称
一般
< myusertag:tagprefix runat =serverxmlns:myusertag =#unknown>
< teluguwordhere:teluguwordhere runat =serverxmlns:t eluguwordhere =#unknown/>
No I want tag name must be in other than english names
Genrally
<myusertag:tagprefix runat="server" xmlns:myusertag="#unknown">
<teluguwordhere:teluguwordhere runat="server" xmlns:teluguwordhere="#unknown" />
这篇关于如何创建webusertag或非英语的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!