Saturday, December 26, 2009

Adding the Row in Gridview

Adding The New Row in GridView by Using TextBox Values

Default3.aspx HTML Code

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





Untitled Page




CellPadding="4" ForeColor="#333333" GridLines="None" OnPageIndexChanging ="Page" >




<%----%>
<%# ((GridViewRow)Container).RowIndex + 1%>





















style="top: 73px; left: 357px; position: absolute; height: 22px; width: 128px; margin-bottom: 1px">
style="top: 110px; left: 359px; position: absolute; height: 22px; width: 128px; margin-bottom: 1px">
style="top: 157px; left: 454px; position: absolute; width: 84px; right: 459px"
Text="Button" />





Code Behind Course Code Default3.aspx.cs Code


using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Default3 : System.Web.UI.Page
{ DataTable dt1 = new DataTable();
DataRow dr = null;
protected void Page_Load(object sender, EventArgs e)
{

}
protected void Button1_Click(object sender, EventArgs e)
{
if (ViewState["CurrentTable"] != null)
{
dt1=SetPreviousData();
dr = dt1.NewRow();
dr["ID"] = TextBox1.Text;
dr["Name"] = TextBox2.Text;
dt1.Rows.Add(dr);
GridView1.DataSource = dt1;
GridView1.DataBind();
}
else
{

GridView1.DataSource = GetTable();
GridView1.DataBind();

}


}

public DataTable GetTable()
{
DataTable Dt = new DataTable();
DataRow dr = null;

Dt.Columns.Add("S.No", typeof(Int32));
Dt.Columns.Add("ID", typeof(Int32 ));
Dt.Columns.Add("Name", typeof(string));
dr = Dt.NewRow();
dr["S.No"] = 1;
dr["ID"] = TextBox1.Text;
dr["Name"] = TextBox2.Text;
Dt.Rows.Add(dr);
ViewState["CurrentTable"] = Dt;
return Dt;
}

public DataTable SetPreviousData()
{
DataTable CurrentTable = new DataTable();
int rowIndex = 0;

if (ViewState["CurrentTable"] != null)
{
CurrentTable = (DataTable)ViewState["CurrentTable"];
DataRow dr = null;

if (CurrentTable.Rows.Count > 0)
{
CurrentTable.Clear();

for (int i = 0; i <= GridView1.Rows.Count - 1; i++)
{

Label box1 = (Label)GridView1.Rows[rowIndex].Cells[1].FindControl("lblID");
Label box2 = (Label)GridView1.Rows[rowIndex].Cells[2].FindControl("lblName");
dr = CurrentTable.NewRow();
dr["S.No"] = i + 1;
dr["ID"] = box1.Text;
dr["Name"] = box2.Text;
rowIndex = i + 1;
CurrentTable.Rows.Add(dr);
}

ViewState["CurrentTable"]=CurrentTable;



}



}
return CurrentTable;




}
protected void Page(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
}
}





Thursday, November 8, 2007

Hitman 2: Silent Assassin Game

Hitman 2: Silent Assassin Game

You may be a hired killer, but you still have a sense of loyalty and justice in a world corrupted by crime, greed, degradation, and dishonor.


Enter the realm of a retired assassin, forced back into action by treason. You may be a hired killer but you still have a sense of loyalty and justice. Visit the dark recesses of a world corrupted by crime, greed, degradation and dishonor. And a past that catches up with you. Trust no one - if the price is right, the finger of your most trusted ally will be on the trigger. Your targets may hide in the most remote areas of the planet, but their destruction is never prevented - only postponed. Learn your trade - master your tools - overcome your obstacles - outsmart your enemies - eliminate your targets. Remember: rash decisions bleed consequences. Know when to strike instantly, know when to take your time. Chance favors the prepared. Failure is not an option.

Browse the web faster. Get Firefox with Google Toolbar
Safer browsing. Faster searching. Get the Google Pack.

Pick up contracts in exotic locations around the globe: Sicily, St. Petersburg, Japan, Malaysia, and India Operate in a non-linear world where the outcome of your actions and proficiency as a hitman are measured on a balance between stealth and aggression Stalk and eliminate your targets up close and personal, in either 1st or 3rd person perspectives Execute your assignments with a diverse arsenal of equipment, from armor-piercing sniper rifles and explosives to chloroform and poison darts Acquire and carry weapons and tools from mission to mission through an enhanced inventory and save-game system Original soundtrack composed by Jesper Kyd and performed by The Budapest Symphony Orchestra

