Sunday, October 5, 2008

Donnations...






Tuesday, May 27, 2008

using System;
using System.Text;
using System.Data;
using System.Data.SqlClient;
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.Web.Configuration;

public partial class temp : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//string con01 ="Data Source=localhost; Initial Catalog=Northwind;" +
// "user id=sa; password=opensesame";


//string connectionString = WebConfigurationManager.ConnectionStrings["sqlcon01"].ConnectionString;
// SqlConnection con = new SqlConnection(connectionString);
// System.Data.SqlClient.SqlCommand com01=new SqlCommand("select * from accounts",con);
//System.Data.SqlClient.SqlDataAdapter da01= new SqlDataAdapter("select * from accounts",con);
//System.Data.DataSet ds01 =new DataSet();
// da01.Fill(ds01,"accounts");
// gv01.DataSource = ds01.Tables["accounts"];
// gv01.DataBind();

// Create the Connection object.
string connectionString =
WebConfigurationManager.ConnectionStrings["sqlcon01"].ConnectionString;
SqlConnection con = new SqlConnection(connectionString);

try
{
// Try to open the connection.
con.Open();
lblInfo.Text = "Server Version: " + con.ServerVersion;
lblInfo.Text += "
Connection Is: " + con.State.ToString();
}
catch (Exception err)
{
// Handle an error by displaying the information.
lblInfo.Text = "Error reading the database. " + err.Message;
}
finally
{
// Either way, make sure the connection is properly closed.
// Even if the connection wasn't opened successfully,
// calling Close() won't cause an error.
con.Close();
lblInfo.Text += "
Now Connection Is: " +
con.State.ToString();
}
Getaccounts();

}

public void Getaccounts()
{
string connectionString = WebConfigurationManager.ConnectionStrings["sqlcon01"].ConnectionString;
SqlConnection con = new SqlConnection(connectionString);
SqlCommand cmd = new SqlCommand("select * from accounts", con);
//cmd.CommandType = CommandType.StoredProcedure;
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
// Fill the DataSet.
//try
//{
da.Fill(ds, "accnts");
// return ds.Tables["accnts"];
gv01.DataSource = ds.Tables["accnts"];
gv01.DataBind();

SqlCommand cmd02 = new SqlCommand("select * from accinfo", con);
//cmd.CommandType = CommandType.StoredProcedure;
SqlDataAdapter da02 = new SqlDataAdapter(cmd02);
DataSet ds02 = new DataSet();
// Fill the DataSet.
//try
//{
da02.Fill(ds, "accinf");
// return ds.Tables["accnts"];
// gv01.DataSource = ds.Tables["accnts"];
//gv01.DataBind();
StringBuilder htmlStr = new StringBuilder("");
foreach (DataRow dr in ds.Tables["accinf"].Rows)
{

htmlStr.Append("

");
htmlStr.Append("");
htmlStr.Append("");
htmlStr.Append("");
htmlStr.Append("");
htmlStr.Append("
");
htmlStr.Append("
  • ");
    htmlStr.Append(dr["username"].ToString());
    htmlStr.Append(" ");
    htmlStr.Append(dr["firstname"].ToString());

    htmlStr.Append(" ");
    htmlStr.Append(dr["lastname"].ToString());

    htmlStr.Append(" ");
    htmlStr.Append(dr["middlename"].ToString());
    htmlStr.Append(" ");
    htmlStr.Append(dr["remarks"].ToString());
    htmlStr.Append("
    , ");
    htmlStr.Append("
  • ");
    htmlStr.Append("
    ");
    htmlStr.Append("shit ");


    htmlStr.Append("
    ");
    }
    Label1.Text= htmlStr.ToString();

    // }

    // catch
    // {
    // throw new ApplicationException("Data error.");
    //}

    }

    protected void Button1_Click(object sender, EventArgs e)
    {
    string connectionString = WebConfigurationManager.ConnectionStrings["sqlcon01"].ConnectionString;
    SqlConnection con = new SqlConnection(connectionString);
    con.Open();
    string sql01 ="INSERT INTO accounts (username,password,type,description) VALUES('" + tb01.Text + "','" + tb02.Text + "','" + tb03.Text + "','" + tb04.Text + "')";
    System.Data.SqlClient.SqlCommand com01=new SqlCommand(sql01,con);
    com01.ExecuteNonQuery();
    Response.Redirect("dfront.aspx");
    //System.Data.SqlClient.SqlDataAdapter da01= new SqlDataAdapter(com01);
    //System.Data.DataSet ds01 =new DataSet();

    //da01.Fill(ds01,"accounts");
    // gv02.DataSource = ds01.Tables["accounts"];
    //gv02.DataBind();

    con.Close();
    }
    protected void Reset1_Click(object sender, EventArgs e)
    {
    Label1.Text = "shit";
    }
    }

    dfrontasp

    "<%@ Page Language="C#" AutoEventWireup="true" CodeFile="dfront.aspx.cs" Inherits="temp" %>



    wetworks_disclaimer












































    All rights reserved 2008

    by brx250





    This is a template page by wetworkslive / brx250 2008



    "
    SelectCommand="SELECT * FROM [accounts]">

































    ffdsdfsdf


    username


    password



    type



    description





    Wetworkslive










    Wetworkslive
    All rights reserved 2008
    by brx250




    "

    Friday, April 4, 2008

    Creepy Lady


    This is a picture of a scary webpage you can go to where that creepy woman there follows your cursor around
    and freaks you out. Give it a go yourself, but be warned: you will cry, mess
    your pants, and put your fist through the monitor
    CUBO Scary Woman

    Friday, March 14, 2008

    America's Robot Army: Are Unmanned Fighters Ready for Combat?

    Lockheed Martin MULE



    Customer: U.S. Army ordered more than 1700 for 15 brigades, a potential human-to-robot ratio of 29:1 Deployment: Ready for combat as early as 2014 Models: Half will be armed; the rest will clear minefields and haul gear Cargo capability: 1800 to 2000 pounds Weapons: Four antitank Javelin missiles and a turret-mounted M240 machine gun. (Photograph by Chad Hunt)

    bots

    SWORDS

    Weight: 200 lb.
    Speed: 4 mph
    Weapons: M249 light machine gun
    Notable feature: First armed robot deployed to Iraq; didn’t fire a shot

    Warrior X700

    Weight: 250 lb.
    Speed: 10 mph
    Weapons: A .30-caliber machine gun
    Notable feature: Articulated arm that can lift 150 lb. swaps in for weapons.

    MAARS

    Weight: 235 lb.
    Speed: 7 mph
    Weapons: M240B medium machine gun
    Notable feature: Programmable no-fire zones to prevent fratricide.



    Continued: The Armed Robot Debate >>>

    Friday, March 7, 2008