Click here to Skip to main content
15,900,907 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: exception handling in BLL? Pin
srisairam11-Oct-10 0:01
srisairam11-Oct-10 0:01 
AnswerRe: exception handling in BLL? Pin
Not Active11-Oct-10 2:42
mentorNot Active11-Oct-10 2:42 
QuestionDate control in Dropdownlist Pin
Dineshrai200910-Oct-10 21:07
Dineshrai200910-Oct-10 21:07 
AnswerRe: Date control in Dropdownlist Pin
Brij11-Oct-10 0:50
mentorBrij11-Oct-10 0:50 
GeneralRe: Date control in Dropdownlist Pin
Dineshrai200911-Oct-10 21:23
Dineshrai200911-Oct-10 21:23 
AnswerRe: Date control in Dropdownlist Pin
Sneha Bisht11-Oct-10 23:00
Sneha Bisht11-Oct-10 23:00 
GeneralRe: Date control in Dropdownlist Pin
Ravi Sant3-May-11 0:21
Ravi Sant3-May-11 0:21 
QuestionEditable GridView Pin
treuveni10-Oct-10 4:23
treuveni10-Oct-10 4:23 
Hi,

I have a gridview with Edit And Delete buttons.
Here is one of the columns:
<asp:TemplateField HeaderText="החל מ-">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="txtStart" Width="150px" ReadOnly="true" BackColor="LightSteelBlue" runat="server" Text='<%# Bind("startHour") %>'></asp:TextBox></EditItemTemplate>
                                            <FooterTemplate>
                                                <asp:TextBox ID="txtStartNew" Width="150px" runat="server"></asp:TextBox></FooterTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblMStart" Width="150px" runat="server" Text='<%# Bind("startHour") %>'></asp:Label></ItemTemplate>
                                        </asp:TemplateField>


I've set the TextBox in the EditItemTemplate to ReadOnly.

My Problem is-
that i want to change the property (ReadOnly) to False after i pressed on the Edit button if some cell has a value.

I've tried to do this in the RowEditing event -
TextBox txtStart = (TextBox)GridViewIpTab.Rows[e.RowIndex].FindControl("txtStart");

but i got "Object reference not set to an instance of an object".

Can some one please help me with this problem?
AnswerRe: Editable GridView Pin
Not Active10-Oct-10 4:40
mentorNot Active10-Oct-10 4:40 
GeneralRe: Editable GridView Pin
treuveni11-Oct-10 0:05
treuveni11-Oct-10 0:05 
GeneralRe: Editable GridView Pin
Not Active11-Oct-10 2:11
mentorNot Active11-Oct-10 2:11 
GeneralRe: Editable GridView Pin
treuveni11-Oct-10 7:24
treuveni11-Oct-10 7:24 
AnswerRe: Editable GridView Pin
Steve Echols13-Oct-10 7:14
Steve Echols13-Oct-10 7:14 
AnswerRe: Editable GridView Pin
MasttsaM18-Oct-10 0:48
MasttsaM18-Oct-10 0:48 
QuestionAjax app with tabs Pin
Haim Nachum9-Oct-10 9:34
Haim Nachum9-Oct-10 9:34 
AnswerRe: Ajax app with tabs Pin
Not Active9-Oct-10 19:37
mentorNot Active9-Oct-10 19:37 
QuestionResponse.Redirect(url, bool) Pin
Tamimi - Code9-Oct-10 6:11
Tamimi - Code9-Oct-10 6:11 
AnswerRe: Response.Redirect(url, bool) PinPopular
Brij9-Oct-10 7:53
mentorBrij9-Oct-10 7:53 
Generalthank you Pin
Tamimi - Code9-Oct-10 22:36
Tamimi - Code9-Oct-10 22:36 
QuestionDownload without showing the real link Pin
Jassim Rahma9-Oct-10 5:15
Jassim Rahma9-Oct-10 5:15 
AnswerRe: Download without showing the real link Pin
Brij9-Oct-10 5:46
mentorBrij9-Oct-10 5:46 
AnswerRe: Download without showing the real link [modified] Pin
Karthik. A9-Oct-10 12:27
Karthik. A9-Oct-10 12:27 
Questionview external websites in a panel Pin
Jassim Rahma9-Oct-10 4:53
Jassim Rahma9-Oct-10 4:53 
AnswerRe: view external websites in a panel Pin
Abdulhafeezo9-Oct-10 7:45
Abdulhafeezo9-Oct-10 7:45 
AnswerRe: view external websites in a panel Pin
Anurag Gandhi9-Oct-10 19:59
professionalAnurag Gandhi9-Oct-10 19:59 

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.