View Complete Post
I need to disable the "Imagebuttons" after the user click on one of them... I've sucessfully updated the table when the user click on a button using the following code on the event of row command of the gridview...
PLEASE NOTE THE THE GRIDVIEW IS INSIDE UPDATE PANEL !
if (e.CommandName == "voter_up")
SqlCommand voteup = new SqlCommand("update arto_comments set voteup = voteup+1 where cid=" + e.CommandArgument, con);
SqlCommand getVup = new SqlCommand("select voteup from arto_comments where cid =" + e.CommandArgument, con);
//lblvoteup.Text = Convert.ToString(getVup.ExecuteScalar());
//GridView1.Rows.FindControl("ImageButton1"). = false;
ImageButton1.Enabled = false;
so please how may I disable these buttons after database is updated ?
Thanx and Regards
I'm fairly new to WPF and I'm having an issue with a layout I'm trying to accomplish. I have pasted the XAML below. Briefly I have a Grid inside a stackpanel in which the grid has 3 stack panels nested below. The Grid in question is Named DetailGrid,
which is not sizing correctly. In fact it's not stretching at all and is causing issues with some drag and drop functionality.The layout I'm trying to achieve is a Header/Body layout, where the header remains the same and the body is dynamic content based
upon objects the user chooses to place on the detail grid/stackpanels. I know this may not be the best choice of controls for this layout, but the functionality of having all the children contrlols move dynamically when the expanders are expanded and collapsed
is a desired function of the application.
Any Recommendations are greatly appreciated.
Hello All ,
i want to make a combo box in data grid view column which allow me to read or write from it
the data grid view with column type of combo box only allow reading but i can't write
how can i do that ?
I am developing a multi-company application and want my users to give the functionality like the following to switch companies.
Is this possible? then how?
I have Repeater, which consists of LinkButon and Literal.ÃÂ LinkButon and Literal are whole thing by implication. I want get value from Literal, when user click onÃÂ corresponding LinkButton.
How to take
value of bound field of grid in a variable or in a textbox.
I m using
this code in .aspx page for grid.
<RowStyle CssClass="odd" />
DataField="DOC_TYPE_PK" Visible="true" >
<asp:TemplateField HeaderText="DOC TYPE ID" Visible="true"> &nbs