- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
6 Posted Topics
com = [COLOR="Red"]New[/COLOR] SqlCommand("Update prod_details Set price ='" & price.Text & "',qty='" & qty.Text & "',desc='" & desc.Text & "' where cname='" & cname.Text & "' and pname= '" & pname.Text & "' and mno= '" & mno.Text & "'", con) try type new not New and add [COLOR="Red"];[/COLOR] at …
At first type your code on DeleteCommand event ,choose it from event properties [CODE]private void DataList1_DeleteCommand(object source, System.Web.UI.WebControls.DataListCommandEventArgs e) { }[/CODE] Try the links below , it contains sample codes that help you: [URL="http://authors.aspalliance.com/aspxtreme/webforms/controls/allowinguserstodeleteitemsindatalist.aspx"]http://authors.aspalliance.com/aspxtreme/webforms/controls/allowinguserstodeleteitemsindatalist.aspx[/URL] [URL="http://www.dotnetjunkies.ddj.com/Article/6614EF8F-2ADB-4AEB-B2B7-D96278B53D74.dcik"]http://www.dotnetjunkies.ddj.com/Article/6614EF8F-2ADB-4AEB-B2B7-D96278B53D74.dcik[/URL] [URL="http://www.ondotnet.com/pub/a/dotnet/2003/03/10/datalist.html"]http://www.ondotnet.com/pub/a/dotnet/2003/03/10/datalist.html[/URL]
I Think it is impossible as formatting of text is designed from application but there is one way , you make function to get the formate "font name,color, size" of the text and insert it concatenated with text into database. and make another function to check the concatenation and formate …
If you need easy way, Yuo can add these LinkButton on your design and make its visible property = False then when you meet your condition at run time switch visible to True. If you need your way, Try the link below: [url]http://www.velocityreviews.com/forums/t98800-how-to-assign-event-handlers-at-runtime.html[/url]
1. right click on your DataGrid -->Property Builder -->Columns --> Template Column --> Apply --> Ok. 2. Right click again --> EidtTemplate --> choose Column you add --> drag CheckBox control from Toolbox and drop it in ItemTemplate field and if you need CheckBox in edit mode put another CheckBox …
[COLOR="Red"]1. At first,[/COLOR] you can not disable save as menu command as it is for explorer not for web page. I go to [url]http://www.totaram.com[/url] with firefox and save as is enabled, so if you disable it from IE, you not in other explorers. and also you can not prevent short …
The End.
zezo