protected void btncheckavail_Click(object sender, EventArgs e)
    {
        scn.Open();
        SqlCommand cmd = new SqlCommand("select userid from Registration where userid='" + txtuserid.Text + "'", scn);
        string str = Convert.ToString(cmd.ExecuteScalar());
        if (str =="")
        {
            lbl.Text = UserID is Available
        }
        else
        {
           lbl.Text = "This UserID is Already Exists";
            lbl.Visible = true;
        }
    }
ASP.NET is a development framework for building web pages and web sites with HTML, CSS, JavaScript and server scripting. ASP.NET supports three different development models: Web Pages, MVC (Model View Controller), and Web Forms.
Subscribe to:
Post Comments (Atom)
Using Authorization with Swagger in ASP.NET Core
Create Solution like below LoginModel.cs using System.ComponentModel.DataAnnotations; namespace UsingAuthorizationWithSwagger.Models { ...
- 
Output: using Microsoft.VisualBasic; using System; using System.Collections; using System.Collections.Generic; using S...
 - 
VideoGallery.aspx <div class="matter-area fl"> <h2>Videos</h2> <p> <asp:Repeater ID=...
 - 
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.D...
 
No comments:
Post a Comment