Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Domain name availability
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Domain name availability

 Post Reply Post Reply
Author
coolguy345 View Drop Down
Newbie
Newbie
Avatar

Joined: 16 June 2008
Location: India
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote coolguy345 Quote  Post ReplyReply Direct Link To This Post Topic: Domain name availability
    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
Back to Top
Jono View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 18 September 2006
Location: United Kingdom
Status: Offline
Points: 100
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jono Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
coolguy345 View Drop Down
Newbie
Newbie
Avatar

Joined: 16 June 2008
Location: India
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote coolguy345 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
coolguy345 View Drop Down
Newbie
Newbie
Avatar

Joined: 16 June 2008
Location: India
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote coolguy345 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.