| Image paths in asp.net server controls (2 replies) |
| ASPFriends.com 'aspngvb' list |
| I have built a header server control that takes 2 properties: ImagePath and Text. The control works fine as long s its used in a page that's in the root folder. I think the image path should be built so it handles the path to the current page in both design mode and run mode. Does anyone have an example of creating paths like this? Also, does anyone have an example of using the URL builder in cont... |
|
| Calling Subs in one form from another (4 replies) |
| ASPFriends.com 'aspngvb' list |
| Moved from [aspngfreeforall] to [aspngvb] by alotofmail@tripleasp.net alotofmail@tripleasp.net I am writing in asp.net using the Beta 2 version. I want to call a sub from one page from another. I thought sometime like Call FrmMaintain.SetFields(False) would work but I get an error message "This reference to a non shared member requires an object reference, and none is supplied." Public Sub SetFiel... |
|
| Trouble setting a datareader to a function as a datagrid? (6 replies) |
| ASPFriends.com 'aspngvb' list |
| Trying to return a datagrid in a function but it's failing at the line with "**" stating "Object reference not set to an instance of an object.". What am I doing wrong here? (all the connection strings not shown are valid, btw...) Thanks! ALB Function ReturnGrid() As DataGrid Dim commmandString As String Dim DR As SqlClient.SqlDataReader commandString "SELECT CallID FROM ttCallLog" commandUser.Com... |
|
| Looking for IComparer example (2 replies, VIP) |
| ASPFriends.com 'aspngvb' list |
| Hello list, I'm looking for an example that uses the Sort(IComparer) method to sort a list. I'd like to a simple implementation of IComparer and how that's used. Any pointers are much appericated. |
|
| Determining User ID (3 replies) |
| ASPFriends.com 'aspngvb' list |
| In VB6 there was an API to determine the NT Login ID in an application. Does anyone know what the equivilent is in .NET? Joel Zinn jwzinn@aep.com |
|
| How to use session in a .vb Class? (4 replies) |
| ASPFriends.com 'aspngvb' list |
| Hi there. Can't seem to figure out how to read/write session variables from within a .vb class file. VS.NET tells me that "session" is not declared. Works fine in ASPX and ASCX files, but I can't figure out what (if anything) I need to import to the class to make it available. I tried System.Web.SessionState.HttpSessionState (and others), but that didn't work. Thoughts? Thanks! Al ALB |
|
| Dynamically Generating Web Form ID's (7 replies) |
| ASPFriends.com 'aspngvb' list |
| Code snippit: Dim dtReportType As DataTable For i 0 To dtReportType.Rows.Count 1 Dim RadioButton As RadioButton * RadioButton.ID dtReportType.Rows(i).Item("ReportLabel") RadioButton.Visible True Next The ReportLabel column within the dtReportType Data Table contains a string that equals the ID of an existing radio button. The goal here is to loop through a DataTable, and if a particular row exists... |
|
| Newbie having problem with dataset/recordset (2 replies, VIP) |
| ASPFriends.com 'aspngvb' list |
| I have taken an application that works in VB6 and used the upgrade wizard to convert it to vb.net. Parts of this work, but I having an issue with the following section of code... In the public declaration area, I have: Dim Cn As ADODB.Connection Dim Rs As ADODB.Recordset Dim Dict As Scripting.Dictionary Dim CnStr As String Then Private Sub Timer1 Tick(ByVal eventSender As System.Object, ByVal even... |
|
| Pop up calendar. (6 replies, VIP) |
| ASPFriends.com 'aspngvb' list |
| Moved from [aspngstart] to [aspngvb] by Dan Hurwitz dhurwitz@stersol.com Hi. Does anyone have a sample how to create a pop up calendar in vb ?. Thanks for your help Edwin A. Perez peree1@supreme.com |
|
| Call 2 vb classes in my page directive (5 replies) |
| ASPFriends.com 'aspngvb' list |
| Moved from [aspngfreeforall] to [aspngvb] by Rachel Reese rachreese@yahoo.com Hi guys, How can I call two .VB classes in my @PAGE directive? For example : I do that : %@ Page Language "vb" src "../../cls/cls SendMail.vb" Debug "true" % and i want %@ Page Language "vb" src "../../cls/cls SendMail.vb" src "../../cls/cls Upload.vb" Debug "true" % Thanks to all |
|
| Problem with acquiring Page.Request.UrlReferrer (2 replies) |
| ASPFriends.com 'aspngvb' list |
| Is there a better way to acquire JUST the filename of the referrer, other than using this statement?: Page.Request.UrlReferrer.Segments(2) On my development laptop, this worked PERFECTLY. After copying my project to another development box, I'm now getting the following error: ERROR Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array. Source Error: An unha... |
|
| Excel object (5 replies) |
| ASPFriends.com 'aspngvb' list |
| Hello people, I'm trying to get excel working in my .Net application ( working with vb.net code ). Here is the code : Dim excelApp As Excel.Application Dim excelWorkbook As Excel.Workbook excelApp New Excel.Application() excelWorkbook excelApp.Workbooks.Open(strLocalPath) To create the application is no problem, but when the program opens the workbook I always get the same error : "old format or i... |
|
| Help with Radio Button List (2 replies) |
| ASPFriends.com 'aspngvb' list |
| Hi, I'm using Visual Basic .net to create an ASP.NET application. I've got a radio button list on a page and have bound it to a database. The problem is that rather than just set the DataTextField to just one field, I want to set it to 3. IE this is the code for the one field: rdlstVenues.DataTextField "name" Is there any way to add further fields i.e.: rdlstVenues.DataTextField "name", "city", "c... |
|
| Formating numbers (2 replies) |
| ASPFriends.com 'aspngvb' list |
| Moved from [aspngfreeforall] to [aspngvb] by alotofmail@tripleasp.net alotofmail@tripleasp.net I was able to use "Format" in VB6 to format numbers. Let's say Format("123", "0000") would return 01234. I can't do this in ASP.NET Any ideas? Thanks, Marcelo. |
|
| even handling in VB.NET vs. C# (2 replies, VIP) |
| ASPFriends.com 'aspngvb' list |
| I notice that in C# when you want to raise an event you test that the event has a handler registered, and then you call the handler directly, if (ClickApply ! null) ClickApply(this, new EventArgs()); In VB.NET you do no test, but you call RaiseEvent ClickApply(this, new EventArgs()); Am I right that VB.NET is doing the test for you (hidden somewhere) or is the mechanism just different? Jesse Liber... |
|
| IsNumeric (7 replies) |
| ASPFriends.com 'aspngvb' list |
| Moved from [aspngwebservices] to [aspngvb] by James Avery javery@deluxeeng.com Hi People, How to do a: If IsNumeric(sString) then End if : in asp.net? Warm regards, jur |
|
| sub main not found (3 replies) |
| ASPFriends.com 'aspngvb' list |
| I'm trying to play with the sample below. I created a new console project and pasted the code into a PCRead.vb file. When I try to run the project I get a "sub main not found" error message. C:\Program Files\ Microsoft.NET\ FrameworkSDK\ Samples\ QuickStart\ howto\ samples\ services\ performancecounters\ pcread\ vb\ pcread.vb Any help is appreciated. Thanks, ~Brad Kingsley Microsoft MVP ASP Window... |
|
| Equivalent of "this" in VB (4 replies) |
| ASPFriends.com 'aspngvb' list |
| Moved from [aspngfreeforall] to [aspngvb] by devin devinr@drone interactive.com I have seen the keyword "this" in CSharp code. What would be the equivalent in VB? |
|
| Examples of DirectoryServices for IIS ? (2 replies) |
| ASPFriends.com 'aspngvb' list |
| Does anyone here have examples of using the DirectoryServices namespace to manipulate the IIS metabase. I'm trying to duplicate the functionality of the VBScript that create a virtual directory. I peeked around that namespace, but could not find anything that would work. TIA. |
|