Domain name availability
Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=25851
Printed Date: 29 March 2026 at 12:33pm Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: Domain name availability
Posted By: coolguy345
Subject: Domain name availability
Date Posted: 17 June 2008 at 6:21am
Hi everyone....is there any one having idea of domain check availability code in asp.net using C#....
I have a TextBox where user can enter the domain name as their wish.....and the next control is the DropDownList where user can select
the extensions like .org,.com,.net etc and also there is a submit button and
once if any one hit the submit button it shows whether the domain is
available or not...and it should shows the result in the label..If
anyone can help me out..and surely it will be appreciated...Advance
thanks....
Note:Its very urgent for me to show my final year engineering project
|
Replies:
Posted By: Jono
Date Posted: 17 June 2008 at 9:10pm
|
Did you see this post in the forum above? http://forums.webwiz.net/forum_posts.asp?TID=25815 - http://forums.webwiz.net/forum_posts.asp?TID=25815
|
Posted By: coolguy345
Date Posted: 07 July 2008 at 8:39am
|
Can anyone help me out for placing sitemappath in my project. I have 2 masterpages and the javascript menu, here i need to place the sitemappath inside the master page to the inherited child pages.I just tried it out.But im getting errors if i place sitemappath inside the masterpage. if anyone aware of sitemappath please help me out. Regards- Hassan
|
Posted By: coolguy345
Date Posted: 04 August 2008 at 8:16am
Hi is there anyone to help me in adding captcha image code in my project.I got the code for captcha image and which is working fine alone and when i add in my project its not checking the captcha image which i enter in the textbox. I want to check the code while button click fire up.if it is wrong then it should shows the error message in the label and the value is correct the the values should goes to the table in the database except captcha text..If anyone help me would be appretiated. and here im going to paste the two code 1. captcha code and my registration form code.
1) Default.aspx.cs using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.Page { // For generating random numbers. private Random random = new Random();
protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { // Create a random code and store it in the Session object. this.Session["CaptchaImageText"] = GenerateRandomCode(); } }
// // Returns a string of six random digits. // private string GenerateRandomCode() { string s = ""; for (int i = 0; i < 6; i++) s = String.Concat(s, this.random.Next(10).ToString()); return s; } protected void SignupButton_Click(object sender, EventArgs e) { if (!Page.IsValid) return; if ((CaptchaTextBox.Text == this.Session["CaptchaImageText"].ToString()) && Page.IsValid) { // Display an informational message. //MessageLabel.CssClass = "info"; Label1.Text = "Correct!";
//gpstatusbox here...
//SaveRecord(); } else { // Display an error message. //MessageLabel.CssClass = "error"; Label1.Text = "ERROR: Incorrect, try again.";
////gpstatusbox here...
// Clear the input and create a new random code. CaptchaTextBox.Text = ""; this.Session["CaptchaImageText"] = GenerateRandomCode(); } CaptchaTextBox.Text = ""; } }
JpegImage.aspx.cs
using System.Drawing.Imaging; using App_Code;
public partial class JpegImage : System.Web.UI.Page { protected void Page_Load(object sender, System.EventArgs e) { // Create a CAPTCHA image using the text stored in the Session object. CaptchaImage ci = new CaptchaImage(this.Session["CaptchaImageText"].ToString(), 200, 50, "Century Schoolbook");
// Change the response headers to output a JPEG image. this.Response.Clear(); this.Response.ContentType = "image/jpeg";
// Write the image to the response stream in JPEG format. ci.Image.Save(this.Response.OutputStream, ImageFormat.Jpeg);
// Dispose of the CAPTCHA image object. ci.Dispose(); } }
2)User Registration Code to store the values to the datasource-NewReg.aspx.cs
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient; using System.Net.Mail;
public partial class NewReg : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (Session["UId"] != null) { pasRow.Visible = false; conpasRow.Visible = false; GetUser(); } else { pasRow.Visible = true; conpasRow.Visible = true; } } } private void GetUser() { if (Session["UID"] != null) {
SQLHelper oldUser = new SQLHelper(); SqlDataReader droldUser = oldUser.ExecuteReader("select * from tbl_Users where ID='" + Session["UID"].ToString() + "'"); while (droldUser.Read()) { txtFName.Text = droldUser["FirstName"].ToString().Replace("`", "'"); &nb
|
|