Click here to Skip to main content
15,910,787 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questiontext highlight in pdf files Pin
amrtita31-Jan-07 18:05
amrtita31-Jan-07 18:05 
QuestionWriting the contents of response object into an ExcelSheet Pin
crazy_mads31-Jan-07 16:39
crazy_mads31-Jan-07 16:39 
Questionlogin form Pin
saravanan0531-Jan-07 12:27
saravanan0531-Jan-07 12:27 
AnswerRe: login form Pin
minhpc_bk31-Jan-07 14:15
minhpc_bk31-Jan-07 14:15 
AnswerRe: login form Pin
ednrgc1-Feb-07 3:53
ednrgc1-Feb-07 3:53 
QuestionASP.net/SQL newbie Question Pin
Planker31-Jan-07 11:02
Planker31-Jan-07 11:02 
AnswerRe: ASP.net/SQL newbie Question Pin
minhpc_bk31-Jan-07 14:10
minhpc_bk31-Jan-07 14:10 
GeneralRe: ASP.net/SQL newbie Question Pin
Planker31-Jan-07 16:47
Planker31-Jan-07 16:47 
ok i figured out what was wrong, .net 2.0 needed to be reinstalled, my app now runs but does not write to the database, is there something wrong with my code to write to the database?

SqlConnection connection;
protected void Page_Load(object sender, EventArgs e)
{
connection = new SqlConnection(ConfigurationManager.ConnectionStrings["GameConnection"].ConnectionString);
}
protected void btnSubmit_Click(object sender, EventArgs e)
{
SqlCommand command = new SqlCommand("INSERT INTO gameTable(gameName, gamePlatform) VALUES (@id_gameName,@id_gmaePlatform)", connection);
SqlParameter nameContent = new SqlParameter("@id_gameName", SqlDbType.VarChar);
nameContent.Value = txtName.Text;
command.Parameters.Add(nameContent);

SqlParameter platformContent = new SqlParameter("@id_gamePlatform", SqlDbType.VarChar);
platformContent.Value = txtPlatform.Text;
command.Parameters.Add(platformContent);

connection.Open();
command.BeginExecuteNonQuery();
connection.Close();

Response.Redirect("Results.aspx");
}
GeneralRe: ASP.net/SQL newbie Question Pin
minhpc_bk1-Feb-07 0:08
minhpc_bk1-Feb-07 0:08 
QuestionClicking on data in a GridView Pin
dptalt31-Jan-07 10:22
dptalt31-Jan-07 10:22 
AnswerRe: Clicking on data in a GridView Pin
minhpc_bk31-Jan-07 14:09
minhpc_bk31-Jan-07 14:09 
GeneralRe: Clicking on data in a GridView Pin
badgrs31-Jan-07 22:23
badgrs31-Jan-07 22:23 
Questioncurrentdate Pin
saravanan0531-Jan-07 10:20
saravanan0531-Jan-07 10:20 
AnswerRe: currentdate Pin
Guffa31-Jan-07 10:49
Guffa31-Jan-07 10:49 
GeneralRe: hi guffa Pin
saravanan0531-Jan-07 11:14
saravanan0531-Jan-07 11:14 
AnswerRe: hi guffa Pin
Guffa31-Jan-07 13:52
Guffa31-Jan-07 13:52 
AnswerRe: hi guffa Pin
Venkatesh Mookkan31-Jan-07 15:38
Venkatesh Mookkan31-Jan-07 15:38 
GeneralRe: hi guffa Pin
Christian Graus31-Jan-07 16:04
protectorChristian Graus31-Jan-07 16:04 
QuestionAccessing events from outside Pin
Jazeee31-Jan-07 9:52
Jazeee31-Jan-07 9:52 
AnswerRe: Accessing events from outside Pin
minhpc_bk31-Jan-07 14:00
minhpc_bk31-Jan-07 14:00 
GeneralRe: Accessing events from outside Pin
Jazeee31-Jan-07 15:15
Jazeee31-Jan-07 15:15 
GeneralRe: Accessing events from outside Pin
minhpc_bk31-Jan-07 15:31
minhpc_bk31-Jan-07 15:31 
GeneralRe: Accessing events from outside Pin
Jazeee31-Jan-07 16:53
Jazeee31-Jan-07 16:53 
GeneralRe: Accessing events from outside Pin
payback31-Jan-07 17:22
payback31-Jan-07 17:22 
GeneralRe: Accessing events from outside Pin
minhpc_bk31-Jan-07 18:39
minhpc_bk31-Jan-07 18:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.