Topics
-
-
- Administrators
- 1 reply
- 1.3k views
Hi, I have two web user controls on my page, each has its own validators in the form of required field and regular expression validators. All the validators in both web user controls have the "EnableClientScript" property set to "false". The problem that I am experiencing is that when a post-back occurs on one web user control, it causes the validators in the other control to fire off. Can anyone suggest a possible means of stopping this occuring? Mike55.
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 6 replies
- 2.7k views
How would I get the title tag of an html file? In VB6 I used two APIs: InternetOpenFile and InternetReadUrl. But APIs don't seem to feature very heavily in .net, so I expect there's a more straightforward way. Any idea how to do this?
Last reply by rbulph, -
-
- 0 replies
- 1.3k views
Hello everybody, I am writing a system which uses a pocket pc and a network. my configuration: handheld linked through ActiveSync to my laptop laptop is connected via lan to my office computer VB.Net 2005 professional Windows XP (home edition) both laptop and office computer Windows Mobil 5.0 on Dell Axim X51V handheld File IO is using StreamReader/StreamWriter I can read and write most files through the network and to and from the handheld. After a file is writen to the laptop from the handheld I can only read that file on the laptop or the handheld not on my office computer through the network. I can also copy the file from the laptop to the office co…
Last reply by zelectric, -
-
- Leaders
- 4 replies
- 1.1k views
I have this code (posting the whole class for context) I am creating a collection of 'clients' each client has a received data event. If you look at the Test() sub, these are the values of the variables, and the unexpected results. First Time Called: Data() = "Test" (in byte array) str = nothing ols = Encoding.ASCII.GetString(Data) = "Test" (this part works) str = String.Concat(str, ols) = "Test" Second Time Called: Data() = "a Second Test" (in byte array) str = "Test" ols = Encoding.ASCII.GetString(Data) = "a Second Test" (this part works) str = String.Concat(str, ols) = "Test" Third Time Called: Data() = "a Third Test" (in byte array) str = "Test" …
Last reply by Nate Bross, -
-
-
- Administrators
- 2 replies
- 1.6k views
I intend to setup a gateway to gateway VPN using 2 DG834G ADSL routers to connect a remote and local site. The local site currently has a windows SBS 2003 server with ISA installed as the firewall for the internal network and the remote site is just a bunch of clients. localclients --> ISA Firewall -->gatewayA --> internet --> gatewayB --> remoteclients local clients have subnet 192.168.10.0 and remote clients have subnet 192.168.1.0 How do I allow local traffic from both sites through the ISA firewall while still protecting external traffic? In this scenario is the ISA firewall needed at all? Should I unstall it and rely on the gateway …
Last reply by ahayes1ic, -
-
-
- Leaders
- 1 reply
- 1k views
Hi from XRumer ;)) Anybody home?
Last reply by snarfblam, -
-
-
- Leaders
- Administrators
- 3 replies
- 1k views
Hi I use the command .GetHashCode() to generate a hash value for my users passwords, which is then compared against a hash code stored in a database when logging my users in. I have a forgot password option, which allows the user to submit their username and their email address, which then generates a new password and emails the value to the user. The procedure also updates the database with the new password. I need to get a hash code value of the new password in sql server as I do not want to return the new password to my vb.net app and hash the password and call a new database procedure. Therefore, does sql server 2005 have some sort of hash function? Or is th…
Last reply by snarfblam, -
-
-
- Leaders
- 3 replies
- 2.7k views
I have a picturebox control that I want to create a pan movement that follows the cursor's movement. I need some help getting started. I've looked at mouse down/up events along with the cursor.location property but can't seem to get it working. Any ideas? Thanks
Last reply by snarfblam, -
-
-
- Leaders
- 1 reply
- 717 views
In run time i wanted to check and see if there is an error bcs of out of memory. Is there a way to catch this exception in run time?. If there is i just want to show a Message box saying that some exception has occured.
Last reply by snarfblam, -
-
-
- Administrators
- 2 replies
- 2.9k views
I have the following code: Try Dim sqlCommand As String Dim cmdImport As New SqlCommand Dim dcPKMembers(1) As DataColumn sqlCommand = "SELECT Member_ID, Custom_ID, Surname, Forename, FullName, DOB, Title, MobileNumb, PhoneNumb, Addr1,Addr2, Town, County, " & _ " Role, Guardian1,Guardian1_Phone, Guardian2, Guardian2_Phone, Email,AdditionalInformation,CodePrefix, Country, PostCode," & _ "InternationalNumber, Sex," & _ "ImportReference,Custom1, Custom2, " & _ …
Last reply by PlausiblyDamp, -
-
- 1 reply
- 1.3k views
I have 2 columns that I need to combine into 1. Both columns are datetime. colDate has the date and colTime has the time. I would like to create a new column called FullDateTime that would hold the concatenation of these 2 columns. This is what I have so far, but it isn't quite right: Alter Table activity Add FullDateTime datetime; insert into [activity] ([FullDateTime]) values (select (colDate + colTime) from activity) alter table activity drop column colDate alter table activity drop column colTime Can someone point me in the right direction? tia, flynn
Last reply by flynn, -
- 1 reply
- 1.2k views
I want to drag an excel spreadsheet, parse the content, and move the data to a datagrid on my web page. This needs to be done with cut and paste and, seeing as adding a mouse-event to the datagrid adds it to every member of the datagrid, making it practically unuseable, my idea was: Put a button on the page that says, "Move data from clipboard" Use that to kick off a clipboard reader. It appears that the method for this lies in System.Runtime.InteropServices.ComTypes.IDataObject. Darned if I can find an example that works Anyone been down this road before?
Last reply by TheWizardofInt, -
-
- Leaders
- 6 replies
- 1.5k views
Declaring a nullable type in VB.net 2.0 and determining whether or not it has a value is easy: Dim r As Nullable(Of Long) MsgBox(r.HasValue) 'False r = 0 MsgBox(r.HasValue) 'True But is there a way to set r back to the state of having no value having given it one?
Last reply by Mike_R, -
-
- 1 reply
- 2.9k views
Good Morning, I have a treeview control on a Windows form application. Does anyone know of a way I can allow the user to expand the size of the control instead of them having to scroll left and right. Thanks Guha
Last reply by GMan_NC, -
-
- Moderators
- 6 replies
- 1.6k views
Hello, I was hoping someone would be able to help me with a problem. I have a form that contains a datagrid bound to a dataset, a textbox and a combobox that is filled with the grid's column names. I want to be able to select a column from the combobox and then type in the textbox. As I type, I want to search the specified grid column for the matching characters. Basically, I want to do something similar to a combobox lookup or autofill, only with a textbox and grid. Is this even possible? If so, please help, this is for a project that is slightly overdue. Thanks for your help!
Last reply by gprabaka, -
-
-
- Administrators
- 1 reply
- 9.1k views
OK - this is driving me crazy. I published a site to our dev server, and it works perfectly. I copied the files from dev to our QA server, and now I'm getting a strong name error - "Could not load assembly "xxx" or one of it's dependencies. Strong Name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)" How the heck could the web project work on one server and not the other? The assembly it is yelling about is a third party assembly, as a matter of fact, if I remove that one, it yells about all of the dll's, and none of the hav…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 7 replies
- 2.4k views
Is there any way to create a windows service and have that service load up a form and then minimize it to the system tray? I have a backup utility application that I wrote to backup a server, and one day the server went down while I was on vacation. I had them boot it back up, but the backup utility would not start unless a user logged into the server, which I did not allow while I was away. I would really like that backup utility to run as a service so I could avoid this problem the next time the server needs to be re-booted. So far, I have tried to create a service that loads my main form in the OnStart() function. The service starts, but no form is loaded. Any …
Last reply by grip003, -
-
- 1 reply
- 937 views
Ok, I know how to download a update with a progress bar from a past post, although when it downloads a file, It downloads like a .dat or .ini to update your current program. Although how (what do you add) to make it know if it is a newer version or not. So If you click update, and there is no newer version it says "no new version" or something like that. Here is my code: Imports System Imports System.Net Imports System.IO Public Class Form1 Inherits System.Windows.Forms.Form #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent() 'A…
Last reply by MadMaxx, -
-
- *Experts*
- *Gurus*
- Leaders
- 10 replies
- 7.5k views
I am making a user control in vb.net. I am trying to use GDI, however, to handle the blitting, since GDI is faster. I am using the hdc's that i retreive from graphics objects to pass to bitblt, and bitblt return values indicate a successful blit. But after I release the hdcs and try to display the bitmap on the screen, i get nothing but blackness. It works, however with GDI+ functions. Here is the GDI+ Version Dim Source As New Bitmap("D:\Visual studio projects\console\LEDWindows.bmp") Dim GSource As Graphics = Graphics.FromImage(Source) Dim hDCSource As IntPtr Dim Persist As Bitmap Dim GPersist As Graphics Dim hDCPersist As IntPtr …
Last reply by headkaze, -
-
-
- Leaders
- 1 reply
- 1.6k views
My application is used globally, I download date from the serve to the local machine and compare with isDate() function in VB.net. If the region setting in Control panel of the PC is United states the isdate function is returning true. but, if the region is Chinese (Singapore) or Thainwan then the isdate is returning false. Date is always in this format: 10/18/2006 10:18:45 AM (since it is returned by the server). how to resolve this issue
Last reply by snarfblam, -
-
Who's Online 0 Members, 0 Anonymous, 49 Guests (See full list)
- There are no registered users currently online