Introduction of Static Keyword in C#.net

Introduction of Static Keyword in C#.net

Static Class : A static class is you can say same as the non-static class, but there is one difference them is a static class can't be instantiated. In other words, you cannot use the "new" keyword to create a instance variable of the class type. As there is no instance variable, you can access the members of a static class by using the name of the class itself. Static classes and it's class members are used to create data and functions that can be accessed without creating an instance of the class. Static class members can be used to separate data and behavior that is independent of any object identity: the data and functions do not change regardless of what happens to the object. Static classes can be used when data or behavior is not present in the class that depends on object identity. Static classes are loaded automatically by the .NET Framework CLR when that program or namespace containing the class is loaded. The main features of a static class are: static classes can only contain static members. static classes can not be instantiated. static classes are sealed and therefore cannot be inherited.
Custom registration in DotnetNuke using DotnetNuke Classes

Custom registration in DotnetNuke using DotnetNuke Classes

Custom registration in DotnetNuke using DotnetNuke Classes UserController uCtrl = new UserController();//DotnetNuke Class UserInfo oUser = new UserInfo();//DotnetNuke Class oUser.Username = Name; oUser.Email = Email; oUser.PortalID = PortalId; oUser.IsSuperUser = false; oUser.FirstName = First Name; oUser.LastName = Last Name; oUser.DisplayName = Name; oUser.Profile.Telephone = Phone; //Want to add value in custom profile property in DNN
Jquery Tab in Asp.net

Jquery Tab in Asp.net

Steps for making Jquery Tab in Asp.net Step 1: Add design on form page
  • HTML
  • CSS
  • //Want more tab just increase the li with ID and give the Name what u want in header // Ex: //
  • Style

Tab 1

Tab 2

//For tab content //Make div with ID=li id with name tab and add class="tab-content" //Ex: //
//

Tab 3

//
Step 2: Add script on Page
Use of Post and Get Method in Jquery

Use of Post and Get Method in Jquery

Use of Post Method in Jquery to Send Data on Button Click $(document).ready(function(){ $('input[id$="Button Id"]').click(function(){ var Fname="Text Value"; // name is local variable you can use without declaring. var res=$.post('Path of Generic Handler or Webservise', { name: Fname}, function (result) { alert(result); }); rsp.error