Home » Tutorials » Archive by categoryASP.NET (Page 3)

call code behind method from javascript, asp.net

Call code behind method from javascript, asp.net There are two ways to access code behind method in asp.net using JavaScript: Using ScriptManager and WebMethod Using Jquery and  button click from JavaScript Lets Discuss one by one. 1)  Using ScriptManager and WebMethod First of all add script manager on your...
Continue reading

OpenClose ShowHide Ajax Modalpopupextender using JavaScript in asp.net

Hey guys, I will explain the very nice topic which is OpenClose ShowHide Ajax Modalpopupextender using JavaScript in asp.net, which is very help full to show custom messages in your programming. OpenClose ShowHide Ajax Modalpopupextender using JavaScript in asp.net sample code is as bellow: [crayon-5c6aac0db847b098945894/] Download sample code: OpenClose ShowHide...
Continue reading

Encrypt string

Below is the simple string encryption logic to encrypt string in asp.net. Anybody can change the logic to make it different then the default asp.net encryption logic for security perpose. Below is the code to Encrypt String [crayon-5c6aac0db860d549987619/]  
Continue reading

alert from code behind asp.net

Please if you want to understand this functionality Difference between RegisterClientScriptBlock and RegisterStartupScript with asp.net. This will give you a clear idea for RigisterClientScriptBlock and RegisterStartupScript which helps you to understand how we can achieve alert from code behind as well as how can we call javascript method from...
Continue reading

required field validator in asp.net

Now I want to write required field validator in asp.net, RequiredFieldValidator for drop down list in asp.net, required field validator for textbox in asp.net. RequireFieldValidator control is most used validation control in the family of validation controls. Despite its broad use it still very easy to implement it.We just...
Continue reading

Difference between RegisterClientScriptBlock and RegisterStartupScript asp.net

Difference between RegisterClientScriptBlock and RegisterStartupScript asp.net are as bellowed: 1) The method RegisterStartupScript adds Javascript to the web form right before the ending ‘form’ tag whereas the method RegisterClientScriptBlock adds Javascript to the web form, right after the starting ‘form’ tag . 2) The method RegisterStartupScript is used when...
Continue reading

Enable or Disable ASP.NET Validation on Client Side

Enable or Disable ASP.NET Validation on Client Side We can enable or disable the validation controls of asp.net using the ValidatorEnable() method of java script. So based on some condition we can decide how validation controls will work. Suppose i have a one check box, if user selects this...
Continue reading

Send email from asp.net

Send email from asp.net:  If one want to send email from website using code, one can send using bellow sample code, this is only possible with SMTP(Simple Mail Transfer Protocol).  We need to add name space System.Web.Mail as shown in sample code [crayon-5c6aac0db8ea0066029916/]  
Continue reading

Find installed version of .net framework in your PC

Hello guys, today we will discuss regarding how to Find installed version of .net framework in your PC. There are two ways to Find installed version of .net framework in your PC. 1)       Using JavaScript Limitation: this javascript code is used to fetch Framework from IE only. 2)       Using C#...
Continue reading

Global.asax file in asp.net

The Global.asax file, is an optional file that contains code for responding to application-level events. It resides in the root directory of an ASP.NET-based application. It is configured in a way where any direct URL request for it is automatically rejected; So external users are not able to...
Continue reading




DISCLAIMER:
The content is copyrighted to technothirsty.com and may not be reproduced on other websites without permission from the owner.You may contact us using the information below.