Click here to Skip to main content
15,910,797 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionconvert format DateTime in dd/MM/yyyy Pin
wertyk25-May-09 23:49
wertyk25-May-09 23:49 
Questionerror Must declare the variable '@pname'. Pin
prateekfgiet25-May-09 23:48
prateekfgiet25-May-09 23:48 
AnswerRe: error Must declare the variable '@pname'. Pin
adatapost26-May-09 1:09
adatapost26-May-09 1:09 
Questiongridview Pin
jainiraj25-May-09 22:44
jainiraj25-May-09 22:44 
AnswerRe: gridview Pin
Baran M25-May-09 22:51
Baran M25-May-09 22:51 
AnswerRe: gridview Pin
Tuwing.Sabado25-May-09 23:05
Tuwing.Sabado25-May-09 23:05 
AnswerRe: gridview Pin
ais0725-May-09 23:46
ais0725-May-09 23:46 
Questionediting problem in gridview Pin
prateekfgiet25-May-09 22:37
prateekfgiet25-May-09 22:37 
hiii
i m using asp.net
and facing problem in edit time,when i click on edit button all field are readonly they are not change in textbox(editable mode).
code is

<asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="#E7E7FF"
BorderStyle="None" BorderWidth="1px" CellPadding="3"

GridLines="Horizontal" DataKeyNames="materialrecipt_no" PageSize="20"
Style="position: relative" Width="1064px"

AutoGenerateColumns="False" DataSourceID="SqlDataSource1"

OnRowEditing="GridView1_RowEditing" AllowPaging="True">
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True"

ForeColor="#F7F7F7" />
<PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C"

HorizontalAlign="Right" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True"

ForeColor="#F7F7F7" />
<AlternatingRowStyle BackColor="#F7F7F7" />
<Columns>
<asp:CommandField ShowEditButton="True" />
<asp:BoundField DataField="materialrecipt_no"

HeaderText="Sr No" InsertVisible="False"
ReadOnly="True" SortExpression="materialrecipt_no" />
<asp:BoundField DataField="materialrecipt_date"

HeaderText="Entry Date"
SortExpression="materialrecipt_date" />
<asp:BoundField DataField="pname" HeaderText="Product

Name" SortExpression="pname" />
<asp:BoundField DataField="qty" HeaderText="Quantity"

SortExpression="qty" />
<asp:BoundField DataField="enterby" HeaderText="Enter By"

SortExpression="enterby" />
<asp:BoundField DataField="sno_to" HeaderText="Sr

No(End)" SortExpression="sno_to" />
<asp:BoundField DataField="sno_from" HeaderText="Sr

No(Start)" SortExpression="sno_from" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"

ConnectionString="<%$ ConnectionStrings:mcplConnectionString2 %>"
SelectCommand="SELECT * FROM [mat_in] ORDER BY

[materialrecipt_no] DESC"
UpdateCommand="Update [mat_in] set

[pname]=@pname,[qty]=@qty,[enterby]=@enterby,[sno_to]=@sno_to,[sno_from]=@sno_from

where [materialrecipt_no]=@materialrecipt_no"
></asp:SqlDataSource>
AnswerRe: editing problem in gridview Pin
Baran M25-May-09 23:43
Baran M25-May-09 23:43 
QuestionSecurity settings for single sign on web site Pin
samerh25-May-09 22:05
samerh25-May-09 22:05 
AnswerRe: Security settings for single sign on web site Pin
Manas Bhardwaj25-May-09 22:08
professionalManas Bhardwaj25-May-09 22:08 
GeneralRe: Security settings for single sign on web site Pin
samerh25-May-09 22:14
samerh25-May-09 22:14 
Questionibm language ware Pin
newmember2225-May-09 21:24
newmember2225-May-09 21:24 
AnswerRe: ibm language ware Pin
Manas Bhardwaj25-May-09 22:07
professionalManas Bhardwaj25-May-09 22:07 
GeneralRe: ibm language ware Pin
newmember2226-May-09 5:15
newmember2226-May-09 5:15 
QuestionVideo Pin
Robymon25-May-09 21:22
Robymon25-May-09 21:22 
AnswerRe: Video Pin
Eduard Keilholz25-May-09 21:27
Eduard Keilholz25-May-09 21:27 
GeneralRe: Video Pin
Robymon25-May-09 21:40
Robymon25-May-09 21:40 
QuestionHow to navigate Next,Previous ,Last,First Pin
govindi unal25-May-09 20:38
govindi unal25-May-09 20:38 
AnswerRe: How to navigate Next,Previous ,Last,First Pin
Baran M25-May-09 21:06
Baran M25-May-09 21:06 
AnswerRe: How to navigate Next,Previous ,Last,First Pin
gottimukkala26-May-09 0:57
gottimukkala26-May-09 0:57 
Question.net framework 3.5 Pin
vishwjeet25-May-09 20:36
vishwjeet25-May-09 20:36 
AnswerRe: .net framework 3.5 Pin
Tuwing.Sabado25-May-09 20:54
Tuwing.Sabado25-May-09 20:54 
AnswerRe: .net framework 3.5 Pin
Ramesh Swaminathan25-May-09 21:03
Ramesh Swaminathan25-May-09 21:03 
GeneralRe: .net framework 3.5 Pin
vishwjeet25-May-09 21:06
vishwjeet25-May-09 21:06 

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.