ASPFriends.com 'aspngvb' list
Up to: Discussion Lists

  • RSS Syndication
  • Latest Discussions Archive
    Casting a DataItem to a DataRowView (5 replies)
    ASPFriends.com 'aspngvb' list
    Moved from [aspngfreeforall] to [aspngvb] by Marcie Jones marciejones@yahoo.com I have one line of code that doesnt seem to work in VB.Net, but does in C#. How do you cast these types in VB? Here is the line: Dim drv As DataRowView e.Item.DataItem The error states that it is an invalid cast. The same thing can be done in C#, however. What gives?
    index property accessor method (5 replies)
    ASPFriends.com 'aspngvb' list
    all, does anyone know the equivalent vb.net syntax for the following c# index property accessor method: public foo this[int index] { get { return ((foo)this[index]); } set { foo[index] value; } } i tried: ' index accessor public property me[index as integer] as Foo Get return (CType(me[index], Foo)) End Get Set(ByVal Value) Me[index] Value End Set End Property but i get "Keyword is not valid as an...
    Get current path in VB class? (13 replies)
    ASPFriends.com 'aspngvb' list
    Group, I'm using a VB.Net dll in a web app, and I'd like to be able to get a representation of the path to that particular \bin directory (well, to the folder right above it), and I can't figure out how. I can get all kinds of neat information about the system through GetEnvironmentVariables, but nothing that just tells me the current path. Of course in a winform this would be a piece of cake, but...
    How do browsers receive/send cookies? (3 replies)
    ASPFriends.com 'aspngvb' list
    When one makes an HTTP request and the server tries to set a cookie, is there any way of trapping the value and using it in subsequent requests (i.e. using a different HttpWebRequest instance)? If not, how exactly does one set the CookieContainer property to enable persistence of cookies between requests made by the same HttpWebRequest instance? Basically I just want to be able to carry an AspSess...
    Adding Handlers to controls programmatically (event handler not firing) (4 replies, VIP)
    ASPFriends.com 'aspngvb' list
    I have added a control programmatically to a page and have added an event handler. This particular event handler is for clicking a button. However when I step through the code, the click event does not fire. Any ideas why? (below is the code: Dim oSubmitButton As New System.Web.UI.WebControls.Button() oSubmitButton.Text 3D "View Report" AddHandler oSubmitButton.Click, AddressOf PCRMButtonClicked P...
    Dynamically Adding Controls to an aspx page (6 replies)
    ASPFriends.com 'aspngvb' list
    Folks, I currently have a page set up that dynamically adds controls to a web page (textbox, and calendars, also labels). The controls are adding correctly. 20 My issue is placement. Basically I place a label, then the textbox, or calendar control after the label. I want a line break between each of these, but have not figured out how to do this. Any ideas? I tried creating a literal with " br " a...
    SelectedIndexChanged event not firing correctly (6 replies)
    ASPFriends.com 'aspngvb' list
    I am having problems with the dropdownlist box. When a selection in the dropdown box changes, I want to load another dropdownlist box from the database based on that selection. 20 For this the only relevant event is the SelectedIndexChanged event. But this doesn't seem to fire unless you have another button to reload the page. How do you get around that. 20 Should have ben simple. User selects fro...
    SizeOf in VB (3 replies)
    ASPFriends.com 'aspngvb' list
    Moved from [aspngdatagridrepeaterdatalist] to [aspngvb] by Let the good times roll bbilbro@hotmail.com Moved from [aspngvb] to [aspngdatagridrepeaterdatalist] by Let the good times roll bbilbro@hotmail.com I need to get the size in memory (in bytes) of a DataSet. i've tried: Microsoft.VisualBasic.Len(Me.m oSearchResults) and got a type mismatch. i tried: Microsoft.VisualBasic.Len(CType(Me.m oSearc...
    How to declare this control (<input Id= TxtQuestGrp type=file>) in asp.net (in code behind) (2 replies)
    ASPFriends.com 'aspngvb' list
    HiFolks, To upload file i am using input Id TxtQuestGrp type file How to declare this control in asp.net(code behind) &quot; INPUT id TxtQuestGrp tabIndex 15 type file size 36 name File1 runat &quot;server&quot; Height &quot;26px&quot; Width &quot;50px&quot; style &quot;WIDTH: 335px; HEIGHT: 22px&quot; &quot; Eg:For label and Textbox i could use like this Protected lblmsg as Label Protected Txtprobno as TextBox Any ideas Regards Dine
    SV: Re: ISDBNULL - which dll to reference? (3 replies)
    ASPFriends.com 'aspngvb' list
    That did the trick. But really, which .dll would I have to reference to use ISDBNULL as is? Regards/Halsningar Andre Colbiornsen Sonnenburg Communications Bergsgatan 3, SE 211 54 Malm F6 Sweden Tel.: 46 (0)40 97 78 80 Fax.: 46 (0)40 97 78 80 Mob.: 46 (0)708 97 78 79 Mail: colbiornsen@sonnenburg.se Web.: www.sonnenburg.se B2B Web Solutions Specializing in .Net Ursprungligt meddelande Fr E5n: Tim Mu...
    The process cannot access the file because it is being used by another process (3 replies)
    ASPFriends.com 'aspngvb' list
    I am trying to copy a file that was uploaded to a temp directory and when I try to copy it I get the following error: &quot;The process cannot access the file because it is being used by another process&quot; I have closed all associated objects with this file and I am just trying to move it to a new folder. Here is my code from the sub I am trying to do this with. This code is from an asp.net codebehind pa...
    SV: Re: SV: Re: ISDBNULL - which dll to reference? (2 replies)
    ASPFriends.com 'aspngvb' list
    That is not it, already referencing that dll. It would really be of great help to get an overview of which namespaces belongs to which dll. Regards/Halsningar Andre Colbiornsen Sonnenburg Communications Bergsgatan 3, SE 211 54 Malm F6 Sweden Tel.: 46 (0)40 97 78 80 Fax.: 46 (0)40 97 78 80 Mob.: 46 (0)708 97 78 79 Mail: colbiornsen@sonnenburg.se Web.: www.sonnenburg.se B2B Web Solutions Specializin...
    assembly's manifest definition (2 replies)
    ASPFriends.com 'aspngvb' list
    Hi, I getting the following error when I ran my app doing in Beta 2 to full version Server Error in '/ReferredJobs' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: The located assembly's manifest defini...
    connecting to DBF file (2 replies)
    ASPFriends.com 'aspngvb' list
    Moved from [aspfreeforall] to [aspngvb] by Let the good times roll bbilbro@hotmail.com Hi, Can someone tell me how to connect to a .dbf database file to extract info using VB.NET Apparently these connection strings dont work Dim strConnStr As String &quot;Driver {Microsoft dBASE Driver (*.dbf)};DriverID 277;Dbq c:\comcat.dbf&quot; Dim strConnStr As String &quot;Provider Microsoft.Jet.OLEDB.4.0;Data Source c:\com...
    COM Port Communications (2 replies)
    ASPFriends.com 'aspngvb' list
    Does anyone have an alternative to SerialStream.cs that would allow communications with a COM port. More importantly a modem. Jaison Green Hunt Interactive 425*746*7880
    Could not find a part of the path (5 replies)
    ASPFriends.com 'aspngvb' list
    I am trying to create a directory on a remote server in my network and I keep getting the following error : &quot;Could not find a part of the path&quot; Code looks like this: Dim lobjFileDirectory As Directory lobjFileDirectory.CreateDirectory(lstrDBFilePath &amp; &quot;Uploads\&quot; &amp; gstrICcode &quot;\Upload&quot;) Where lstrDBFilePath is a string set to my remote server, \\someserver\fileshare\ The permissions on that share i...
    ISDBNULL - which dll to reference? (3 replies)
    ASPFriends.com 'aspngvb' list
    I'm trying to compile a dll but keep getting an error on ISDBNULL. It says it isn't declared. Which dll do I have to reference? Regards/Halsningar Andre Colbiornsen Sonnenburg Communications Bergsgatan 3, SE 211 54 Malm F6 Sweden Tel.: 46 (0)40 97 78 80 Fax.: 46 (0)40 97 78 80 Mob.: 46 (0)708 97 78 79 Mail: colbiornsen@sonnenburg.se Web.: www.sonnenburg.se B2B Web agency Specializing on .Net 20
    Returning four values from a function... (17 replies)
    ASPFriends.com 'aspngvb' list
    Is there any way to return four different values from a function? Greg
    CType (5 replies)
    ASPFriends.com 'aspngvb' list
    Moved from [aspngdatagridrepeaterdatalist] to [aspngvb] by Let the good times roll bbilbro@hotmail.com Hello All, I am trying to grab the value of a HTMLInputHidden in a datagrid. This is the code I am using: Dim dgi As DataGridItem CType(dgi.Cells(0).Controls(2), HTMLInputHidden).ToString The position is right, but I keep getting an error. Does anyone know how to grab the value of an HTMLInputHid...
    SV: RE: CType (2 replies)
    ASPFriends.com 'aspngvb' list
    Your button can not refer to 'DataGridEventArgs': Public Sub sub Buy(sender As Object, e As System.Web.UI.WebControls.DataGridItemEventArgs) Problem here Should be 'EventArgs': Public Sub sub Buy(sender As Object, e As System.Web.UI.WebControls.EventArgs) Hth Regards/Halsningar Andre Colbiornsen Sonnenburg Communications Bergsgatan 3, SE 211 54 Malm F6 Sweden Tel.: 46 (0)40 97 78 80 Fax.: 46 (0)40...
    Proper IF statement (5 replies)
    ASPFriends.com 'aspngvb' list
    Moved from [aspngfreeforall] to [aspngvb] by Tim Musschoot Tim.musschoot@rug.ac.be I have an IF statement like the following. Is there a more logical way of doing this? If Request.Cookies(&quot;CookieName&quot;) Is Nothing Then 'Do Nothing Else Response.Redirect(&quot;Page.asp&quot;) End IF Thanks Join the world's largest e mail service with MSN Hotmail. http://www.hotmail.com
    Session state in a component (2 replies)
    ASPFriends.com 'aspngvb' list
    Hi there, How can I access session variables in one of the compnent vb files? Thanks, Kevin
    Missing Reference to Microsoft.Data.ODBC.dll (2 replies)
    ASPFriends.com 'aspngvb' list
    I am trying to connect to my DB using the following code. Which gives me the error on compile C:\DotNET\vbnet\testdbconnection\testdbconnection\Form1.vb(1): Namespace or type 'ODBC' for the Imports 'Microsoft.Data.ODBC' cannot be found. I know I need to add the reference to &quot;Microsoft.Data.ODBC.dll&quot; to use Import &quot;Microsoft.Data.ODBC&quot;. I don't see &quot;Microsoft.Data.ODBC.dll&quot; on my Project references...
    Solid ASP.NET Threading examples? (3 replies)
    ASPFriends.com 'aspngvb' list
    Moved from [aspngfreeforall] to [aspngvb] by Tim Musschoot Tim.Musschoot@rug.ac.be I can't for the life of me find any solid ASP.NET multithreading examples, everything is Windows Forms in C# which I tried to recreate on web forms, but to no success. Anybody out there have any solid asp.net multithreading (System.Threading) examples? What I am basically trying to do is create a background process ...
    Calendar Control (4 replies)
    ASPFriends.com 'aspngvb' list
    Hi, Is it possible to have the HTML generated by calendar control stored in a string rather than streamed to the screen? How? Also, is this possible for objects in general? Or does the object developer specifically have to create a method/property to accomplish this? Thanks Scott
    Quickstart Tutorial - Need Help Please with Type Expected Error (2 replies)
    ASPFriends.com 'aspngvb' list
    I have been trying to compile the quickstart tutorial for the Personalized Portal, and can't seem to get it to compile. Here is the problem: 1)I have the Personalization.VB Class compiled and referenced in the Project. 2)I then have the PortalModulePage.VB class in the the project: PortalModulePage.VB: Imports System Imports System.Web.UI.Page Imports System.Web Imports System.Collections Imports ...
    Dropdownlist setfocus problem (2 replies)
    ASPFriends.com 'aspngvb' list
    Hello Folks, I have two dropdownlist boxes in a form after 5 text boxes. Bounding data into first dropdown when form loads. When i select particular item in first dropdownlist i am displaying records in second dropdownlist according to particular item selected in first dropdownlist. &quot;But here i am facing problem . I need to set focus in the second dropdownlist.&quot; When i selct item in dropdownlistbo...
    DLL's unsecure... (2 replies)
    ASPFriends.com 'aspngvb' list
    Moved from [aspngvs] to [aspngvb] by Tony Stark IronMan@aspelite.com I am amazed how easy it is to crack open a dll these days. Is there anything we can do to protect our code a little better outside of purchasing an obfuscator for $1500? Seems to me this protection was integrated in VB6... and now developers are going to have to shell out another $1500 to protect their intellectual property. I kn...
    Why I can't set property ? (3 replies)
    ASPFriends.com 'aspngvb' list
    I build one control.when user want to use my control, they need pass parameter. So in my class, I define the property: public property Data() as string Get return Data set ... end property Then in page load method: I wrote: Me.Data &quot;test&quot; But It told me exception . What reason that It give me error ? Also I use the datagrid to display the data. WHen the user select one row, the page will refresh. ...
    Coding Standards (6 replies)
    ASPFriends.com 'aspngvb' list
    We are about to undertake a large project with will require a bunch of VB 6 developers to learn VB.NET. I am looking for some documentation on what MS recommends from a coding standards point. I thought I had seen some coding standards/convensions docs floating around at some point. Any help is appreciated. Devin
    HELP: Returning multiple values from a function (7 replies)
    ASPFriends.com 'aspngvb' list
    Moved from [aspngfreeforall] to [aspngvb] by Tim Musschoot Tim.Musschoot@rug.ac.be Hi, This might be a really basic question, so apologies in advance!! I've got a function that needs to return 3 values (Outputs from a stored procedure), but I can only seem to retrieve 1 of the values on my ASP page. Is it possible to do this using my code below? I've managed to return all 3 values as a string... R...
    DropDownList (4 replies)
    ASPFriends.com 'aspngvb' list
    This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. InterScan NT MIME Boundary Content Type: multipart/alternative; boundary &quot; NextPart 001 01C21C5B.F47ED670&quot; NextPart 001 01C21C5B.F47ED670 Content Type: text/plain; charset &quot;iso 8859 1&quot; I have a DropDownList and I what to set the selected item when a user returns. ...
    explicit interface implementation (2 replies)
    ASPFriends.com 'aspngvb' list
    what is the vb equivalent of c#'s explicit interface implementation? Andy Smith Keyboard Jockey #3a7 2.78.1
    HELP: Replacing line breaks in a web form textbox (4 replies)
    ASPFriends.com 'aspngvb' list
    Moved from [aspngfreeforall] to [aspngvb] by Tim Musschoot Tim.Musschoot@rug.ac.be Hi! I've got a textbox on a web form that I need to &quot;clean up&quot; before it gets inserted into a database. The code snippet below shows what I'm trying to do..... Dim strAddress As String strAddress frmAddress.Value.Replace(chr(13), &quot;,&quot;) ...but I get the error message: Name 'Chr' is not declared. (I know this is probab...
    launching a client application (2 replies)
    ASPFriends.com 'aspngvb' list
    can anyone point me in the right direction on how to launch a client application from an asp.net page? I understand why browsers don't let you cleanly do this due to security reasons but.... If it helps, I am on a closed intranet and so can install active x components on the client machines if need be... Thanks, g Chat with friends online, try MSN Messenger: http://messenger.msn.com
    how do I reference a type? (2 replies)
    ASPFriends.com 'aspngvb' list
    In the ArrayList.ToArray(Type) method, what is the easiest way to reference a type to an object that I don't have an instance of? Andy Smith Keyboard Jockey #3
    Date (NOW()) add one day (3 replies, VIP)
    ASPFriends.com 'aspngvb' list
    Moved from [aspngfreeforall] to [aspngvb] by Marcie Jones marciejones@yahoo.com !DOCTYPE HTML PUBLIC &quot; //W3C//DTD HTML 3.2//EN&quot; HTML HEAD META HTTP EQUIV 3D&quot;Content Type&quot; CONTENT 3D&quot;text/html; charset 3Diso 8859 1&quot; META NAME 3D&quot;Generator&quot; CONTENT 3D&quot;MS Exchange Server version 5.5.2652.35&quot; TITLE Date (NOW()) add one day /TITLE /HEAD BODY P FONT SIZE 3D2 Hi all, /FONT /P P FONT SIZE 3D2 I am sure th...
    HTML in code behind (3 replies)
    ASPFriends.com 'aspngvb' list
    Hi all, &amp;#160; I am running a db query that will return one of the two &quot;Nothing in the db&quot; and A value in the form of a number e.g. 1 or 2 &amp;#160; Now this is then written to a label e.g &amp;#160; Dim value as string Value &amp;#160;the dataset I have filled from the db that will return those values. &amp;#160; Ok then what I do is &amp;#160; Mylabel.text &amp;#160;&quot;There is &quot; &amp; Value &amp; &quot; . &quot; &amp;#160; But what I want t...
    Translation problem from C# to VB.net (3 replies)
    ASPFriends.com 'aspngvb' list
    Moved from [aspngclient] to [aspngvb] by Ryan Trudelle Schwarz ryants@aspelite.com Hi all Im trying to translate this to VB and I get an error. This is the C# code m Btn new Button(); m Btn.Click new System.EventHandler (this.Btn Click); and this is my vb.net code m Btn New Button() m Btn.Click New System.EventHandler(Me.Btn Click) I get 'Public Event Click(sender As Object, e As System.EventArgs)...
    Add a day string (4 replies)
    ASPFriends.com 'aspngvb' list
    Moved from [aspngfreeforall] to [aspngvb] by Marcie Jones marciejones@yahoo.com !DOCTYPE HTML PUBLIC &quot; //W3C//DTD HTML 3.2//EN&quot; HTML HEAD META HTTP EQUIV &quot;Content Type&quot; CONTENT &quot;text/html; charset us ascii&quot; META NAME &quot;Generator&quot; CONTENT &quot;MS Exchange Server version 5.5.2652.35&quot; TITLE Add a day string /TITLE /HEAD BODY P FONT SIZE 2 Hi all, /FONT /P P FONT SIZE 2 I have a date dimed as a string /FON...
    Writing a Public Class Function to set variables dynamically (3 replies)
    ASPFriends.com 'aspngvb' list
    All, I've been trying to figure out a way to set my class variables dynamically as I loop through a set of variables that vary for each user I return. Essentially I want to do what Javascript allows you to do with the eval() function but can't seem to find it's equivalent in VB.Net. However, my other thought was that I could set the variable by passing the variable name and the variable value and ...
    SV: Finding a zero in a string (2 replies)
    ASPFriends.com 'aspngvb' list
    Here you go, use regular expressions: Dim strString As String 3D &quot;22,20,1&quot; 'This is a no strString 3D Replace(strString,&quot;,&quot;,&quot; &quot;) Dim objRegexp As RegEx objRegexp 3D New RegEx(&quot;\b0{1}\b&quot;) 09 If objRegexp.IsMatch(strString) Then Response.write(&quot;Yes&quot;) Else Response.write(&quot;No&quot;) End If 09 (Vilken diskussion du satte ig E5ng) Regards/Halsningar Andre Colbiornsen Sonnenburg Communications Bergsgatan 3, S...
    Finding a zero in a string (14 replies)
    ASPFriends.com 'aspngvb' list
    Moved from [aspngfreeforall] to [aspngvb] by devin devinr@drone interactive.com Hi, This is probably something very simple but I am too tired now to figure it out. Could someone help me in finding a zero in a string? Let's say I have a string like this Dim strOfficerId As String 3D &quot;22,20,0&quot; Now I want some code to test to see if there is a 0 in this string. Note the problem is that since my value...
    Erro using State Object (2 replies)
    ASPFriends.com 'aspngvb' list
    Moved from [aspngstart] to [aspngvb] by devin devinr@drone interactive.com Hello All: I'm trying to use the State Object, but the Server retuns an Compilation Error. Code Example: 20 %@ Page Language 3D&quot;VB&quot; clienttarget 3Duplevel % html script language 3D&quot;VB&quot; runat 3D&quot;server&quot; Sub Page Load(Sender As Object, E As EventArgs) If NOT Page.IsPostBack Then State(&quot;vezes&quot;) 3D 1 Else State(&quot;vezes&quot;) 3D Cint...
    Ping in VB.NET? (5 replies)
    ASPFriends.com 'aspngvb' list
    Al Bsharah Network Insight http://www.networkinsight.com http://www.networkinsight.com/ AL@networkinsight.com 858.450.1180 (main) 858.362.8383 (direct) 619.843.2565 (cell) 858.450.1141 (fax)
    Shift Operators (2 replies)
    ASPFriends.com 'aspngvb' list
    Has the FCL got a shift operator function? I know I could just create a C# class and use the built in , and I'll do that if I can't find a solution, but maybe there's a &quot;hidden&quot; class somewhere that I can directly use from VB.NET? Cheers, Jo E3o Paulo Carreiro IMPORTANT NOTICE 20 This communication contains information, which is confidential and may also be privileged. It is for the exclusive use ...
    Create Context (2 replies)
    ASPFriends.com 'aspngvb' list
    Moved from [aspngfreeforall] to [aspngvb] by Tim Musschoot Tim.musschoot@rug.ac.be Hi All , How to Create Context Object in ASP.NET ? In VB 6.0 , We are using COM Service Type Library (COMSVCS.DLL) . I have to use getcontext object in DLL. So kindly suggest me How to get create context in VB.net shatdal Original Message From: Ambati Srinivasalu [mailto:ambatis@healthgate.com] Sent: Monday, May 20,...
    <identity impersonate="true" ...error - Please Help (2 replies)
    ASPFriends.com 'aspngvb' list
    Copied from [aspngconfig] to [aspngvb] by devin devinr@drone interactive.com We are having a problem running our application under a specific user account. When I put identity impersonate &quot;true&quot; userName &quot;joeblow&quot; password &quot;123456&quot; / in the web.config, the application will build just fine. The user in question is a local machine user (not a member of the Active Directory Domain) and is a member of...
    Datagrid Haschanges not firing (3 replies)
    ASPFriends.com 'aspngvb' list
    Hi, I have a simple VB form with a single datagrid control. If I change a field and then don't tab to another field in the grid BUT click on the upper right corner CLOSE icon, then the HasChanges() call doesn't work in the Form closing eventhandler. I also notice it not firing when I change 1 field and just hit the tab key and then the close button. Not sure what the rules are for the Haschanges m...
    NOT ANSWERED code not being executed (6 replies)
    ASPFriends.com 'aspngvb' list
    TO THE MODERATOR, I HAVE TRIED ASKING THIS IN THE ASPNGVB LIST and also the ASPNGDEBUG LIST. SO KINDLY HELP ME POST IT TO THE APPROPRIATE LIST WHERE I CAN GET A ANSWER. I have a login page. When the user logs in the, following sub should checks whether the, the User is Valid and if true, sets Session and then checks to see if there is a Shopping Cart for teh User. If The Cart does not exist it sho...
    Visit the archive for messages from this site.
  • May 2001 (5 items)
  • June 2001 (1 item)
  • July 2001 (3 items)
  • August 2001 (9 items)
  • September 2001 (1 item)
  • October 2001 (20 items)
  • November 2001 (5 items)
  • December 2001 (10 items)
  • January 2002 (12 items)
  • February 2002 (10 items)
  • March 2002 (19 items)
  • April 2002 (19 items)
  • May 2002 (8 items)
  • June 2002 (10 items)
  • July 2002 (18 items)
  • August 2002 (13 items)
  • August 2004 (3 items)
  • September 2004 (1 item)
    Ad
    MBR BootFX
    Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
     
     Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
    Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com