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:879073
More Search Options
RSS Available
Matching Posts
Re: listview controls from codebehind - works with edit but not insert
it may not be giving me an error b/c i'm only using one item per page, but i'll change the code to reflect this. thanks!
Posted to
Data Presentation Controls
(Forum)
by
gotmike
on 9/2/2009
listview controls from codebehind - works with edit but not insert
i have the following code which allows me to access controls in my listview: protected DropDownList GetLVDropDownList(string ListViewName, string DropDownName) { Control ctl = ListingsView.FindControl(ListViewName); if (ctl != null) { ListView MyListView = ctl as ListView; //We assume we get the value of the Label located in the first item of the ListView. ctl = MyListView.Items[0].FindControl(DropDownName); if (ctl != null) { DropDownList MyDropDownList = ctl as DropDownList; return MyDropDownList;
Posted to
Data Presentation Controls
(Forum)
by
gotmike
on 8/28/2009
Re: listview controls from codebehind - works with edit but not insert
I am using a Master Page. Here is the aspx code: <asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" runat="Server"> <asp:AccessDataSource ID="AccessDataSource1" runat="server" /> <div align="center"> <asp:LoginView ID="ListingsView" runat="server"> <RoleGroups> <asp:RoleGroup Roles="Administrators"> <ContentTemplate> <asp:ListView ID="lvAdmin"
Posted to
Data Presentation Controls
(Forum)
by
gotmike
on 8/28/2009
Re: listview controls from codebehind - works with edit but not insert
if it helps, here is how i call the function: DropDownList MyDropDownList = GetLVDropDownList("lvAdmin", "ddStatus"); DropDownList MyDropDownList2 = GetLVDropDownList("lvAdmin", "ddStatusInsert"); if (MyDropDownList != null) { MyDropDownList.Items.Clear(); if (MyDropDownList2 != null) { MyDropDownList2.Items.Clear(); } OleDbDataReader DataReader = objCommand1.ExecuteReader(); while (DataReader.Read()) { ListItem MyListItem = new ListItem(); MyListItem.Text
Posted to
Data Presentation Controls
(Forum)
by
gotmike
on 8/28/2009
Re: listview controls from codebehind - works with edit but not insert
same thing, just comes up null...
Posted to
Data Presentation Controls
(Forum)
by
gotmike
on 8/28/2009
help writing a listview control access function
i have the following code written, which works reasonably well (with the following downside: http://forums.asp.net/t/1464505.aspx ) protected DropDownList GetLVDropDownList(string ListViewName, string DropDownName) { Control ctl = ListingsView.FindControl(ListViewName); if (ctl != null) { ListView MyListView = ctl as ListView; //We assume we get the value of the Label located in the first item of the ListView. ctl = MyListView.Items[0].FindControl(DropDownName); if (ctl != null) { DropDownList MyDropDownList
Posted to
Data Presentation Controls
(Forum)
by
gotmike
on 8/28/2009
Re: listview controls from codebehind - works with edit but not insert
jackpot: http://forums.asp.net/t/1339833.aspx tipped me off and i looked closer at: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.listview_members.aspx and http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.listview.insertitem.aspx . turns out that you should specify the section of the listview control you want before you use FindControl. i have no idea why it works for the edititemtemplate and not the insertitemtemplate without specifying the section. use the property
Posted to
Data Presentation Controls
(Forum)
by
gotmike
on 8/28/2009
Re: frequent timeout when debugging
i found the following link which describes my problem exactly: http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/78040c76-1bdb-45d2-ae14-320202067ea2 i am running vista ultimate 64, ie8, vwd 2008
Posted to
Visual Web Developer 2008 Express
(Forum)
by
gotmike
on 8/27/2009
Re: Visual Studio 2005 Debugger times out
i found this link which seems to describe my exact problem... http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/78040c76-1bdb-45d2-ae14-320202067ea2
Posted to
Visual Studio 2005
(Forum)
by
gotmike
on 8/27/2009
Re: Visual Studio 2005 Debugger times out
i am having this same problem (post: http://forums.asp.net/t/1463712.aspx ) i am also using the development server that ships with VWD 2008, so the ping adjustment in IIS did not work for me. the error i am getting is: Unable to start program 'http://localhost:57859/website/filename.aspx' Element not found.
Posted to
Visual Studio 2005
(Forum)
by
gotmike
on 8/27/2009
Page 1 of 5 (43 items) 1
2
3
4
5
Next >
TechNet Edge:
Windows Server 2008 R2 Quick Look #3 - PowerShell V2
ASP.NET:
2009 Blogged - Greatest Hits
WindowsClient:
2009 Blogged - Greatest Hits
Channel 9:
Nikolaj Bjørner and Leonardo de Moura: The Z3 Constraint Solver
Channel 9:
MEF & Silverlight 4 Beta - Part 2, Imports & Exports
Channel 9:
MEF & Silverlight 4 Beta - Part 1, Introduction
WindowsClient:
The (Near) Final Word on Multi-Monitor Taskbars for Windows 7 - Ultramon vs. DisplayFusion
WindowsClient:
Looking back at 2009, and forward to 2010
Silverlight:
Polling Video – A Viable sub-second alternative?
TechNet Edge:
Windows Server 2008 R2 Quick Look #2 - Active Directory Recycle Bin
Channel 10:
I'm a Windows 7 PC Themes
Channel 10:
24 Years of Windows Box Art
WindowsClient:
Silverlight tutorial: HOW TO build CommandLink Control in Silverlight with Expression Blend 3 and Behaviors
ASP.NET:
Converting an RGB Color To Hex With JavaScript
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Channel 10:
Microsoft's Mobicast: Stiched Cell Streams
Channel 10:
Festive Bing
TechNet Edge:
How Microsoft Reduces Operational Risk through Business Continuity Management
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online