Click here to Skip to main content
15,897,371 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionSearch Engine Pin
Nanda_MR7-Oct-09 23:53
Nanda_MR7-Oct-09 23:53 
AnswerRe: Search Engine Pin
janani138-Oct-09 0:11
janani138-Oct-09 0:11 
AnswerRe: Search Engine Pin
Christian Graus8-Oct-09 0:21
protectorChristian Graus8-Oct-09 0:21 
Questionrepeater with multiple rows Pin
m@dhu7-Oct-09 23:35
m@dhu7-Oct-09 23:35 
AnswerRe: repeater with multiple rows Pin
janani138-Oct-09 0:19
janani138-Oct-09 0:19 
GeneralRe: repeater with multiple rows Pin
m@dhu8-Oct-09 0:43
m@dhu8-Oct-09 0:43 
GeneralRe: repeater with multiple rows Pin
janani138-Oct-09 1:13
janani138-Oct-09 1:13 
GeneralRe: repeater with multiple rows Pin
m@dhu8-Oct-09 2:11
m@dhu8-Oct-09 2:11 
now its completely not workin

if (e.CommandName == "act" && e.CommandArgument=="StaffId")
                {
                    //sql conn
                    //sql comm ("select * from tb_staff"
                    DataSet ds = new DataSet();
                    DataTable dt = new DataTable();
                    OleDbDataAdapter ad = new OleDbDataAdapter(cm);
                    ad.Fill(ds, "tb_staff");
                    dt = ds.Tables["tb_staff"];
                    foreach (DataRow row in dt.Rows)
                    {
                        if (row["Active"].ToString() == "1")
                        {
                            SqlCommand cmd = new SqlCommand("update_staff_active", cnn);
                            cmd.CommandType = CommandType.StoredProcedure;
                            cmd.Parameters.Add("@StaffId", SqlDbType.Char).Value = "StaffId";
                            cmd.Parameters.Add("@Active", SqlDbType.Char).Value = "active";
               
                            SqlCommand cmd = new SqlCommand("update_staff_active", cnn);
                            cmd.CommandType = CommandType.StoredProcedure;
                            cmd.Parameters.Add("@StaffId", SqlDbType.Char).Value = "TextBox1.Text";
                            cmd.Parameters.Add("@Active", SqlDbType.Char).Value = "TextBox2.Text";
                            cnn.Open();
                            cmd.ExecuteNonQuery();
                            cnn.Close();
               
                           
                        }
                    }
                }


procedure

create PROCEDURE [dbo].[update_staff_active]
(
@StaffId int ,

@Active [char]


)

AS
update tb_staff
set

Active=@Active


where
StaffId=@StaffId
AnswerRe: repeater with multiple rows Pin
praveen.c@byzan.com8-Oct-09 0:25
praveen.c@byzan.com8-Oct-09 0:25 
QuestionConverting Asp.net application to run trust level medium ? Pin
rahul.net117-Oct-09 23:00
rahul.net117-Oct-09 23:00 
AnswerRe: Converting Asp.net application to run trust level medium ? Pin
Christian Graus7-Oct-09 23:10
protectorChristian Graus7-Oct-09 23:10 
GeneralRe: Converting Asp.net application to run trust level medium ? Pin
rahul.net117-Oct-09 23:26
rahul.net117-Oct-09 23:26 
GeneralRe: Converting Asp.net application to run trust level medium ? Pin
Christian Graus8-Oct-09 1:11
protectorChristian Graus8-Oct-09 1:11 
QuestionGrid To Excel Pin
4anusha47-Oct-09 20:57
4anusha47-Oct-09 20:57 
AnswerRe: Grid To Excel Pin
Christian Graus7-Oct-09 22:26
protectorChristian Graus7-Oct-09 22:26 
GeneralRe: Grid To Excel Pin
4anusha47-Oct-09 22:30
4anusha47-Oct-09 22:30 
AnswerRe: Grid To Excel Pin
Sujit Mandal11-Oct-09 23:17
Sujit Mandal11-Oct-09 23:17 
QuestionTableInsideTableRow [modified] Pin
Yonathan11117-Oct-09 20:51
professionalYonathan11117-Oct-09 20:51 
AnswerRe: TableInsideTableRow Pin
Abhijit Jana7-Oct-09 22:55
professionalAbhijit Jana7-Oct-09 22:55 
AnswerRe: TableInsideTableRow Pin
Sujit Mandal11-Oct-09 23:19
Sujit Mandal11-Oct-09 23:19 
GeneralRe: TableInsideTableRow Pin
Yonathan111112-Oct-09 1:28
professionalYonathan111112-Oct-09 1:28 
QuestionImplementing logout functionality for web application Pin
Vishnu Nath7-Oct-09 19:49
Vishnu Nath7-Oct-09 19:49 
AnswerRe: Implementing logout functionality for web application Pin
janani137-Oct-09 20:00
janani137-Oct-09 20:00 
GeneralRe: Implementing logout functionality for web application Pin
Vishnu Nath7-Oct-09 20:28
Vishnu Nath7-Oct-09 20:28 
GeneralRe: Implementing logout functionality for web application Pin
Christian Graus7-Oct-09 20:32
protectorChristian Graus7-Oct-09 20:32 

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.