Search

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

Matching Posts

  • Adding Reference to App_Code of current website

    I know it's possible to add a reference to a report to a custom class, but I was wondering if it was possible to refer to the code in the App_Code directory of the current website? We have a lot of built in functionality that I could take advantage of, if I can make a call to the classes in the current site. If I have to create a new class, there's a lot of things that would have to be duplicated to get it to work and we definately don't want to have to duplicate efforts. TIA
    Posted to SQL Server Reporting Services (Forum) by gregkats on 3/28/2007
  • Re: DropDownList binding SelectedValue

    I have finally found the problem I have been having in this process. Here is what I finally came up with. If, during Page_Load, I use either of the following lines I get the error mentioned below about binding the selected item: this.FormView1.FindControl("SomeFieldName").Focus(); this.Form.DefaultButton = ((ImageButton)this.FormView1.FindControl("SomeButtonName")).UniqueID; If I comment out those two lines the bind of the page works correctly. If I don't have a DropDownList that
    Posted to Data Presentation Controls (Forum) by gregkats on 1/12/2005
  • Re: DropDownList binding SelectedValue

    OK. So the lesson learned here is the DataSource Control for binding the SelectedItem needs to be inside the Template of the FormView Control and the DataSource Control for the FormView Control needs to be outside the FormView Control. It works now. Thanks
    Posted to Data Presentation Controls (Forum) by gregkats on 1/11/2005
  • Re: DropDownList binding SelectedValue

    Fredrik, Thanks for the code! The only question I have is I don't understand how the code can work as posted because you have two ObjectDataSource controls named ObjectDataSource1. I assume that is just a typo. Thanks
    Posted to Data Presentation Controls (Forum) by gregkats on 1/11/2005
  • Re: DropDownList binding SelectedValue

    Phuff, I don't think the InsertItemTemplate really has anything to do with the problem. It doesn't work even if it's in EditMode. Besides that, the point of Binding form elements is so the FormView will handle the Update/Insert calls back to the datasource correctly. And Fredrik and others on this message board say they are getting it to work on SQLDataSources. Fredrik, The only difference I see in the code you posted and what I posted is you are using SQLDataSource and I am using ObjectDataSource
    Posted to Data Presentation Controls (Forum) by gregkats on 1/11/2005
  • Re: DropDownList binding SelectedValue

    Fredrik, I am trying to do the same thing with ObjectDataSources instead of SQLDataSources. But I keep getting the error "Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control." It only occurs when I try to Bind the SelectedValue of a DropDownList. [code] <asp:Content ID="Content1" ContentPlaceHolderID="Main" Runat="Server"> <asp:FormView DataSourceID="ObjectDataSource1" ID="FormView1"
    Posted to Data Presentation Controls (Forum) by gregkats on 1/10/2005
  • Re: ASP.NET tab gone

    Yes the ASP.Net tab went away (at least for now). See this post: http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=784224 I don't know if it's coming back or not but it would sure be nice.
    Posted to Installation and Setup (Forum) by gregkats on 1/6/2005
  • Re: Can FormView Commands cause secondary method to be called

    Are you sure about the firing order of the events? I was having problems with inserts not working so I commented out the Response.Redirect in the FormView1_ItemInserted event and set a break point in both my object insert method and the FormView1_ItemInserted event and the FormView1_ItemInserted fired twice, once before the insert method and once after it. Thus with the redirect in place the actual insert method never got called. It appeared to be fine for the delete. I haven't worked on the update
    Posted to Data Presentation Controls (Forum) by gregkats on 12/30/2004
  • Can FormView Commands cause secondary method to be called

    I'm working with a FormView mapped to a ObjectDataSource Control to provide Add/Update/Delete functions. I have mapped my buttons in the FormView to ObjectDataSource methods by using the CommandName arguement of the buttons so I didn't have to write the code to handle on_Click events. What I would like to do is when the Delete/Update/Insert occurs to redirect the user back to the Page with the GridView listing. If I combine the CommandName with an On_Click attibute for the buttons, the On_Click occurs
    Posted to Data Presentation Controls (Forum) by gregkats on 12/30/2004
  • Re: Programatically Refresh DataSourceControl

    That was way too obvious. How did I miss that?!?! Thanks Fredrik!!!
    Posted to Data Presentation Controls (Forum) by gregkats on 12/29/2004
Page 1 of 2 (15 items) 1 2 Next >