|
Hi all
am binding a gridview through code..and am editing the row using edit command in gridview
now everything is working fine..
now if i click on edit all the columns a editable except the datakey column...
i want to make some other column also not to be edited by the user..
how can i do that in GridView's RowEditing event?
|
|
|
|
|
Use EditItemTemplate for Field which you wants for edit .
|
|
|
|
|
<asp:GridView ID="GridView1" runat="server" OnRowEditing="GridView1_RowEditing" OnRowCancelingEdit="GridView1_RowCancelingEdit"
OnRowUpdating="GridView1_RowUpdating" DataKeyNames="EmployeeID">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox id="ChkCancel" runat="server"/>
</ItemTemplate>
</asp:TemplateField>
<asp:CommandField ShowEditButton="True" CausesValidation="false"/>
<asp:TemplateField HeaderText="Reason">
<ItemTemplate >
<asp:DropDownList ID="DDlReason" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DDlReason_SelectedIndexChanged">
<asp:ListItem Text=" " Value="0" >
</asp:ListItem>
<asp:ListItem Text="Termination" Value="T" >
</asp:ListItem>
<asp:ListItem Text="Resignation" Value="R" ></asp:ListItem>
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
and gridview is populating through code...
|
|
|
|
|
Hi,
(I have downloaded a control from net named GoogleMapForASPNet.ascx)
My aim is store some values in a database .
So when the user is clicking on a point on GMAP a info window is getting raised up
and in that few textboxes with a submit button is placed .
i want to store the text box data into mysql database
* I dont want the page to get post back
what i have tried
Placed a html submit button and under Form i have written method="post" and action='apage.aspx'
now on submit button i am passing data via query string .. .. ... problem is its navigating to that apage.aspx
# is there anyway to stop navigating ?
Secondly i have placed a html button and added runat="server" and on onserverclick="butclick"
# Please tell me where to write the butclick function , i tried with writing the function in current page as well as the control page . but no result
# if i was wrong with two concepts .. please suggest something to solve this problem
Happy programming
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
|
Hi all,
I wish to know whether windows sharepoint services 2003 contains an inbuilt e-mail functionality.
I mean to say that it shouldn't be using any e-mail client for it's purpose.The e-mail feature should be embedded in it.Is there something like that?
Please let me know!! If there is something like that then my project is for a toss.
|
|
|
|
|
Well... I think it does.... Because I have emailed from servers which does not exists using Sharepoint services. Initially I thought there is no possibility of doing so,
I dont know what they are using, Have to look into it thoroughly...
Abhishek Sur
|
|
|
|
|
Hi
We are using 3rd Party controls from ComponentOne.com. I've been trying to add a Popup Menu(C1WebMenu) when we right click on any of the Rows on C1WebGrid. I'm not sure if it's possible or not. Could anybody help me out in this...
Thanks in advance.
Vijay
Vijay Mesa
|
|
|
|
|
Hi Team,
How to create WebForm instance in ASP.NET. I have (1.aspx) page and (2.aspx) page I need to use 1.aspx in 2.aspx
Please tell me solution in WEBFORMS
Thanks to all repliers
|
|
|
|
|
|
Hi everebody,
After we applied the security update that is described in security bulletin MS07-040 - our ASP.NET 2.0 application started showing garbage data.
I read this http://support.microsoft.com/kb/940521/en-us[^] and suspecting that this is happening beacuse of this.
If we refresh the page then the garbage characters are removed.
Please help if you could suggest anything.
Thanks much.
Regards
Sajid A.
|
|
|
|
|
If that is the reason for the problem, then your application has started to show garbage data that has been there all the time. That means that the update did not cause the problem, it was just not visible before.
Where does the garbage data show, and what does it look like?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thanks for your kind reply
Its showing any time at the top of the page. garbage code like "? ad&g "is showing randomly at the top. when i press refresh then its gone randomly.
Sajid A.
|
|
|
|
|
That doesn't look at all like what the article was talking about.
Does this happen on any page in the application or on a specific page?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
its happening to any page at any time. no any purticular pages. Sometime its showing the garbage like "؎?cript type="text/javascript">" in pages. We have two website on the same server. both are showing the same error. after refresh its gone.
Sajid A.
modified on Saturday, February 7, 2009 11:40 PM
|
|
|
|
|
Hi,
I am working on a task to Display Timer count down in GridView, in Asp.net with C#.net. Here timer Count Down will be given particular time, for example 05:00:00 hours. In the GridView this duration of time should decrement and finally it should reach 00:00:00. This should be done for every element of GridView. If anyone have solution for this Please reply me as soon as posssible.
Thank you.
|
|
|
|
|
Well, obviously the only way to do this, is with javascript. There's tons of examples of js timers on the web.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
use setTimeOut from javascript to implement your logic.
Abhishek Sur
|
|
|
|
|
I need to search on text which are in particular column in Db(which has greater number of records) and get the rows and display the search result based on the text searched.For implementing with good performance, which type of indexing is accurate like clustered index,nonclustered index,full-text indexing et.
|
|
|
|
|
Was there any problem in using the appropriate(SQL) Forum?
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi,
When i use modalpopup Extender and trying show a message on button click the Dropdownlists which are present on my webform are getting Disappeared and when i press cancel(which is present in my message box(using Modal popup)) they reappears(dropdownlists)
|
|
|
|
|
i want to apply css class.and wat is css class .fresher pls help
|
|
|
|
|
anujbanka1784 wrote: i want to apply css class.and wat is css class
You want to apply CSS, but you don't know what it is ? Why don't you buy some books if you want to learn programming ? Or, why don't you try learning to use google ? This is just too basic and clueless a question to get any real answers, I am not sure what I could possibly say and hope for you to understand it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
anujbanka1784 wrote: i want to apply css class.
If you learn what a CSS class is, you will be able to apply one. Search for CSS beginner tutorials.
anujbanka1784 wrote: and wat is css class .fresher
It's just a name of a CSS class, the name doesn't have any meaning in itself so the class is what you put in it.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
i know wat it is i want to apply it on my project i apply it on master page wat its not working.
|
|
|
|