How To Set Maxlength For Multiline Textbox In Asp.Net In this post we will learn How To Set Maxlength For Multiline Textbox In Asp.Net.Here we are using jQuery to achieve this. Code: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>How To Set Maxlength For Multiline Textbox In Asp.Net</title> <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"> </script> <script type="text/javascript"> $(function() { $(‘#mtxt’).keypress(function(e) { var txt […]
Category: Asp, Asp.net
Compare Validator Example In Asp.Net
Compare Validator Example In Asp.Net In this post we will learn how to use a Compare Validator in Asp.net,Compare Validator Example In Asp.Net.Compare Validator can compare two values, for instance the values of two controls.With Compare Validator, Controltovalidate attribute to specify which control to validate.In addition to that, we specify a control to compare.The operator attribute […]
How To Show Image In Label
How To Show Image In Label In this post we will discuss How To Show Image In Label. Design View: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>How To Show Image In Label</title> <style type="text/css"> body { width:980px; margin:0px auto; text-align:center; font-family:Calibri; font-size:14px; } .cen { text-align:center; margin-left:350px } </style> […]
Asp.Net Switch, Case, Break, Default Statement Example In this post we will discuss Asp.Net Switch, Case, Break, Default Statement Example.Here we are using a RadioButtoList, on SelectedIndexChanged we are performing Switch, Case, Break, Default. Design: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Asp.Net Switch, Case, Break, Default Statement Example</title> <style type="text/css"> […]