Click here to Skip to main content
16,005,125 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Gridview as tooltip for rows in asp.net gridview Pin
Christian Graus29-Oct-09 20:53
protectorChristian Graus29-Oct-09 20:53 
GeneralRe: Gridview as tooltip for rows in asp.net gridview Pin
dan!sh 29-Oct-09 21:05
professional dan!sh 29-Oct-09 21:05 
AnswerRe: Gridview as tooltip for rows in asp.net gridview Pin
dan!sh 29-Oct-09 20:06
professional dan!sh 29-Oct-09 20:06 
GeneralRe: Gridview as tooltip for rows in asp.net gridview Pin
nainakarri29-Oct-09 20:25
nainakarri29-Oct-09 20:25 
GeneralRe: Gridview as tooltip for rows in asp.net gridview Pin
nainakarri29-Oct-09 21:23
nainakarri29-Oct-09 21:23 
GeneralRe: Gridview as tooltip for rows in asp.net gridview Pin
dan!sh 30-Oct-09 1:54
professional dan!sh 30-Oct-09 1:54 
GeneralRe: Gridview as tooltip for rows in asp.net gridview Pin
nainakarri2-Nov-09 19:39
nainakarri2-Nov-09 19:39 
QuestionExecuteScalar requires the command to have a transaction Pin
Karan_TN29-Oct-09 18:41
Karan_TN29-Oct-09 18:41 
currently i m using asp.net 2.0 with sql server 2000.
while executing the below coding....
SqlTransaction trans = null;
trans = conn.BeginTransaction();
sqlCmd = new SqlCommand("INSERT INTO A(...) VALUES (...)", myCon.ReturnConnection());
sqlCmd.Transaction = trans;
sqlCmd.ExecuteNonQuery();
sqlCmd = new SqlCommand("SELECT IDENT_CURRENT('A')", conn);
int New_AutoID = int.Parse(sqlCmd.ExecuteScalar().ToString());
sqlCmd.Dispose();
trans.commit();

i m getting the below error

ExecuteScalar requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.

help me plz.. i m trying to fetch the inserted records autoid using transactions. how can i achieve it?

- Karan
AnswerRe: ExecuteScalar requires the command to have a transaction Pin
Christian Graus29-Oct-09 18:43
protectorChristian Graus29-Oct-09 18:43 
GeneralRe: ExecuteScalar requires the command to have a transaction Pin
Karan_TN29-Oct-09 18:49
Karan_TN29-Oct-09 18:49 
QuestionConverting images to sql server table Pin
thisraja29-Oct-09 14:58
thisraja29-Oct-09 14:58 
AnswerRe: Converting images to sql server table Pin
Christian Graus29-Oct-09 15:00
protectorChristian Graus29-Oct-09 15:00 
GeneralRe: Converting images to sql server table Pin
Kannan Ar29-Oct-09 15:50
professionalKannan Ar29-Oct-09 15:50 
GeneralRe: Converting images to sql server table Pin
Christian Graus29-Oct-09 15:51
protectorChristian Graus29-Oct-09 15:51 
QuestionHi, i have big problem with TextBox [modified] Pin
mmda29-Oct-09 14:25
mmda29-Oct-09 14:25 
AnswerRe: Hi, i have big problem with TextBox Pin
Christian Graus29-Oct-09 14:28
protectorChristian Graus29-Oct-09 14:28 
AnswerRe: Hi, i have big problem with TextBox Pin
Christian Graus29-Oct-09 14:59
protectorChristian Graus29-Oct-09 14:59 
AnswerRe: Hi, i have big problem with TextBox Pin
Christian Graus29-Oct-09 15:30
protectorChristian Graus29-Oct-09 15:30 
QuestionHow to access a ListBox within a custom control with Javascript in the aspx page. Pin
Rico MNC29-Oct-09 12:10
professionalRico MNC29-Oct-09 12:10 
QuestionWeb Site Hosting Process Pin
Shahdat Hosain29-Oct-09 7:12
Shahdat Hosain29-Oct-09 7:12 
AnswerRe: Web Site Hosting Process Pin
Abhishek Sur29-Oct-09 7:19
professionalAbhishek Sur29-Oct-09 7:19 
GeneralRe: Web Site Hosting Process Pin
Shahdat Hosain29-Oct-09 8:17
Shahdat Hosain29-Oct-09 8:17 
GeneralRe: Web Site Hosting Process Pin
Abhishek Sur29-Oct-09 10:36
professionalAbhishek Sur29-Oct-09 10:36 
GeneralRe: Web Site Hosting Process Pin
Christian Graus29-Oct-09 18:58
protectorChristian Graus29-Oct-09 18:58 
GeneralRe: Web Site Hosting Process Pin
Abhishek Sur29-Oct-09 21:16
professionalAbhishek Sur29-Oct-09 21:16 

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.