System Requirements :
Windows 98/Me/XP
Processor: PIII 450 MHz
DirectX 8.1
128 MB RAM
Free hard drive space: 800 MB
3D Video Card 16MB DirectX 8.1
DirectX-compliant Sound Card

Free Download Hitman 2: Silent Assassin Game


Magic Match: The Genie's Journey Game

The hit game Magic Match returns, and Giggles the lovable Imp is now a Genie! Go on a quest with Merlin and Giggles as they seek to change Giggles back to his impish self. Cross through the desert lands of Arcania to outwit a master thief, explore the pyramids and traverse the City of Gods in this magical and mesmerizing puzzle adventure. 50 magical levels, with three progressively difficult game play modes, including the fabulous Duel Mode, offer endless hours of challenge and fun!
System Requirements :
OS: Windows 2000, Windows XP,
Windows Vista
Memory: 64 MB
DirectX: 9.1 or later
CPU: P 1.0 GHZ

Free Download Magic Match: The Genie's Journey Game



Barnyard Invasion Game

Save captive farm animals from their cruel human masters and take them on a much-needed vacation. Those pesky humans will try anything to stop the rescue: pits, barn houses, hay bales, and even foil hats! Use your superior alien powers to thwart human attempts to keep the happy livestock captive. See hilarious snapshots of the vacationing aliens and the liberated farm animals. Test your skills in the challenging 'Endless Invasion'.

Easy to learn addictive game play Hilarious graphics and sound effects Challenge yourself with over 60 levels and two difficulty settings Save 8 kinds of animals; all beautifully rendered and animated
System Requirements :
Windows 98/98SE/2000/2003/Me/XP
Processor: PII 400 MHz
DirectX 8.1
128 MB RAM
Free hard drive space: 11 MB
16-bits Video Card 16MB DirectX 8.1
DirectX-compliant Sound Card


Free Download Barnyard Invasion Game

email to ramu.vootlas@yahoo.co.in


Wednesday, November 7, 2007

Delta Force Task Force Dagger Game

As the US army’s elite special operations soldiers you are the most potent ‘smart weapon’ known to man. You are the ‘tip of the spear’ for covert operations around the world - you are the first line of attack. Nothing stands in your way. From the war torn streets of Somalia you have been re-deployed to take out targets in Colombia and Iran. As the US military’s preemptive strike force you must work with your team to get the job done.

Browse the web faster. Get Firefox with Google Toolbar
Safer browsing. Faster searching. Get the Google Pack.

BECOME THE BEST - Play as any one of these Special Forces units: SFOD-Delta, 2/75th RANGER, SEAL Team 6, SFOD-SF Viper Team (Green Berets), CIA Special Operations, UK SAS 22 Regiment, Australian SASR, Canadian JTF-2, Marines Force Recon, and USAF CSAR (Air Force Pararescue) - all the actual Special Forces units deployed in Operation Enduring Freedom. INFILTRATE ACTUAL LOCATIONS - 25 new Delta Force missions! Take over the Kandahar Airport, raid rebel headquarters in Mazar-e-Sharif, ambush a convoy near the Pakistani border and demolish bunkers in the foothills of Kabul. OVER 30 WEAPONS TO CHOOSE FROM - Gear up with a huge arsenal of machine guns, assault rifles, sniper rifles, pistols and rocket launchers new to the Delta Force series. SPY ON THE ENEMY - Plan your attack with the element of surprise using visual intelligence gathered from Unmanned Aerial Vehicles. RAIN DESTRUCTION FROM THE SKIES - Call in devastating air strikes to take out key SAM and SCUD missile sites. LARGE-SCALE MULTIPLAYER - Create your own multiplayer games and maps with the mission editor. 10 new multiplayer maps included! *Battle online via NovaWorld. [This title is not Vista compatible]


System Requirements :
Windows 98/2000/XP
Processor: PII 400 MHz
DirectX 7.0
128 MB RAM
Free hard drive space: 480 MB
Direct 3D Video Card Sound Card

Beyond Pearl Harbor Pacific Warriors Game
Beyond Pearl Harbor Pacific Warriors Game
Defeat Japanese Zeros, destroy gun embankments, and down bombers bent on reaching U.S. shores. It's a white-knuckle ride!


