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:673836
More Search Options
RSS Available
Matching Posts
Creating Article Subcategories using ParentCategoryID
I need to implement multiple categories for articles. I followed the recommendation of adding a ParentCategoryID to the db using the int field type. I have changed the Category.cs, CategoryDetails.cs, and ArticlesProvider.cs files as needed and sucessfully built the solution. Upon running the site I receive the System.InvalidCastException detailed below; Line 78: protected virtual CategoryDetails GetCategoryFromReader(IDataReader reader) Line 79: { Line 80: return new CategoryDetails( Line 81: (
Posted to
TheBeerHouse Starter Kit
(Forum)
by
kabogo
on 5/20/2009
Filed under: Article subcategories
Trouble finding a label inside the ItemTemplate of a ListView
I have a listview with an asp:View located in an asp:MultiView. When I place my label (lblFullName) outside my listview < asp : MultiView ID ="MultiView1" runat ="server" ActiveViewIndex ="0"> < asp : View ID ="vDefault" runat ="server"> < h1 > Welcome < asp : Label ID ="lblFullName" runat ="server" /> </ h1 > < asp : ListView ID ="lvProfiles" GroupItemCount ="2" DataSourceID
Posted to
Data Presentation Controls
(Forum)
by
kabogo
on 2/7/2009
Filed under: ListView
Finding a control in ListView InsertItemTemplate
I am learning how to use the ListView. I have managed to add a drop down list of selections but want to append "-- Please select --" to provide instruction. I know that this has to be appended in code-behind using ListItem item = new ListItem ( " -- Please select --" , "" ); ddlNewsID.Items.Insert(0, item); If I were using a GridView footer to insert records I would write DropDownList NewPageSectionID = ( DropDownList )GridViewNews.FooterRow.FindControl( "ddlAddNewsID"
Posted to
Data Presentation Controls
(Forum)
by
kabogo
on 5/1/2008
Re: Delete Confirmation in GridView
Having previously used onclientclick="return confirm('Are you sure you want to delete this item?');", I had considered this approach. When I try onclientclick='<%# "return confirm('Are you sure you want to delete" + Eval("itemName") + "?');" %>' I receive ... Parser Error Message: The server tag is not well formed.
Posted to
Data Presentation Controls
(Forum)
by
kabogo
on 1/23/2008
Delete Confirmation in GridView
I am using ... 1 protected void GridView1_RowDataBound( object sender, GridViewRowEventArgs e) 2 { 3 if (e.Row.RowType == DataControlRowType.DataRow) 4 { 5 ImageButton db = (ImageButton)e.Row.FindControl( "DeleteButton" ); 6 docs.docRow mydoc = (docs.docRow)((System.Data.DataRowView)e.Row.DataItem).Row; 7 db.OnClientClick = string .Format( 8 "return confirm('Are you sure you want to delete {0}?');" , 9 mydoc.Title.Replace( "," , @ "\;" )); 10 } 11
Posted to
Data Presentation Controls
(Forum)
by
kabogo
on 1/21/2008
Re: Usercontrol Paging Data in a Repeater Control
Allen, Please refer to the tutorial http://asp.net/learn/data-access/tutorial-45-cs.aspx . Specifically the handlers for the paging interface as this is where I believe the value of the StartRowIndex needs to be maintained protected void FirstPage_Click(object sender, EventArgs e) { // Return to StartRowIndex of 0 and rebind data StartRowIndex = 0; Products.DataBind(); } protected void PrevPage_Click(object sender, EventArgs e) { // Subtract MaximumRows from StartRowIndex and rebind data StartRowIndex
Posted to
Data Presentation Controls
(Forum)
by
kabogo
on 12/24/2007
Re: Usercontrol Paging Data in a Repeater Control
I do not know how to set the StartRowIndex in the Page Init event
Posted to
Data Presentation Controls
(Forum)
by
kabogo
on 12/23/2007
Re: Usercontrol Paging Data in a Repeater Control
I am creating the UserControl dynamically (via a naviagational menu that uses a switch statement to initialize different controls). To accomplish paging in the UserControl, first, previous, next and last buttons are used to take the StartRowIndex and add or subtract MaximumRows to move forward or back through results.
Posted to
Data Presentation Controls
(Forum)
by
kabogo
on 12/23/2007
Usercontrol Paging Data in a Repeater Control
I worked through Scott Mitchell's Sorting Data in a DataList or Repeater Control tutorial to create a repeater that allows me to sort and page through results. All seems to work fine as long as the repeater is an .aspx page of its own. When I place the repeater in a user control … private int StartRowIndex { get { object o = ViewState["StartRowIndex"]; if (o == null) return 0; else return (int)o; } set { ViewState["StartRowIndex"] = value; } } … seems to always reset my StartRowIndex
Posted to
Data Presentation Controls
(Forum)
by
kabogo
on 12/22/2007
Update Method
Refering to Scott Mitchell's Working with Data tutorials ( http://www.asp.net/learn/dataaccess/tutorial02cs.aspx?tabid=63 )... How do I accept dates in the Update method (I tried string Mydate, and then property.Mydate = ( DateTime )Mydate.ToString(); but receive a Cannot convert type 'string' to 'System.DateTime' ) Scott's sample update method is copied below; System.ComponentModel.DataObjectMethodAttribute (System.ComponentModel.DataObjectMethodType.Update, true)] public bool UpdateProduct(string
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
kabogo
on 4/13/2007
Page 1 of 2 (15 items) 1
2
Next >
Channel 9:
Channel 9 Live at PDC09: Dr Jeff Norris, NASA
Channel 10:
Flickr Drive Integrates Flickr into Windows Explorer
Channel 10:
Playfire: A Growing Network for Gamers
Channel 10:
Find the Top iPhone Apps with Bing (Yes, Really!)
Channel 10:
Xbox to Become Emergency Alert System
Channel 10:
Progression of the Iconic Background
WindowsClient:
ASP.NET AJAX 4.0 Data Binding on MSDN Magazine
WindowsClient:
Don’t miss out..
TechNet Edge:
Improving Collaboration with SharePoint - Tech Focus December 2009 Part 1
Channel 9:
Channel 9 Live at PDC09: Scott Guthrie
Channel 10:
Get Discounted Concert Tickets at the New Windows Section 7
Channel 10:
Get Bing Wallpapers on the iPhone
Channel 10:
Bing Gets a New Toolbar
ASP.NET:
More on medium trust: what permission are you missing?
Channel 9:
Channel 9 Live at PDC09: Bob Muglia
WindowsClient:
Adventures With Windows Azure Diagnostics
Mix Online:
Adventures With Windows Azure Diagnostics
Channel 9:
Channel 9 Live at PDC09: Ray Ozzie
Channel 9:
Coding4Fun: DrinkTendr
Channel 9:
TWC9: Scott Hanselman, John Galloway, Bing, parallel unit tests, more
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online