Search

You searched for the word(s): userid:872503

Matching Posts

  • Re: Using Metadata DisplayName with FormView and DynamicControl

    A week later, a week wiser or in this case 2..... Kind of a duh moment but since I didn't get an answer and somebody else may run into this. For anyone else looking for this just declare the metadata table in the codebehind and then reference the column entity name like below. I implemented the front page code tag inside a formview connected to a LinqDataSource but you can use any of the other DataView types as well. You could also parameterize this into a display function to keep the indexes
    Posted to ASP.NET Dynamic Data (Forum) by dcannon on 7/28/2009
  • Re: Dynamic data custom page datetime problem

    You could set the parameter in the code behind. Or set the default value of the where condition to the actual value via the codebehind. public partial class yourPage: System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { GridDataSource1.WhereParameters["Date_Proc"].DefaultValue = yourDateValue ; Or GridDataSource1.Where = "Date_Proc ==" + yourDateValue ; } } I'm guessing your yourDateValue could be something like textbox.Text + "23:59:59" Hope
    Posted to ASP.NET Dynamic Data (Forum) by dcannon on 7/28/2009
  • Re: how to get textbox values on Edit template

    I think you don't have any textboxes because your Where Parameter is empty. Even if its defined on the fly it needs a dynamic definition unless you just left that out of the code post. Check the LinqDataSource configuration dialog and verify that <asp:DynamicQueryStringParameter /> is filled out correctly. Beyond that Metal's answer is correct. If it dynamically generates the textboxes you need to loop through them from wherever your commiting the update and assign each parameter. It
    Posted to ASP.NET Dynamic Data (Forum) by dcannon on 7/28/2009
  • Re: DBML refresh?

    Following what Steve suggested once you have deleted the table click the database explorer tab and right click the Data Connection you're using, then right click the Tables folder and Refresh, Then drag your table back onto your model (or readd however you normally do). I found working in SQL Server 2000,2005 and express2008 that the connection contents were stale and I would constantly be frustrated adding/removing tables to the model without the changes I had made in the database being reflected
    Posted to ASP.NET Dynamic Data (Forum) by dcannon on 7/28/2009
  • Using Metadata DisplayName with FormView and DynamicControl

    Is it possible to use the MetaData layer defined DisplayName for a Field when being used in a DynamicControl? I'm building a walkthrough interface on top of the flat dynamic data interface and I would rather not have the displayname duplicated in the code. <asp:Label ID="Label1" runat="server" Text="MRN"/> <asp:DynamicControl ID="DynamicControl1" runat="server" DataField="MRN" /> I tried switching the Label text to <%
    Posted to ASP.NET Dynamic Data (Forum) by dcannon on 7/15/2009
  • Re: Master Detail w DetailsView and GridView using dynamic data.

    Refreshing the views via the events should have worked but didn't. Found this though and it worked. Add it to the master gridview. EnableViewState="False"
    Posted to ASP.NET Dynamic Data (Forum) by dcannon on 7/13/2009
  • Re: Master Detail w DetailsView and GridView using dynamic data.

    I thought that would do it but it just doesn't seem to work. I'm going to start over with a simple master-detail page made out of detailsview and gridview and get that to working and build it back up into the nesting from the parent objects. Maybe I will figure out how to template it for different datasources in the process. Thanks for the feedback.
    Posted to ASP.NET Dynamic Data (Forum) by dcannon on 7/10/2009
  • Master Detail w DetailsView and GridView using dynamic data.

    I have an Ajax TabbedPane which contains a Multiview which contain views which contain updatepanels. Specifically one update panel containing a details view and one containing a gridview side by side. They are both configured to use the same linqdatasource. When I update the details view the panel refreshes and the fields clear, also the record is added to the database however the gridview does not refresh. I looked around and everyone suggests adding GridView.DataBind() in one of the action event
    Posted to ASP.NET Dynamic Data (Forum) by dcannon on 7/6/2009
  • Re: Very strange Problem!!!

    I would compare your System.Web.DynamicData references in your top-level web.config files between projects. From assembies something like this < add assembly = " System.Web.DynamicData, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35 " /> From controls something like this < add tagPrefix = " asp " namespace = " System.Web.DynamicData " assembly = " System.Web.DynamicData, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35
    Posted to ASP.NET Dynamic Data (Forum) by dcannon on 6/3/2009
  • Re: TabbedEditWithSubGrids remove Edit, Delete

    This works. I tried to do it via the attribute but it didn't seem to have any effect. I may look into it later when I get some time. Thank you Stephen for the quick reply.
    Posted to ASP.NET Dynamic Data (Forum) by dcannon on 6/2/2009
Page 1 of 2 (16 items) 1 2 Next >