This is a migrated thread and some comments may be shown as answers.

How could i Validation in radtextbox web address

3 Answers 128 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Tamim
Top achievements
Rank 1
Tamim asked on 15 Oct 2012, 06:42 AM

Hi

I have used Textbox in Web Address.
How to check Validation web address.
Below my coding and also see my screen shot.



<telerik:RadTextBox Width="95%" ID="WebAddress" AutoCompleteType="Disabled" runat="server" FocusedStyle-BackColor="Lavender"
                                                            Text='<%# Bind("webaddress") %>' MaxLength="50" onkeydown = "return (event.keyCode!=13);" CssClass="Lowercase1">
                                                        </telerik:RadTextBox>

<telerik:RadInputManager ID="RadInputManager1" runat="server" EnableEmbeddedSkins="false">
<telerik:RegExpTextBoxSetting ValidationExpression="^\w+([-+.']\w+)*\.\w+([-.]\w+)*$"
                                                            ErrorMessage="Web Address">
                                                            <TargetControls>
                                                                <telerik:TargetInput ControlID="WebAddress" />
                                                            </TargetControls>
                                                        </telerik:RegExpTextBoxSetting>
</telerik:RadInputManager>


Thanks
Ansari

3 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 18 Oct 2012, 06:59 AM
Hello Ansari,

The RadInputManager is used to extend the functionality of the default asp:TextBox. In other words you can use it to validate asp:TextBox. Check out this demo to see how it works. If you want to validate the RadTextBox you have to use the asp:RegularExpressionValidator. For a live example, see the Validation demo

All the best,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Tamim
Top achievements
Rank 1
answered on 18 Oct 2012, 09:11 AM
Thanks for ur reply Kostadin

Ur answer its working good,
i want same validation in web address also.

Thanks
Ansari.
0
Kostadin
Telerik team
answered on 23 Oct 2012, 07:03 AM
Hello Ansari,

You could use some of the approaches in the demos provided in my previous reply to validate the web address. First, choose what kind of control you would like to use, whether the Telerik RadTextBox or the default asp:TextBox. Note that you could not use Telerik RadTextBox with the RadInputManager like you tried in your first post.

All the best,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Tamim
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Tamim
Top achievements
Rank 1
Share this question
or