Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. onedizzydevil

    FileStream and MemoryStream Conversion from C# to VB.NET

    It is the following section that is not returning the same results as the C# version. While (CType(i = fs.Read(bytes, 0, bytes.Length), Integer) > 0) ms.Write(bytes, 0, i) End While The file works fine with the C# version and the file path is the same between the...
  2. onedizzydevil

    FileStream and MemoryStream Conversion from C# to VB.NET

    I am trying to convert the following C# code: private Stream GetXmlTemplate() { if (this.Cache.Get(this.XmlTemplate) != null) { MemoryStream ms = (MemoryStream)this.Cache.Get(this.XmlTemplate); ms.Position = 0; return CopyStream(ms); } else { FileStream fs = null; try { fs = new...
  3. onedizzydevil

    Problem doing find control

    That works if your in or above where you are hunting... In this case I have: Page contains uc_searchresults uc_searchresults contains uc_advancedoptions uc_advancedoptions contain (in a tab control)uc_advancedfilters, uc_advancedzipcodesearch, uc_advancedsortoptions, uc_advancedschoolfilters I...
  4. onedizzydevil

    Problem doing find control

    I have successfully used the Me.Page.FindControl("") to various controls mostly UserControls; however, I have made a Template page environment using information from various locations. Any way, no matter what I do it creates a _ctl# (# = 0-9, usually _ctl0) which is not a big deal it have more...
  5. onedizzydevil

    Question about vbCrLf with a text file.

    Just for follow up for future readers... The Environment.NewLine did not work. The filestream did work but I had to have two version of the code because it was being emailed and wrote to a text file (which would be automagically faxed out). But it did work. Wayne Sellars "Programming...
  6. onedizzydevil

    Question about vbCrLf with a text file.

    First, let me state this sounds like a pretty remedial question but I have been stumped off and on for last two months and now it is time to ask. I am dealing with text files the way that I am currently doing it is like this. Dim strBody As New StringBuilder strBody.Append("Thank you for your...
  7. onedizzydevil

    Custom Server Controls Design-Time Sub Property

    Nevermind I figured it out! Imports System.ComponentModel Imports System.Web.UI Imports System.Web.UI.WebControls Imports System.web.UI.Design Namespace Web <DefaultProperty(&quot;Text&quot;), ToolboxData(&quot;<{0}:SignIn runat=server></{0}:SignIn>&quot;)> Public Class SignIn...
  8. onedizzydevil

    Custom Server Controls Design-Time Sub Property

    Does anyone have any ideas on how to do the Design-Time Sub Properties for a control. For example, drag the Drop Down List Control to a web page, go to the properties and you see the little plus sign beside &quot;Font&quot; clicked it and you will see a bunch of Sub Properties of...
  9. onedizzydevil

    Custom Server Control Property Editor

    Okay, little update. Evidently I just needed a little sleep, and a good thing I just needed a little considing I went to bed and 12 and got up at 4 to start researching this again. The solutions to the problem above is as follows: 1. Despite what the book says you need to add a reference to...
  10. onedizzydevil

    Custom Server Control Property Editor

    Hi Folks! Need some help. Building a Customer WEB Server Control using VB.NET and I am trying to set the Editor Attribute to the following property: <Bindable(True), Category(&quot;Appearance&quot;), DefaultValue(&quot;&quot;), Editor(CType(System.Web.UI.Design.ImageUrlEditor...
  11. onedizzydevil

    Boy Oh! do I need so help on this one...

    Here is my problem. This Web User Control has two major pieces that work together. 1) A set of regional maps that show one at a time which allow the user to drill down, and at its lowest level it will needs to run a javascript function to select/deselect items out of the a .NET DropDownList...
  12. onedizzydevil

    Pass data from one user control to the other, its not working... :o(

    I have one page (search.aspx). I make serveral pagelets or user controls (wc_search.ascx, wc_results.ascx, wc_details.ascx) which does not contain buttons just a Data Repeater or form fields. I dragged them all the user controls on the search.aspx page set them all to visible = false wrote the...
  13. onedizzydevil

    Any idea on why this Query is not working...

    Nevermind! ID-10-T errors. The keyword 'Return' is a very important statement in code. I was calling this from another function and forgot to Return the results. Wayne Sellars &quot;Programming, today is a race between software developers, striving to build bigger and better idiot-proof...
  14. onedizzydevil

    Any idea on why this Query is not working...

    Nevermind! ID-10-T errors. The work on 'Return' is a very important statement is code. Wayne Sellars &quot;Programming, today is a race between software developers, striving to build bigger and better idiot-proof programs, and the Universe, trying to produce bigger and better idiots. So...
  15. onedizzydevil

    Any idea on why this Query is not working...

    I have the following function in asp.net: Public Function getAddresses(ByVal addresser As String) As DataSet Dim sql As New SqlConnection(ConfigurationSettings.AppSettings(&quot;sql&quot;)) Dim com As New SqlCommand( _ &quot; SELECT a.addresser...
  16. onedizzydevil

    Using Optional Array in as Parameter

    Thanks, I totally did not even think about overloading the function, which is something I need to do frequently. Wayne Sellars &quot;Programming, today is a race between software developers, striving to build bigger and better idiot-proof programs, and the Universe, trying to produce bigger...
  17. onedizzydevil

    Using Optional Array in as Parameter

    Need your help I am trying to something like this, but I get an &quot;Expression expect.&quot; squiggly I the user to pass in an Arry list of items. Any help would be greatly appreciated. Public Function RandomString(Optional ByVal arrList() As String =...
  18. onedizzydevil

    Building Server Side Datagrid, how do I customize cell content...

    I am trying to creating a server side datagrid because pending on the permissions of the user things need to be changed or formated differently. Currently the code looks like this: 01 Public Sub createDGD() 02 Dim app As New Application() 03 Dim dg As New DataGrid() 04 Dim dgdCol As...
  19. onedizzydevil

    Data Grid - ColSorting and Paging

    I have moved on put that is a very important and very useful piece information to know about. Thanks Wayne Sellars &quot;Programming, today is a race between software developers, striving to build bigger and better idiot-proof programs, and the Universe, trying to produce bigger and better...
  20. onedizzydevil

    FileStream and CSV files

    Any of you peoples seen a good example of using FileStream (input) with a CSV file. And either using that as a datasource (cached) or just reading and separating the rows and columns. Even better would be to take a file from the [inpFile].PostedFile.InputStream and work with and not even have...

Part and Inventory Search

Back
Top