Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:790234
More Search Options
RSS Available
Matching Posts
Re: Problem with datalist's grid lines
Hi thiruvathira, There is no Column collection in DataList, so you won't see the vertical gridline between each Label. If you want to show vertical lines, you can set html table structure in ItemTemplate of DataList with setting border property in it. Thanks,
Posted to
Data Presentation Controls
(Forum)
by
Qin Dian Tang - MSFT
on 11/26/2009
Re: How to Auto increment ID coloumn ?
Hi sayed_mohamed_Darwish, I am not sure what the efficient way is. Based on my knowledge you can set it in ItemDataBound event by getting the max value of "ID" column: protected void ListView1_ItemDataBound(object sender, ListViewItemEventArgs e) { if (e.Item.ItemType == ListViewItemType.InsertItem) { TextBox tb = (TextBox)ListView1.InsertItem.FindControl("IDTextBox"); tb.Text = (Convert.ToInt32( yourDataTable .Compute("MAX(ID)", "")) + 1 ).ToString(); //input
Posted to
Data Presentation Controls
(Forum)
by
Qin Dian Tang - MSFT
on 11/26/2009
Re: issue with onrowcommand event of gridview
Hi rautchetan1984, How can it happen. How do you add the LinkButtons, directly set them in markup or add them dynamically. You can set CommandName in LinkButton, then check it in RowCommand event to see if it is clicked and fired event. Another workaround is to handle Click event of LinkButton itself to do the same thing to RowCommand event. Thanks,
Posted to
Data Presentation Controls
(Forum)
by
Qin Dian Tang - MSFT
on 11/26/2009
Re: How to format ListView InsertItemPlate?
Hi mychucky, I don't understand what you want to say from your image above. If you want to set the same style for InsertItemTemplate to the style of ItemTemplate, just set the same cssclass to both ItemTemplate and InsertItemTemplate. This can be done in ItemDataBound event of ListView: protected void ListView1_ItemDataBound(object sender, ListViewItemEventArgs e) { if (e.Item.ItemType == ListViewItemType.DataItem) { Label lbl = (Label)e.Item.FindControl("Label1"); lbl.CssClass = *
Posted to
Data Presentation Controls
(Forum)
by
Qin Dian Tang - MSFT
on 11/26/2009
Re: ddl selected value is not updating,
Hi learning.net, You can put the code of Page_Load event into SelectedIndexChanged event, or you can remove the Postback checking in Page_Load event. Thanks,
Posted to
Data Presentation Controls
(Forum)
by
Qin Dian Tang - MSFT
on 11/26/2009
Re: Nested Gridview inside update panel
Hi rguisando, Here is a full sample of nested collapse/expand GridView with edit, delete, paging: http://www.codeproject.com/KB/webforms/EditNestedGridView.aspx Thanks,
Posted to
Data Presentation Controls
(Forum)
by
Qin Dian Tang - MSFT
on 11/26/2009
Re: Issue Creating Custom ListView LayoutTemplate
Hi bgibilaro, You can add <asp:Table> control as server control into the container of template directly. Then set the ID of Table to "itemPlaceholder", which solves the issue. Then you can add TableRow and TableCell to this Table control. The key point is you have to add an container control, its ID should be "itemPlaceholder". Thanks,
Posted to
Custom Server Controls
(Forum)
by
Qin Dian Tang - MSFT
on 11/25/2009
Re: Composite Control with complex properties
Hi dotnetster, Here are some good articles about how to create a databinding custom control: http://weblogs.asp.net/palermo4/archive/2007/01/10/creating-a-custom-databound-templated-control-in-asp-net-2-0.aspx http://aspalliance.com/391_Custom_Data_Binding_for_Server_Controls http://msdn.microsoft.com/en-us/magazine/cc163505.aspx Thanks,
Posted to
Custom Server Controls
(Forum)
by
Qin Dian Tang - MSFT
on 11/25/2009
Re: dropdownlist in repeater problem
Hi -_-, Do you mean the bound data of Repeater is null for the selectedvalue of dropdownlist? If so, you can handle ItemDataBound event of Repeater to set the selectedvalue. Before setting you can check "if(((DataRowView)e.Item.DataItem)["names"] == null)". If it is not null, set the selectedvalue to dropdownlist. Thanks,
Posted to
Data Presentation Controls
(Forum)
by
Qin Dian Tang - MSFT
on 11/25/2009
Re: Content of LinkButton within repeater are not showing up on the page
Hi computer_boy, I think it is the same issue to your another post: http://forums.asp.net/t/1493526.aspx If still not working, please follow up here. Thanks,
Posted to
Data Presentation Controls
(Forum)
by
Qin Dian Tang - MSFT
on 11/25/2009
Page 1 of 549 (5486 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
ASP.NET:
T4MVC now has a real home and a dedicated forum!
TechNet Edge:
Windows Server 2008 R2 : New Power Management Features
ASP.NET:
Web Deployment Painkillers: VS 2010 & MS Deploy
WindowsClient:
Application Accessibility Testing
WindowsClient:
Prism & WCF RIA Services
Channel 9:
Sharepoint 2010 and Claims-Based Identity
WindowsClient:
IRhetoric Ported To BlogEngine.NET
WindowsClient:
PDC Recap and More
Channel 9:
Reactive Extensions API in depth: Primitives
WindowsClient:
New WPF Features: MultiTouch
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online