I am using LinkButton to run an email template. When I click LinkButton, I need to disable all field validation tools
I tried the causevalidation property, but the checks still fire.
How to do this in C # / asp.net?
Well, I don’t think you need to disable check items. I assume that you have another button on the page that runs all the checks, but you just want to skip them for that button.
Use CauseValidation = falsein your LinkButton
CauseValidation = false
<asp:LinkButton id="LinkButton1" runat="server" Text="Generate Template" CausesValidation="False"> </asp:LinkButton >
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.button.causesvalidation%28VS.80%29.aspx
OnClick LinkButton , , .
<asp:LinkButton runat="server" OnClick="btnLinkButton_Click"></asp:LinkButton>
protected void btnLinkButton_Click(object sender, EventArgs e) { control1.Enabled = false; control2.Enabled = false; }
, , .NET.
Source: https://habr.com/ru/post/1744795/More articles:good documentation on "avoidance of the trap" in the context of a web server - javaGet & set drop down value using jQuery - javascriptCxf HTTPS client example - javaimplementation of UIActivityIndicatorView when loading NSData dataWithContentsOfURL - iphoneHow to find current editing slide in PowerPoint? - delphihttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1744796/what-vimrc-settings-to-speed-up-scrolling&usg=ALkJrhjzvnmTsqDcfbDL-GG-tujYxcrebQHow to get FPS from JavaFX scene? - performanceefficient sorting with custom mapping, but not callback function - cJsonResult MVC method does not accept parameter - jsonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1744800/aspnet-memcached-where-and-when-should-i-check-for-conditions-to-invalidate-data&usg=ALkJrhgeERbk3uqDUCySJ79ZbtxwULlkUgAll Articles