View Complete Post
There is one repeater inside that there is one more reapeater and inside that there is third repeater and in third repeater there is one Label control, which is generatiing dynamically. I have to fetch the value of each label controls. Thanks.
I am trying to call a function when the button is clicked, but the button is inside a repeater. The functions are also called when the page loads because I need to load the values. I am getting this error:
BC30408: Method 'Public Sub getProductSize()' does not have the same signature as delegate 'Delegate Sub EventHandler(sender As Object, e As System.EventArgs)'.
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 have a pager template in a formview which shows the Prev, Next button and the number of pages. I want to make the Prev or the Next button disable when there are no more pages to go. Like, if it is the first page, then the Prev button will be disabled.
<PagerSettings Mode="NextPreviousFirstLast" />
<PagerTemplate> <table align="
I have been writing C# code for about 3 years now and have never had this happen.
I am using an asp:repeater (inside an update panel):
<asp:Repeater runat="server" ID="rptRedFolderDocs" OnItemDataBound="rptDataBound">
inside the repeater I have a button with a click event with server side code.
When the page loads, the repeater is databound to a datatable popuplated from SQL connection. The repeater is NOT bound on postback. I wanted the data to persist.
When the button is click
I have the following scenario and I'm not sure how to go about in resolving it. Any ideas would gratefully recieved.
I have a page(A) with a button that when selected opens a new page(B) with a populated gridView.
However if the gridview hasn't got any data to display, rather than use the <EmptyDataTemplate> within the gridview, I'd rather use disable/lock the button on page(A) thus preventing access to page(B)
Is this possible? How on earth would I go about such a task ?