Click here to Skip to main content
15,894,343 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionExcel Sheet Reading problem.... Pin
Sujit Mandal7-Dec-08 18:05
Sujit Mandal7-Dec-08 18:05 
AnswerRe: Excel Sheet Reading problem.... Pin
Nishant Singh7-Dec-08 18:26
Nishant Singh7-Dec-08 18:26 
AnswerRe: Excel Sheet Reading problem.... Pin
Satish - Developer8-Dec-08 1:44
Satish - Developer8-Dec-08 1:44 
QuestionAnyone know of any "public blogging" software? Pin
Goalie357-Dec-08 17:05
Goalie357-Dec-08 17:05 
Questionadrotator Pin
kirandilip7-Dec-08 16:59
kirandilip7-Dec-08 16:59 
AnswerRe: adrotator Pin
Christian Graus7-Dec-08 18:55
protectorChristian Graus7-Dec-08 18:55 
AnswerRe: adrotator Pin
Brij8-Dec-08 1:11
mentorBrij8-Dec-08 1:11 
QuestionResponse.Redirect -- Help!!! Pin
C#Coudou7-Dec-08 14:42
C#Coudou7-Dec-08 14:42 
mates,
whats wrong with my code? when i click next button, i have to delete
data from one of the table, then i will show it to the gridview which
is the QueryRes.aspx , meaning other page.

Note: my gridview is already bind to the database.

protected void btnNext_Click(object sender, EventArgs e)
{
StringBuilder sbDel = new StringBuilder();
sbDel.Append("DELETE");
sbDel.Append(" FROM");
sbDel.Append(" WKTABLE");
sbDel.Append(" WHERE CODE = 1020");

OleDbConnection oleCon = new OleDbConnection(mdbcon);
oleCon.Open();
OleDbTransaction oleTran = oleCon.BeginTransaction();
try
{
OleDbCommand cmdDel = new OleDbCommand(sbDel.ToString(), oleCon, oleTran);
cmdDel.ExecuteNonQuery();
oleTran.Commit();

Response.Redirect("QueryRes.aspx"); //this is a gridview page. I will post here the query result above.
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
oleTran.Rollback();
}
finally
{
if(oleCon.State != ConnectionState.Closed)
{
oleCon.Close();
}
}
}

C# コードMicrosoft End User
2000-2008




「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」


AnswerRe: Response.Redirect -- Help!!! Pin
Nishant Singh7-Dec-08 17:49
Nishant Singh7-Dec-08 17:49 
AnswerRe: Response.Redirect -- Help!!! Pin
Brij7-Dec-08 18:56
mentorBrij7-Dec-08 18:56 
AnswerRe: Response.Redirect -- Help!!! Pin
Christian Graus7-Dec-08 18:57
protectorChristian Graus7-Dec-08 18:57 
GeneralRe: Response.Redirect -- Help!!! Pin
C#Coudou9-Dec-08 17:49
C#Coudou9-Dec-08 17:49 
QuestionPrint a web report Pin
Sajjad Razmi6-Dec-08 19:46
Sajjad Razmi6-Dec-08 19:46 
AnswerRe: Print a web report Pin
Christian Graus7-Dec-08 10:04
protectorChristian Graus7-Dec-08 10:04 
QuestionFind Method Name Pin
Tarik Guney6-Dec-08 17:09
Tarik Guney6-Dec-08 17:09 
AnswerRe: Find Method Name Pin
Nishant Singh6-Dec-08 20:44
Nishant Singh6-Dec-08 20:44 
AnswerRe: Find Method Name Pin
Abhijit Jana7-Dec-08 0:41
professionalAbhijit Jana7-Dec-08 0:41 
GeneralRe: Find Method Name Pin
Member 57600747-Dec-08 7:53
Member 57600747-Dec-08 7:53 
GeneralRe: Find Method Name Pin
Tarik Guney7-Dec-08 7:55
Tarik Guney7-Dec-08 7:55 
QuestionGridView height to 100% Pin
Stevo Z6-Dec-08 5:37
Stevo Z6-Dec-08 5:37 
QuestionFind Child Gridview Pin
kavitha_blueindia6-Dec-08 1:43
kavitha_blueindia6-Dec-08 1:43 
AnswerRe: Find Child Gridview Pin
Nishant Singh6-Dec-08 20:40
Nishant Singh6-Dec-08 20:40 
AnswerRe: Find Child Gridview Pin
Abhijit Jana6-Dec-08 20:53
professionalAbhijit Jana6-Dec-08 20:53 
QuestionUse doPostBack Pin
John.G6-Dec-08 0:02
John.G6-Dec-08 0:02 
AnswerRe: Use doPostBack Pin
Christian Graus7-Dec-08 10:05
protectorChristian Graus7-Dec-08 10:05 

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.