Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# radtextbox验证url_C#_Asp.net_Telerik_Radtextbox - Fatal编程技术网

C# radtextbox验证url

C# radtextbox验证url,c#,asp.net,telerik,radtextbox,C#,Asp.net,Telerik,Radtextbox,我有一个radtextbox,我想在其中提示用户输入URL,radtextbox中是否存在验证此输入的属性?如果没有,我可以使用什么来允许用户输入URL 如能就此事提供任何建议,我将不胜感激 因为他们使用一个文本框并用JavaScipt分配一个掩码 ASP_按钮 <asp:TextBox runat="server" ID="txtOrigeenHup" CssClass="mycssMascara" Width="390px" TextMode="MultiLine" Tex

我有一个radtextbox,我想在其中提示用户输入URL,radtextbox中是否存在验证此输入的属性?如果没有,我可以使用什么来允许用户输入URL

如能就此事提供任何建议,我将不胜感激


因为他们使用一个文本框并用JavaScipt分配一个掩码

ASP_按钮

<asp:TextBox runat="server" ID="txtOrigeenHup" CssClass="mycssMascara" Width="390px" 
     TextMode="MultiLine" Text='<%# Eval("urlOrigen") %>' 
     onfocus="OnFocus(this.id,'http://paginaEjemplo.com')" 
     onblur="OnBlur(this.id,'http://paginaEjemplo.com')">http://paginaEjemplo.com asp>
CSS

使用输入类型

自2011年第三季度起,RadTextBox支持新的HTML5输入类型

例如:

<telerik:RadTextBox ID="txt1" runat="server" RenderMode="Lightweight" Label="Image Url: " MaxLength="100" ToolTip="Put URL ..." InputType="Url" />

 .mycssMascara
{
 font-weight: normal; color: #808080; background-color: #FFFFFF; border: 1px solid #C0C0C0; letter-spacing: 0pt; word-spacing: 1pt; font-size: 14px; text-align: left; font-family: arial, helvetica, sans-serif; line-height: 1; margin: 4px; padding: 6px;
}

.mycss
{ font-weight: normal; color: #000000;  background-color: #FFFFFF; border: 1px solid #C0C0C0; letter-spacing: 
0pt;  word-spacing: 1pt; font-size: 14px; text-align: left; font-family: arial, helvetica, sans-serif; line-height: 1; margin: 4px;  padding: 6px;
}
<telerik:RadTextBox ID="txt1" runat="server" RenderMode="Lightweight" Label="Image Url: " MaxLength="100" ToolTip="Put URL ..." InputType="Url" />