How to set RadTextBox name attribute as static to use in JavascriptIn WPF, what are the differences between the x:Name and Name attributes?PostedFile Is Nothing on DataGrid File UploadASP.NET NamingContainer naming conventionUnrecognized attribute 'targetFramework'. Note that attribute names are case-sensitiveReturning “full” clientID in code behind (asp.net VB)Adding an attribute to a Telerik RadTextBoxWhat control is telerik asp.net mvc UI demo layout usingAsp.net web form user control with ClientIdMode = “static” cannot be accessed in javascriptRadwindow automatically re-sized when AutoSize=“False”Dynamic control 'ID' automatically added to 'name' attribute, instead of ID attribute

How closely correlated is culture to geography?

Why do Russians sometimes spell "жирный" (fatty) as "жырный"?

Is the "spacetime" the same thing as the mathematical 4th dimension?

Looking for circuit board material that can be dissolved

If I travelled back in time to invest in X company to make a fortune, roughly what is the probability that it would fail?

How to "Start as close to the end as possible", and why to do so?

Knights and Knaves: What does C say?

How dangerous are my worn rims?

Would a horse be sufficient buffer to prevent injury when falling from a great height?

What does "execute a hard copy" mean?

Decision Variable Value from a Set (Gurobi)

Did the Soviet army intentionally send troops (e.g. penal battalions) running over minefields?

French license plates

Does Bank Manager's discretion still exist in Mortgage Lending

A word that refers to saying something in an attempt to anger or embarrass someone into doing something that they don’t want to do?

How dangerous is a very out-of-true disc brake wheel?

Parent asking for money after moving out

GPLv3 forces us to make code available, but to who?

Citing CPLEX 12.9

How to say "respectively" in German when listing (enumerating) things

Could Boris Johnson face criminal charges for illegally proroguing Parliament?

The answer is a girl's name (my future granddaughter) - can anyone help?

PhD Length: are shorter PhD degrees (from different countries) valued differently in other counter countries where PhD Is a longer process?

What does a textbook look like while you are writing it?



How to set RadTextBox name attribute as static to use in Javascript


In WPF, what are the differences between the x:Name and Name attributes?PostedFile Is Nothing on DataGrid File UploadASP.NET NamingContainer naming conventionUnrecognized attribute 'targetFramework'. Note that attribute names are case-sensitiveReturning “full” clientID in code behind (asp.net VB)Adding an attribute to a Telerik RadTextBoxWhat control is telerik asp.net mvc UI demo layout usingAsp.net web form user control with ClientIdMode = “static” cannot be accessed in javascriptRadwindow automatically re-sized when AutoSize=“False”Dynamic control 'ID' automatically added to 'name' attribute, instead of ID attribute






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0















I am using telerik RadTextBox inside asp.net User Control page.



I have writen below Jquery validation code inside main content page as shown below, I am trying to set RadText box name attribute as static inside User Control so that I can use it in Main Content page.



User Control page



<telerik:RadTextBox ID="txtProductPrice" ClientID="txtProductPrice" 
runat="server" ClientIDMode="Static" />


Main Content Page:



 $("#aspnetForm").validate(
rules:
ctl00$ContentPlaceHolder1$ucUserInfoI$txtProductPrice:
required: true,
number: true,
maxlength: 5
,

);


I have used dynamically generated name attribute to validate the textbox, which looks ugly.



Since RadTexBox is in UserControl page , I am not able to use RadTexBox with UniqueID in main content page as below:



 $("#aspnetForm").validate(
rules:
<%=txtProductPrice.UniqueID %>:
required: true,
number: true,
maxlength: 5
,

);


Any idea how to I can use RadTexBox with UniqueID in main content page ?



Any help would be great.










share|improve this question





















  • 1





    Unobtrusive Validation enabled?

    – Sparky
    Mar 28 at 21:55











  • "So Is there any neat and shorter way to use name attribute inside Main Content page" ~ What are you asking? The plugin's parameter MUST match the actual rendered name attribute. If the name attribute is not neat and short, then you need blame ASP.

    – Sparky
    Mar 28 at 21:57


















