Click here to Skip to main content
15,880,651 members
Home / Discussions / Database
   

Database

 
AnswerRe: StoredProcedure error Pin
Al Ortega12-Dec-05 6:59
Al Ortega12-Dec-05 6:59 
GeneralRe: StoredProcedure error Pin
R. A. Abbasi12-Dec-05 7:13
R. A. Abbasi12-Dec-05 7:13 
QuestionProblem with Insert Command Pin
fitz23456711-Dec-05 22:56
fitz23456711-Dec-05 22:56 
QuestionGenerate “Dataset” of Enterprise .Net Windows Application Problem Pin
Fariborz Golara11-Dec-05 22:25
Fariborz Golara11-Dec-05 22:25 
AnswerRe: Generate "Dataset" of Enterprise .Net Windows Application Problem Pin
Colin Angus Mackay12-Dec-05 4:53
Colin Angus Mackay12-Dec-05 4:53 
GeneralThank you Colin Pin
Fariborz Golara12-Dec-05 8:08
Fariborz Golara12-Dec-05 8:08 
QuestionDatabase table audit in SQL 2000 Pin
sumitjh11-Dec-05 22:01
sumitjh11-Dec-05 22:01 
QuestionAdo.net sqldatareader not working Pin
kal13na1311-Dec-05 21:59
kal13na1311-Dec-05 21:59 
Hi I am using asp.net in C# I am using sqldatareader where I am trying to select some rows from the (radiobuttonlist) from database and display in the datagrid which is not happening it gets stuck in the datareader.The action is taking place in the click button event the details to be displayed in the same and next page . here is the code

SqlConnection conn=new SqlConnection("server=KHWA73R;database=NorthWind;user id=sa;password=sa");
string strSelect=("SELECT CustomerID,OrderID FROM Orders" + " WHERE CustomerID = '' " + Radiobuttonlist1.SelectedItem.Value + "ORDER BY OrderID");
SqlDataReader reader;
SqlCommand mycmd=new SqlCommand(strSelect,conn);

try
{
conn.Open();
reader=mycmd.ExecuteReader();
DataGrid2.DataSource=mycmd.ExecuteReader();
DataGrid2.DataSource=reader;
DataGrid2.DataBind();

}

catch(Exception se)
{
Response.Write("Exception.."+ se.StackTrace);
}
finally
{
conn.Close();
}
if (Radiobuttonlist1.SelectedIndex > -1)
{
Label1.Text = "You selected: " +
Radiobuttonlist1.SelectedItem.Text;
}
Label1.Text ="Customers ID " + Radiobuttonlist1.SelectedItem.Text;
Server.Transfer("Print.aspx");

thanks


kal13na13
AnswerRe: Ado.net sqldatareader not working Pin
miah alom12-Dec-05 4:16
miah alom12-Dec-05 4:16 
GeneralRe: Ado.net sqldatareader not working Pin
kal13na1312-Dec-05 18:49
kal13na1312-Dec-05 18:49 
GeneralRe: Ado.net sqldatareader not working Pin
miah alom13-Dec-05 3:49
miah alom13-Dec-05 3:49 
Questionstored procedure problem Pin
kal13na1311-Dec-05 21:39
kal13na1311-Dec-05 21:39 
AnswerRe: stored procedure problem Pin
Fariborz Golara11-Dec-05 22:33
Fariborz Golara11-Dec-05 22:33 
QuestionPassword Pin
kenexcelon11-Dec-05 6:53
kenexcelon11-Dec-05 6:53 
AnswerRe: Password Pin
Colin Angus Mackay11-Dec-05 21:03
Colin Angus Mackay11-Dec-05 21:03 
AnswerRe: Password Pin
Al Ortega12-Dec-05 13:04
Al Ortega12-Dec-05 13:04 
QuestionArchitecture of .Net windows applications problem Pin
Fariborz Golara11-Dec-05 4:47
Fariborz Golara11-Dec-05 4:47 
AnswerRe: Architecture of .Net windows applications problem Pin
Colin Angus Mackay11-Dec-05 4:50
Colin Angus Mackay11-Dec-05 4:50 
GeneralRe: Architecture of .Net windows applications problem Pin
Michael P Butler11-Dec-05 5:03
Michael P Butler11-Dec-05 5:03 
GeneralRe: Architecture of .Net windows applications problem Pin
Colin Angus Mackay11-Dec-05 6:05
Colin Angus Mackay11-Dec-05 6:05 
Question"show create table" equivalent in MSSQL Pin
karanba11-Dec-05 1:58
karanba11-Dec-05 1:58 
AnswerRe: "show create table" equivalent in MSSQL Pin
Colin Angus Mackay11-Dec-05 4:48
Colin Angus Mackay11-Dec-05 4:48 
GeneralRe: "show create table" equivalent in MSSQL Pin
karanba11-Dec-05 5:01
karanba11-Dec-05 5:01 
GeneralRe: "show create table" equivalent in MSSQL Pin
Colin Angus Mackay11-Dec-05 5:15
Colin Angus Mackay11-Dec-05 5:15 
AnswerRe: "show create table" equivalent in MSSQL Pin
Fariborz Golara11-Dec-05 10:21
Fariborz Golara11-Dec-05 10:21 

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.