Search

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

Matching Posts

  • Re: XHtml...

    I'm experiencing the same problem, in my base MasterPage class I do the following: 1 ' Content Type 2 Dim contentType As String = Nothing 3 If Request.AcceptTypes IsNot Nothing Then 4 If Array.IndexOf(Request.AcceptTypes, "application/xhtml+xml" ) > -1 Then 5 contentType = "application/xhtml+xml" 6 Else 7 contentType = "text/html" 8 End If 9 Else 10 contentType = "application/xhtml+xml" 11 End If 12 13 ' Configure response 14 Response.ContentType
    Posted to Getting Started (Forum) by andrewgarner on 9/14/2007
  • Re: Problem with WebResourceAttribute and paths

    Thank you so much! I've just tried that and it works!
    Posted to Custom Server Controls (Forum) by andrewgarner on 4/23/2007
  • Problem with WebResourceAttribute and paths

    This problem has been puzzling me all day - I am attempting to embed resources within a class library, buy I can only get it to work when the files are within the root of the class library. My default namespace is Lighthouse.Software.Library.Core - I have added Test.css and Test.png to the root of the class library, then within the class I have the following code: < Assembly : WebResource( "Lighthouse.Software.Library.Core.Test.css" , "text/css" , PerformSubstitution:= True )> < Assembly
    Posted to Custom Server Controls (Forum) by andrewgarner on 4/20/2007
    Filed under: Web Resources
  • Re: Creating a custom DataGrid event

    When i sort i loose the search criteria paramater and return to the original datagrid with all the data present. I need to be able to maintain the search criteria paramater somehow, hence my original thought to try and mimic the way pageindex events occur for search events.
  • Re: Creating a custom DataGrid event

    Hi, I'm doing all the binding etc inside the datagrid itself, I just pass in the SQL SELECT statement and hey presto. My problem lies in that i want to be able to pass in the WHERE clause of the SQL command when the users chooses to execute a search. I have achieved this using a paramater. The problem i'm having is that i cant keep this state over pages or sorting. If i force the grid to be bound from the base webform then this breaks the ability to access datakeys using a function in the datagrids
  • Creating a custom DataGrid event

    I'm looking for some general guidance and maybe some rough code on how to create a custom event within a custom DataGrid. Basically, I have a custom DataGrid in which i want to be able to override a custom event in the same mannor as you do for OnPageIndexChanged and OnSortCommand. From a button click event on the parent webform i want to raise this event a pass a search criteria string which will then be used within the datagrid to filter the results it displays. e.g. Protected Overrides Sub OnSearchCommand
  • Get selected keys method

    Hi, I am trying to write a method within a custom DataGrid that returns an ArrayList of all the DataKeyField entrys that have been selected. Selection of a row is done with a checkbox (ala hotmail). I have created a property as an ArrayList which I am using: ' PROPERTY: An ArrayList of the selected DataKeyField id's Public ReadOnly Property SelectedKeys() As ArrayList Get ' Iterate through all datagrid items For Each item As DataGridItem In MyBase.Items ' Get checkbox Dim checkbox As CheckBox = CType
    Posted to Data Presentation Controls (Forum) by andrewgarner on 12/7/2004
  • Custom DataGrid Control event handling

    I am creating a custom datagrid control that will be used many times across a web application. I am trying to build as much functionality into the control itself as possible so that my web form code is as simple as possible. I am trying to build in event handling code for paging and sorting. I have the following: Private Overloads Sub OnPageIndexChanged(ByVal sender As Object, ByVal e As DataGridPageChangedEventArgs) Handles MyBase.PageIndexChanged MyBase.CurrentPageIndex = e.NewPageIndex End Sub
    Posted to Data Presentation Controls (Forum) by andrewgarner on 11/25/2004
Page 1 of 1 (8 items)