0















I am using telerik RadTextBox inside asp.net User Control page.



I have writen below Jquery validation code inside main content page as shown below, I am trying to set RadText box name attribute as static inside User Control so that I can use it in Main Content page.



User Control page



<telerik:RadTextBox ID="txtProductPrice" ClientID="txtProductPrice" 
runat="server" ClientIDMode="Static" />


Main Content Page:



 $("#aspnetForm").validate(
rules:
ctl00$ContentPlaceHolder1$ucUserInfoI$txtProductPrice:
required: true,
number: true,
maxlength: 5
,

);


I have used dynamically generated name attribute to validate the textbox, which looks ugly.



Since RadTexBox is in UserControl page , I am not able to use RadTexBox with UniqueID in main content page as below:



 $("#aspnetForm").validate(
rules:
<%=txtProductPrice.UniqueID %>:
required: true,
number: true,
maxlength: 5
,

);


Any idea how to I can use RadTexBox with UniqueID in main content page ?



Any help would be great.










share|improve this question





















  • 1





    Unobtrusive Validation enabled?

    – Sparky
    Mar 28 at 21:55











  • "So Is there any neat and shorter way to use name attribute inside Main Content page" ~ What are you asking? The plugin's parameter MUST match the actual rendered name attribute. If the name attribute is not neat and short, then you need blame ASP.

    – Sparky
    Mar 28 at 21:57














0












0








0








I am using telerik RadTextBox inside asp.net User Control page.



I have writen below Jquery validation code inside main content page as shown below, I am trying to set RadText box name attribute as static inside User Control so that I can use it in Main Content page.



User Control page



<telerik:RadTextBox ID="txtProductPrice" ClientID="txtProductPrice" 
runat="server" ClientIDMode="Static" />


Main Content Page:



 $("#aspnetForm").validate(
rules:
ctl00$ContentPlaceHolder1$ucUserInfoI$txtProductPrice:
required: true,
number: true,
maxlength: 5
,

);


I have used dynamically generated name attribute to validate the textbox, which looks ugly.



Since RadTexBox is in UserControl page , I am not able to use RadTexBox with UniqueID in main content page as below:



 $("#aspnetForm").validate(
rules:
<%=txtProductPrice.UniqueID %>:
required: true,
number: true,
maxlength: 5
,

);


Any idea how to I can use RadTexBox with UniqueID in main content page ?



Any help would be great.










share|improve this question
















I am using telerik RadTextBox inside asp.net User Control page.



I have writen below Jquery validation code inside main content page as shown below, I am trying to set RadText box name attribute as static inside User Control so that I can use it in Main Content page.



User Control page



<telerik:RadTextBox ID="txtProductPrice" ClientID="txtProductPrice" 
runat="server" ClientIDMode="Static" />


Main Content Page:



 $("#aspnetForm").validate(
rules:
ctl00$ContentPlaceHolder1$ucUserInfoI$txtProductPrice:
required: true,
number: true,
maxlength: 5
,

);


I have used dynamically generated name attribute to validate the textbox, which looks ugly.



Since RadTexBox is in UserControl page , I am not able to use RadTexBox with UniqueID in main content page as below:



 $("#aspnetForm").validate(
rules:
<%=txtProductPrice.UniqueID %>:
required: true,
number: true,
maxlength: 5
,

);


Any idea how to I can use RadTexBox with UniqueID in main content page ?



Any help would be great.







asp.net .net telerik jquery-validate radtextbox






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 29 at 8:15







stom

















asked Mar 28 at 20:45









stomstom

3,3253 gold badges46 silver badges145 bronze badges




3,3253 gold badges46 silver badges145 bronze badges










  • 1





    Unobtrusive Validation enabled?

    – Sparky
    Mar 28 at 21:55











  • "So Is there any neat and shorter way to use name attribute inside Main Content page" ~ What are you asking? The plugin's parameter MUST match the actual rendered name attribute. If the name attribute is not neat and short, then you need blame ASP.

    – Sparky
    Mar 28 at 21:57













  • 1





    Unobtrusive Validation enabled?

    – Sparky
    Mar 28 at 21:55











  • "So Is there any neat and shorter way to use name attribute inside Main Content page" ~ What are you asking? The plugin's parameter MUST match the actual rendered name attribute. If the name attribute is not neat and short, then you need blame ASP.

    – Sparky
    Mar 28 at 21:57








