Search

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

Matching Posts

  • Re: objectdatasource filterexpression onfiltering

    I have now resolved this issue by setting the filterexpression property behind a button event.
    Posted to Data Presentation Controls (Forum) by Maddog C on 11/18/2008
  • objectdatasource filterexpression onfiltering

    I have a gridview bound to an objectdatasource. I have a text box on my page that I want to use as a generic search box. My filterexpression includes both string and date fields. if I set my filterexpression to Filterexpression=" SURNAME LIKE '%{0}%' OR MY_DATE ='{0}' ", the filter works if I put in a date but fails if I don't put in a date with Cannot perform '=' operation on System.DateTime and System.String If I set the filterexpression to Filterexpression
    Posted to Data Presentation Controls (Forum) by Maddog C on 11/18/2008
  • Re: XMLDatasource Datafile and Session Variable

    Thanks for the reply. I don't want to put it in the Page Load because it causes a knock on effect with the Treeview. I have included some Javascript in my page to maintain the scroll position of the node in the treeview, If I refresh the datafile in the page load the scroll position is lost.
  • XMLDatasource Datafile and Session Variable

    Is there a way to set the datafile for an xmldatasource to a session variable? At the moment I have the following, but this gives "Object reference not set to an instance of an object." <asp:XmlDataSource ID="XmlDataSource1" EnableCaching="false" DataFile='<%#Session["myFile"].ToString()%>' Runat="server" TransformFile="Tree2.xsl"> </asp:XmlDataSource>
  • Re: treeView dynamic data source

    I have a very similar situation to this. I change the XMLdatasource datafile on page load. Seems that it has to go in the Page Load event, is the correct? This causes a knock on problem with regard to the Treeview. I am using some Javascript to maintain the scrollback position of the treeview on postback, but as the datafile is reloaded on Page Load the scroll position is lost. Is there a way around this?
  • Re: Treeview scroll to selected node

    I now have the Javascript for this working, however, I am combining this with the need to load the XMLDatasource.Datafile on page load. If I comment out the line that changes the datafile, the scroll position is maintained, however I am then connecting to the wrong datafile. Any thoughts on how to combine the two?
  • Re: Treeview scroll to selected node

    I've just returned to this and am still struggling. I've had a look at the link, basically I need to add the following Javascript to my page. The question is where? I can use RegisterStartupScript, but have viewed a view posts regarding this, none of which seem to give a definitive answer. tvNavigation_Data.selectedNodeID.value; var selectedNode = Document.all?Document.all[name]:Document.getElementById(name); if(selectedNode){ selectedNode.scrollIntoView(true); }
  • Site management

    I need to write an asp.net application to manage the security for a number of websites using Role-Based security, Windows Authentication and SQL Server. I need to be able to pick an application from a list, then add/remove roles and users for a particular application. I have the role-based security set up for individual applications, but want one site to do all the management. How do I go about this?
    Posted to Security (Forum) by Maddog C on 7/15/2008
  • Re: User control in Formview

    Gabriel I have resolved this problem. Your original code you sent was correct. The problem was with the control itself. I downloaded the user control (datepicker) from http://www.codeproject.com/KB/user-controls/DatePickerUserControl.aspx?msg=2559489#xx2559489xx As I couldn't the reference to it, I decided to rebuild the control from scratch. The reason for the problem seems to be that, although the control was called date.ascx, the inherits statement was set to Calendar_Date. The partial class
    Posted to Data Presentation Controls (Forum) by Maddog C on 6/4/2008
Page 1 of 5 (46 items) 1 2 3 4 5 Next >