In the days following the surprise attack on Pearl Harbor, the U.S. Navy mobilized its entire fleet to deliver a defensive response to Japan's treacherous and brutal bombing. Join these heroes as a fighter pilot and exact revenge for your slain comrades. Test your skills by defeating Japanese Zeros in fast-paced dogfights; destroying gun embankments on the Mariana Islands; and downing fully-loaded, lumbering bombers bent on reaching U.S. shores. Five white-knuckled missions await you. Start as a P40 fighter pilot and graduate to command the most advanced flying arsenal of the day. The balance of power in the Pacific rests in your hands. Will you control the skies Beyond Pearl Harbor?

System Requirements :
Windows 95/98/Me
Processor: Pentium 200 MHz
Directx 7.0
32 MB RAM
Free hard drive space: 75 MB
3D Accelerator 4MB Directx 7.0
Worms 4: Mayhem Game
Worms 4: Mayhem is as infectious and accessible as the classic Worms offerings! The multiplayer mayhem and single-player shenanigans are spread over five themed zones - Jurassic, Camelot, Arabian, Construction, and Wild West - and, throughout the enlarged landscapes, the entirely destructible scenery works with even greater effect, along with the much-loved worms' armoury - now with an even bigger choices of weapons and fun along the way. In single-player modes there's even more beyond the day-to-day business of destroying worms. Through the 25 missions, you're also charged with objectives such as recovering items or smashing scenery. All the single-player maps are available to play in multiplayer mode, along with a further set of 20 multiplayer-specific maps. With bold levels, an improved 3D camera and animation system, a stunning arsenal delivering comedy kabooms, the loveable, customisable, yet entirely destructible, worms are back in force with Worms 4: Mayhem.

Additional files are available as part of this digital download. These files include Story Mode, Full Motion Video sequences, and additional music!

System Requirements :
Windows 98/2000/Me/XP
Processor: P4 1 GHz
DirectX 9.0c
256 MB RAM
Free hard drive space: 2 GB
3D Accelerator with
Hardware T&L and Pixel
Shading 32MB DirectX 9.0c
DirectX-compliant Sound Card

Tuesday, November 6, 2007

Wildfire Game

One of humankind's most fearsome enemies ravages the land with an insatiable appetite for destruction. In Wildfire, control the daring heroes who risk their lives to stop these menacing monsters. Both resources and time are limited... will you make the right decisions to stop the advancing beast that is fire unleashed?

Browse the web faster. Get Firefox with Google Toolbar
Safer browsing. Faster searching. Get the Google Pack.

Battle against the clock in more than 20 blazing challenges Realistic fire physics that burn according to fuel type, wind and weather Parachute into the heart of the firestorm Control fire fighters, bulldozers, water trucks, helicopters airplanes and more as you attempt to quash raging wildfires Over 300 scenario variations in Random Play mode A portion of the proceeds from the sale of each game go to fund the Cooperative Forest Fire Prevention Program

System Requirements :
Windows XP
Processor: PIII 800 MHz
DirectX 8.1
256 MB RAM
Free hard drive space: 243 MB
3D Accelerator 32MB DirectX-compliant
DirectX-compliant Sound Card


Civilization III Game

Civilization III is a game of epic proportions, where you match wits against some of the greatest leaders of the world in a quest to build the ultimate empire. This highly addictive journey includes exciting new features that enrich your Civilization experience. Now you can explore new pathways, employ strategies, and build and manage your empire with even more powerful tools.
System Requirements :
Windows 95/98/2000/Me/XP
Processor: PII 333 MHz
DirectX 8
32 MB RAM
Free hard drive space: 500 MB
SVGA Video Card DirectX 8
DirectX-compliant Sound Card
Commandos: Beyond the Call of Duty Game

You have been selected for active service in the Commandos Corps, and must now mobilize in a series of 8 new dangerous missions. You may come with experience of action 'Behind Enemy Lines' or perhaps you are just a rookie - whatever you are, you will be given the opportunity to push your daring and tactical ability to the limit. As the leader of a small elite unit operating deep within enemy territory, you will experience new challenges and goals with these new missions. Plus new vehicles, buildings, weapons, and 2 levels of difficulty will satisfy both Commandos veterans and new recruits.

Distract and confuse the enemy soldiers by throwing stones and cigarette boxes Kidnap German soldiers, destroy train-mounted artillery, and sabotage prototype aircraft Eliminate opponents from considerable distance with the Enfield long-range weapon Two new characters; a female member of the Dutch resistance, and a Major from the Yugoslav Partisan forces Use ether, handcuffs, a club, or your own fists to subdue the enemy

System Requirements :
Windows 95/98
Processor: Pentium 166 MHz
DirectX 6.1
32 MB RAM
Free hard drive space: 225 MB
SVGA Video Card 1MB DirectX 6.1
DirectX-compliant Sound Card