1




1





Unobtrusive Validation enabled?

– Sparky
Mar 28 at 21:55





Unobtrusive Validation enabled?

– Sparky
Mar 28 at 21:55













"So Is there any neat and shorter way to use name attribute inside Main Content page" ~ What are you asking? The plugin's parameter MUST match the actual rendered name attribute. If the name attribute is not neat and short, then you need blame ASP.

– Sparky
Mar 28 at 21:57






"So Is there any neat and shorter way to use name attribute inside Main Content page" ~ What are you asking? The plugin's parameter MUST match the actual rendered name attribute. If the name attribute is not neat and short, then you need blame ASP.

– Sparky
Mar 28 at 21:57













1 Answer
1






active

oldest

votes


















1
















These steps can prove helpful to you:



1. For client-side logic, you can try using <%=txtProductPrice.ClientID %> instead of UniqueID.



2. Telerik controls are complex server and script controls and you should not use ClientIDMode="Static" with them. Details



3. Make sure you have the following setting in your web.config file as suggested by Sparky:





<appSettings> 
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>


    Here are some Details and More Details.



4. You can always use the $telerik.findControl method to manually access the RadTextBox and execute your custom logic. Details






share|improve this answer


























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );














    draft saved

    draft discarded
















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55406578%2fhow-to-set-radtextbox-name-attribute-as-static-to-use-in-javascript%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1
















    These steps can prove helpful to you:



    1. For client-side logic, you can try using <%=txtProductPrice.ClientID %> instead of UniqueID.



    2. Telerik controls are complex server and script controls and you should not use ClientIDMode="Static" with them. Details



    3. Make sure you have the following setting in your web.config file as suggested by Sparky:





    <appSettings> 
    <add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>


        Here are some Details and More Details.



    4. You can always use the $telerik.findControl method to manually access the RadTextBox and execute your custom logic. Details






    share|improve this answer





























      1
















      These steps can prove helpful to you:



      1. For client-side logic, you can try using <%=txtProductPrice.ClientID %> instead of UniqueID.



      2. Telerik controls are complex server and script controls and you should not use ClientIDMode="Static" with them. Details



      3. Make sure you have the following setting in your web.config file as suggested by Sparky:





      <appSettings> 
      <add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>


          Here are some Details and More Details.



      4. You can always use the $telerik.findControl method to manually access the RadTextBox and execute your custom logic. Details






      share|improve this answer



























        1














        1










        1









        These steps can prove helpful to you:



        1. For client-side logic, you can try using <%=txtProductPrice.ClientID %> instead of UniqueID.



        2. Telerik controls are complex server and script controls and you should not use ClientIDMode="Static" with them. Details



        3. Make sure you have the following setting in your web.config file as suggested by Sparky:





        <appSettings> 
        <add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>


            Here are some Details and More Details.



        4. You can always use the $telerik.findControl method to manually access the RadTextBox and execute your custom logic. Details






        share|improve this answer













        These steps can prove helpful to you:



        1. For client-side logic, you can try using <%=txtProductPrice.ClientID %> instead of UniqueID.



        2. Telerik controls are complex server and script controls and you should not use ClientIDMode="Static" with them. Details



        3. Make sure you have the following setting in your web.config file as suggested by Sparky:





        <appSettings> 
        <add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>


            Here are some Details and More Details.



        4. You can always use the $telerik.findControl method to manually access the RadTextBox and execute your custom logic. Details







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 1 at 8:35









        Eyup YuseinEyup Yusein

        1415 bronze badges




        1415 bronze badges

































            draft saved

            draft discarded















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55406578%2fhow-to-set-radtextbox-name-attribute-as-static-to-use-in-javascript%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현