Category Archives: Asp, Asp.net

How To Check Website URL Exists Or Not Using C#

How To Check Website URL Exists Or Not Using C# In this tutorial we will explain How To Check Website URL Exists Or Not Using C#.Sometime during registration we require website URL or web address, to check that URL or web address is correct this tip is very useful. Code: using System.Net; protected void btnwebStatus_Click(object sender,

What is the Difference Between RegisterStartupScript() Method and RegisterClientScriptBlock() Method?

What is the Difference Between RegisterStartupScript() Method and RegisterClientScriptBlock() Method? Both, RegisterStartupScript() method and RegisterClientScriptBlock() method will inject Javascript code that will fire during start up of subsequent postback. The RegisterClientScriptBlock method inserts the client-side script immediately below the opening tag of the Page object’s element. The code cannot access any of the form’s elements

Check Username Availability Using Ajax In Asp.Net

Check Username Availability Using Ajax In Asp.Net In this post we will learn how to Check Username Availability Using Ajax In Asp.Net.Here we are using Asp.Net Ajax functionality to accomplish this.On TextChanged event of textbox we are checking in Database for the same username existence. Design: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <%@ Register Assembly="AjaxControlToolkit"

How To Set Maxlength For Multiline Textbox In Asp.Net

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

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>