Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

I have a grid view template which will populate on page load from the data in database. below is the aspx code

XML
<asp:GridView ID="grdJobsGrid" runat="server" AllowPaging="True" AllowSorting="True"
                                AutoGenerateColumns="False" Width="500px"
                                onrowcommand="grdJobsGrid_RowCommand" CellPadding="4" ForeColor="#333333"
                                GridLines="None" onrowcreated="grdJobsGrid_RowCreated">
                                <AlternatingRowStyle BackColor="White" />
                                <Columns>
                                    <asp:TemplateField HeaderText="JobId" Visible="false">
                                        <ItemTemplate>
                                            <asp:Label ID="lblJobId" runat="server" Text='<%#Eval("JobId") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Job Title">
                                        <ItemTemplate>
                                            <asp:Label ID="lblJobTitle" runat="server" Text='<%#Eval("JobTitle") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Posted Date" >
                                        <ItemTemplate>
                                            <asp:Label ID="lblPosteddate" runat="server" Text='<%#Eval("CreatedDate") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Expired On">
                                        <ItemTemplate>
                                            <asp:Label ID="lblExpiredOn" runat="server" Text='<%#Eval("ExpiredOn") %>'></asp:Label>
                                        </ItemTemplate>

                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Applicants" ItemStyle-HorizontalAlign="Center">

                                        <ItemTemplate>
                                            <asp:LinkButton ID="lblApplicant" runat="server" CommandName="lnkApplicantClick" CommandArgument='<%#Eval("JobId") %>' Text='<%#Eval("ApplicantsCount") %>'></asp:LinkButton>
                                        </ItemTemplate>

                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="Action" ItemStyle-HorizontalAlign="Center">
                                        <ItemTemplate>
                                            <asp:ImageButton ID="BtnEdit" runat="server" CausesValidation="False" CommandArgument='<%#Eval("JobId")%>'
                                                CommandName="BtnEdit" ImageUrl="~/App_Themes/Theme1/Images/edit.gif" />
                                            <asp:ImageButton ID="BtnDelete" runat="server" CausesValidation="False" CommandArgument='<%#Eval("JobId")%>'
                                                CommandName="BtnDelete" ImageUrl="~/App_Themes/Theme1/Images/cancel.gif" />
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle HorizontalAlign="Center" Width="15%" />
                                    </asp:TemplateField>

                                  </Columns>


while clicking on Applicants hyperlink bounded coloum it will transfer to another page there the users can see the list of applcants in grid view. and it also has a send button. once clicking on the send button will send email to the candidate. once email send then i will record that to another table.

I want to disable the send button after rows recorded to the database and when the user visited the same page again i want to keep the send button to be disabled. please help me how can i achieve this


Thanks in advance

regards
Posted
Comments
Ahamed Azeem 12-Apr-12 1:13am    
Hi,

Anyone please help me out, I am waiting for your suggestions long time

regards
Ahamed Azeem 12-Apr-12 13:26pm    
Even after 24 views I didnt get answer from anyone. Is it that my question is stupid or?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900