Saturday, November 3, 2007

Incredible Ink Game

With a little practice you'll soon master the art of guiding the Magic Ball with Incredible Ink. Two distinct game modes, Escape and Break All, are packed with gorgeous art and detailed level design. Its fun times two
Browse the web faster. Get Firefox with Google Toolbar
Safer browsing. Faster searching. Get the Google Pack.

Two hundred levels to explore Play offline and fullscreen. Amazing Graphics and Sound. Unlock the exit in Escape mode. Destroy everything in Break All mode.

System Requirements :
Windows 95/98/2000/Me/XP
Processor: P 100 MHz
DirectX 5.0
64 MB RAM
Free hard drive space: 6 MB
SVGA
DirectX-compliant Sound Card

Free Download Incredible Ink Game


Hitman: Codename 47 Game

As the Hitman, you must use stealth and tactics to enter, execute, and exit your assignment with minimum attention and maximum effectiveness.
As the enigmatic Hitman, you must use stealth and tactical problem solving to enter, execute and exit your assignment with minimum attention and maximum effectiveness. For a price, you have access to the most devious devices, but how you use them will determine if you retire as a millionaire or get permanently retired. The Hitman is the world's most accomplished and wealthy assassin; however, he is plagued by a troubling past of deception and genetic butchery. The ingenious story will evolve over five chapters of heart-stopping action. Remember, the world of contract hits rewards a quick intellect more than a quick trigger finger.
Plan each assignment carefully to account for a variety of weapons, surveillance data, and multiple paths to completion Sharpen your skills through a comprehensive weapons and agility training session Access black market weapons, decoys, traps, and personnel from an innovative currency reward system Artificial intelligence redefines the genre of the 'Thinking Shooter' Gripping and mature plot driven by stunning cinematic visuals Ground-breaking 3D engine offers full object physics, deformations, weapons modeling, and unsurpassed character animations

System Requirements :
Windows 95/98/Me
Processor: PII 300 MHz
DirectX 7
64 MB RAM
Free hard drive space: 400 MB
3D Accelerator 12MB DirectX 7
DirectX-compliant Sound Card

Free Download Hitman: Codename 47 Game

Commandos: Beyond the Call of Duty Game

You have been selected for active service in the Commandos Corps, and must now mobilize in a series of 8 new dangerous missions. You may come with experience of action 'Behind Enemy Lines' or perhaps you are just a rookie - whatever you are, you will be given the opportunity to push your daring and tactical ability to the limit. As the leader of a small elite unit operating deep within enemy territory, you will experience new challenges and goals with these new missions. Plus new vehicles, buildings, weapons, and 2 levels of difficulty will satisfy both Commandos veterans and new recruits.

Distract and confuse the enemy soldiers by throwing stones and cigarette boxes Kidnap German soldiers, destroy train-mounted artillery, and sabotage prototype aircraft Eliminate opponents from considerable distance with the Enfield long-range weapon Two new characters; a female member of the Dutch resistance, and a Major from the Yugoslav Partisan forces Use ether, handcuffs, a club, or your own fists to subdue the enemy

System Requirements :
Windows 95/98
Processor: Pentium 166 MHz
DirectX 6.1
32 MB RAM
Free hard drive space: 225 MB
SVGA Video Card 1MB DirectX 6.1
DirectX-compliant Sound Card

Free Download Commandos: Beyond the Call of Duty Game

email to ramu.vootlas@yahoo.co.in


School Tycoon Game
Run your school the way you want to in School Tycoon! Build your school, complete with classrooms, administration offices and athletic facilities. Populate the school with teachers, and attract students to your new house of learning. Upgrade the cafeteria, improve the landscaping, and add entertainment options to increase your popularity with the students. Keep an eye on pupils and make sure they're learning, otherwise it's time for some detention.

Construct over 50 different buildings, from classrooms to cafeterias More than twenty challenging scenarios Create entertainment options for your student body, including arcades, skate parks, and even a roller coaster Many objects to add to your school environment trees, bushes, benches, fountains, fences, and even customizable signs you can change the message 80 different students to populate your school, from jocks and cheerleaders to snobs and bullies Add custom characters to the game put yourself or your friends into the game

System Requirements :
Windows 98/98SE/ME/2000/XP
Pentium III 500 MHz or faster
128 MB RAM
500 MB free hard disk space
DirectX 9.0b (included) or higher
DirectX 9.0b 3D 16 MB RAM video card
DirectX compliant Sound Card

Free Download School Tycoon Game