Topics
-
-
- Administrators
- 4 replies
- 810 views
Hey peeps, I've got a situation where I need some help if possible. I've got my class setup, and i've told it to create a method: private void UserDetails() { if(Session["User"] != null) { SqlConnection UserDetails_Connection = new SqlConnection("server=xx.xxx.xxx.xx;uid=xxxxxx;pwd=xxxxx;database=xxxxxx"); SqlCommand UserDetails_Command = new SqlCommand("SELECT * FROM Users WHERE Username like '" + Session["User"] + "'",UserDetails_Connection); try { UserDetails_Connection.Open(); UserDetails_Read = UserDetails_Command.ExecuteReader(); UserDetails_Read.Read(); UserDetail.Add(UserDetails_Read.GetInt32(0)); UserDetail.Ad…
Last reply by gRoberts12, -
-
- 0 replies
- 762 views
My ASP.NET application in development machine is fine, but when I deploy to customer server, the application will prompt for access login when using IE to access my application, just like when we try to access other pc in our network, we need to provide password. May I know is there any solution? Even I had select "Anonymous access" in directory security setting, and the user is "IUSR_". Thank you
Last reply by bungpeng, -
- 1 reply
- 893 views
Hi all, I am trying to create a program with Client Number, but I want the program to automatically generate an auto number for the Client Table, how can I do that? Note that I am using MSDE Thanks PlayKid
Last reply by Joe Mamma, -
- 2 replies
- 1.1k views
What's the easiest way to do this? I have a rtf document loaded, and I want to print it (with the RTF formatting - but without the RTF codes). What's the best way to do this?
Last reply by bri189a, -
-
- Administrators
- 1 reply
- 1.1k views
How can I make sure only A-Z,a-z,0-9, _ , and . are used in a txtbox? Basically, I am trying to prevent against sql injections.... I have seen: Me.ValidationExpression = "^([a-zA-Z0-9_\-])([a-zA-Z0-9_\-\.]*)@(\[((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}|((([a-zA-Z0-9\-]+)\.)+))([a-zA-Z]{2,}|(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\])$" and I am guessing I want something like: ([a-zA-Z0-9_\-]) then plus _ and . but I am unsure how to implement this. Any help would be great! thanks Lee
Last reply by PlausiblyDamp, -
-
- 2 replies
- 1.2k views
does someone now were i can find some tutorials about creating, reading, writing, ... excel files with vb.net ??? so the commands to adjust fonds, kolomwidth, rowhight, pageproperties, ... All info is welcome thx :)
Last reply by italkid, -
-
- *Experts*
- 2 replies
- 1.3k views
Hi! I am looking for something like image recognition in .NET. Short story what will I do: Imagine I have a jpeg picture with a man on it. The background is much brighter as the man on it. Imagine it so: You have a white paper and a black figure on it. I will automatically add 10 textboxes on the picture. But the 10 textboxes can not be positioned on any part of the figure. I need a framework or a sample code to recognize the image and set automatically the 10 textboxes of any position on the picture where the background is white. do you know any sample code or a open source framework that provide me this possibility? Regards, gicio
Last reply by trend, -
-
-
- *Experts*
- 1 reply
- 920 views
i want to read file called stat.dat, used by a vb6 application. first i thought it was a binary file. i used binaryreader and display the output, it doesn't seem right. is there a way to decode the file and display readable data? i searched around it sounds like OLE Automation/PerfectScript... i hope i am on the right direction....
Last reply by DiverDan, -
-
VB question
by zao-
- Administrators
- 1 reply
- 592 views
Hey guys, I was just woundering on something, is there anyway to get VB to access a server though an http type protocal? For example: If I go to my friends house and install the vb program that I am working, and if they tried to log in, is there anyway it could send the data though the net to my server sitting a home to access the database, to check for an user ID and PWD? Thanks Andy
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 3 replies
- 834 views
Hi, Is there a more efficient way to check if an object can be converted to a number than this: Function IsNumber(input As Object) As Boolean Dim out As Double Return Double.TryParse(input, System.Globalization.NumberStyles.Number, System.Globalization.NumberFormatInfo.CurrentInfo, out) End Function
Last reply by utilitaire, -
-
- 5 replies
- 1.3k views
I've got a program that uses managed directx and I've got a robot moving around an arena, I need of detecting collisions with walls so I can stop it going through them. The problem is I don't really know how to do it. I've tried methods like Mesh.Intersect, but it didn't work, (I don't think I understood it). Any help would be appreciated. Brad.
Last reply by Knight Chat X, -
- 4 replies
- 985 views
Do any one know a command to completly stop the program running . I have a for loop which has a try and catch function For Each MyFile In FilesArray Try MyFile.Delete() Catch ex As Exception MessageBox.Show("close all other wondows a run the program again", "DocumentManager Information", MessageBoxButtons.OK, MessageBoxIcon.Information) Application.Exit() End Try Next MyFile i use application.exit() to end the program ,but the program runs till "for loop" ends. ie if the looop goes into catch 2 times then it displays …
Last reply by shankar_it, -
- 0 replies
- 1.5k views
I have just started using Firebird for all my embedded database needs when programming with C#. I was wondering if anyone knew if there was a way to list fields and data types in Firebird. I am used to MySQL and I have always used the DESCRIBE statement, but Firebird does not seem to allow this. The ultimate goal is to get the field names and types into a DataTable in C#. Thanks
Last reply by grip003, -
- 2 replies
- 798 views
I'm trying to get into the proper ways of oop, design patterns and everything. I've picked up alot the past few weeks but I still keep getting unstuck on seemingly really simple issues. Current confusion: - I'm UMLing a web application, situation summarised is: - Members (i.e. users) can log in, view events (I.e. an event held at a specific location), attend events, leave messages about events etc. In my class diagram i have a Member class and an Event class. Where would a method such as viewEvent() go on the Member class because a member can view an event or on the Event class because it is the event that can display its details????? Also how would i re…
Last reply by bri189a, -
- 5 replies
- 797 views
I ran the CLRProfiler on my laptop. I changed "machine" name to "server". Everything ran fine... I have another laptop..i downloaded CLRProfiler, changed "machine" to "server", started CLRProfiler, started my website but i got an error that application is not available and to look in Event Viewer.. I looked in Event Viewer and this is the error msg: aspnet_wp.exe could not be started. The error code for the failure is 80004005. This error can be caused when the worker process account has insufficient rights to read the .NET Framework files. Please ensure that the .NET Framework is correctly installed and that the ACLs on the installation directory allow access to t…
Last reply by eramgarden, -
- 2 replies
- 5.5k views
Hello, I've problems with one assembly. I'm using and have referenced Microsoft.mshtml.dll, which is Primary Interop Assembly. It's in "D:\Program Files\Microsoft.NET\Primary Interop Assemblies\Microsoft.mshtml.dll". Public Class Enlaces Private Enlace As mshtml.HTMLAnchorElement Public Sub New(ByVal e As mshtml.HTMLAnchorElement) Try Enlace = New mshtml.HTMLAnchorElement() Enlace = e AddHandler DirectCast(Enlace, mshtml.HTMLAnchorEvents2_Event).onclick, AddressOf EnlaceOnClick Catch exc As Exception MsgBox("Error en constructor de Enlace: " + exc.Message, MsgBoxStyle.Critical) End Try End …
Last reply by theBug, -
- 1 reply
- 959 views
Im not sure if this is a correct place fro this post but here it is anyway btw thanx in advance for help ok i have a webbrowser on my form called wb1 on startup, it loads a page that has some text on it. I wouldnt mind knowing how i can red some of that text of the page and place it in a label control thanx guys
Last reply by neodammer, -
-
- Administrators
- 1 reply
- 2.4k views
s there an easy way to upgrade a vc++ project to VC++.net/C#/(even VB.NET) ? Thanks, Linesh PS: I already posted this Q in the VC++ syntax specific section, but thought this was a more appropriate forum for it.
Last reply by PlausiblyDamp, -
-
- 1 reply
- 1.8k views
Hello all, I have written a class that exports all the rows of a table in a dataset to an excel file, I use an oledb connection to do this. now it works no problem but I wonder if I can speed it up, this is where you specialist come in, this is my code this one creates the excel file and the first cells ( headers ) try { if(System.IO.File.Exists(System.IO.Path.GetFullPath(_FileName))) System.IO.File.Delete(System.IO.Path.GetFullPath(_FileName)); DT = _ds.Tables[0]; StringBuilder CreateTable = new StringBuilder("CREATE TABLE "); CreateTable.Append(_ds.DataSetName); CreateTable.Append(" ("); foreach(DataColumn col in DT.Columns) { …
Last reply by TripleB, -
- 0 replies
- 7.5k views
some of you might find this of use. . . Suppose you have an property of a class that is an "Flags" attributed enum. reference the attached FlagsUI.dll assembly. . . apply this attribute to your property: [EditorAttribute(typeof(FlagsUI.FlagsEditor), typeof(System.Drawing.Design.UITypeEditor))] Now you get a dropdown checkbox to select the set of flags that are applied to the property. attached zip contains: FlagsUI - the Flagged property editor FlaggedComponents - two simple component/flag enumeration examples testapp - an example app. for best results - Build the solution before opening the form. Click on the "value" property of either of the…
Last reply by Joe Mamma,
-
Who's Online 0 Members, 0 Anonymous, 84 Guests (See full list)
- There are no registered users currently online