Hi, I have a gridview and a button-Start in aspx page. In gridview 3 columns checkbox , Name and Status. Select multiple columns and click on Start then Status column for selected rows should be changed to "Starting...", later it should be changed to "Started". But it is showing directly "Started". In the mean time i should see "Starting..." also. Here is my code Aspx page Start .cs File protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GridData(); } } public void GridData() { DataTable dt = new DataTable(); dt.Columns.Add("VMName"); dt.Columns.Add("Status"); dt.Rows.Add("abc", "Stopped); dt.Rows.Add("xyx", "Running); dt.Rows.Add("xyz", "Stopped); GrdViewM.DataSource = dt; GrdViewM.DataBind(); } public ArrayList FindChk() { ArrayList arr = new ArrayList(); if (GrdViewM.Rows.Count > 0) { for (int i = 0; i < GrdViewM.Rows.Count; i++) { //finding checkbox in GridView CheckBox cbx = (CheckBox)GrdViewM.Rows[i].FindControl("ChkBoxView"); //CheckBox not null if (cbx != null) { //if CheckBox Checked if (cbx.Checked) { arr.Add(new string[] { i.ToString(), GrdViewM.Rows[i].Cells[1].Text}); } } } } return arr; } protected void LnkBtnStart_Click(object sender, EventArgs e
Krishhhhhhhhhhhhhh
Posts
-
Change the Status in Gridview column -
How to send an auto mail:laugh: go to hell
-
How to update records of a table automatically based on dateI won't excuse u people for i) irresponsible ii) For not answering my questions iii) wasting my time
-
How to send an auto mailsure. y not? tell me......
-
How to update records of a table automatically based on dateI am not new to this. Check ur database since how long am using this. then talk to me.
-
How to send an auto mailStop this bloody replies and do ur job perfectly. otherwise close ur forums
-
How to update records of a table automatically based on dateThen y u r there? I think To check cross post only?
-
How to update records of a table automatically based on dateNo one has answered for this question yet. If anybody knows answer it
-
How to send an auto mailNot Fully answered. OK
-
How to update records of a table automatically based on dateAm using MS sql server 2005 database. Table has 3 columns: 1)Id 2)Status 3)ExpireDate If Expire Date is today then status has to become false otherwise true. It has to done automatically. How to do it? Please help me
-
Send an auto mailHow to do that? Is it necessary to visit my website daily. If not plz tell me how to do that?
-
How to update records of a table automatically based on dateAm using MS sql server 2005 database. Table has 3 columns: 1)Id 2)Status 3)ExpireDate If Expire Date is today then status has to become false otherwise true. It has to done automatically. How to do it? Please help me
-
How to send an auto mailI am working with asp.net and MS sql server 2005. I want send an automatic mail to those status is incomplete(In my database table one column has data like either "complete" or "incomplete"). When the status is "incomplete",then send a mail daily once to "so and so email id". Please help me
-
Send an auto mailI am working with asp.net and MS sql server 2005. I want send an automatic mail to those status is incomplete(In my database table one column has data like either "complete" or "incomplete"). When the status is "incomplete",then send a mail daily once to "so and so email id". Please help me
-
Serving multiple ads on single ad using AdRotatorThanks for the reply But i want to display ads exactly like below: Plz follow the link http://www.adspeed.com/Knowledges/15/Ad_Serving/Serving_Multiple_Ads_with_Single_Ad.html[^] Thank you
-
Serving multiple ads on single ad using AdRotatorThanks for the reply Can u please tell me the example.
-
Help me update product [modified]Try Calendar1.SelectedDate =DateTime.Parse(ds.Tables[0].Rows[0]["Ngaycapnhat"].ToString());
-
Serving multiple ads on single ad using AdRotatorHello, I am working with AdRotator control in asp.net and sql server database. In my homepage have 120 x 600 size. Here i want to display diferent ads on every refresh as follows: 1)single 120 x 600 ad 2)two 12 x 300 ads 3)four 120 x 150 ads How to display like this please tell me Thanks in advance
modified on Sunday, December 6, 2009 2:15 PM
-
How to upload N-Tier architecture Project onto web server?Thanks for the answer. But I have developed website not windows application. Am getting Security Exception. i.e System.Security.SecurityException: That assembly does not allow partially trusted callers. Thanks in Advance
-
How to upload N-Tier architecture Project onto web server?Hello, I have developed a website in n-tier architecture model. IT is working fine in local. But the problem is it is not working fine on server. I have uploaded website(files and folders including Bin). Transport,Data,Business layers dll's are in Bin folder. The Problem is While retrieving the values from database into dataset error occurs. Please Let me know how to upload N-tier arch model website and what files have to upload. Thanks in advance