670 Posted Topics
Re: you need to determine the data to be collected from the database and the way you want it displayed so you can pick the best data control to display your data in whatever language you choose. | |
Re: This is not the right place for this, avoid discrimination. Please mark this thread as solved to avoid further post | |
Re: Are you sure your connection string is correct? and check the version of the MS Access | |
Re: the best and easiest way is to write a single event handler for all textboxes on the form | |
Re: [CODE]Dim fileName As String = "myfile" Dim pathname As String = "\mydir\" Dim fullPath As String fullPath = Path.GetFullPath(pathname) Console.WriteLine("GetFullPath('{0}') returns '{1}'", pathname, fullPath) fullPath = Path.GetFullPath(fileName) Console.WriteLine("GetFullPath('{0}') returns '{1}'", fileName, fullPath) [/CODE] | |
Re: the redirect method would serve you | |
Re: [CODE]Private Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Dim myStream As Stream = Nothing Dim openFileDialog1 As New OpenFileDialog() openFileDialog1.InitialDirectory = "c:\" openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*" openFileDialog1.FilterIndex = 2 openFileDialog1.RestoreDirectory = True If openFileDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK Then Try myStream = openFileDialog1.OpenFile() If (myStream IsNot Nothing) … | |
Re: Am not sure you have asp.net installed" Try this: To install asp.net on IIS, run: > cmd as administrator > %windir%\microsoft.net\framework\v4.0.30319\aspnet_regiis.exe -i | |
Re: State the actual error you receive or observe and try some code simplification by breaking them down. That way, you can be more efficient in debugging your own codes | |
Re: Read as much as you can come across and practice as much as you read | |
Re: You may have isues with backward compatibility as debasidas stated, especially if you have reports and Microsoft Report Viewer used in the previous application | |
Re: pseudorandom21, you're a damn funny ass. But seriously, whats up with hacking. Same happened to Bieber | |
Re: well, check your code-behind file i:e. the HTML file of the page and get the width of the textbox and make the width of the FileUpload control same with the textbox. You can do this in design time | |
Re: First it shows your database is not well designed as you do nt have a unique identifier. Well, since you have a saving grace which is the time, you can delete all other records leaving the want you want by specifying the time in the WHERE clause | |
Re: You need am ID to specify a WHERE condition. Else, you may end up losing the whole data in the table. In order to remove the data from the table while retaining table structure, do this: [CODE]TRUNCATE TABLENAME[/CODE] but you can delete a selected number from the table just as … | |
Re: From your attached, it shows that the application cannot find the specified file. Make sure you point to the exact directory of the text file | |
Re: Well, you can connect when both PC's are on the same network because there is no conflict as it recognizes the network but you definitely cannot connect when you exist on another network because you computer at home wont be seen | |
Re: check out 'Asp.net from Novice to Professional'but most asp.net books wont give you detailed information on crystal reports or SSRS. Those are complex courses so they exist on their own | |
Re: you need to read up on this. First, get an FTP client application and log in to your domain on the host provider and FTP the site. This link may help:[URL="www.asp.net/hosting/tutorials/determining-what-files-need-to-be-deployed-vb"]www.asp.net/hosting/tutorials/determining-what-files-need-to-be-deployed-vb[/URL] | |
I have written the following code in a class as my connection string. I want to retrive data from a field in a table in my database using this connecyion string. Please how do i go about it? [CODE]Public Class ConnectionString Public Shared Function ConnSQL() As SqlConnection Dim connectionString As … | |
Re: Is it a web application (FileUploadControl to be used) or a windows application >add a new column to the table to save the image > use the binary data type for the image column in SQL-Server >In your code, convert the image in the control to binary > save to … | |
Hello everyone! I want to write my connection strings and functions in a class and always call the class when i need to make a connection to my database to avoid code repetition and increase code reuse but i have an error. Here is my code below [ICODE]Public Class ConnectionString … | |
Re: first of all, to have a matching 'user_id' with a matching 'iD' in the users table, there has to be a relationship between the two tables in order to avoid conflicts or avoid the return of nulls. | |
Re: if its on the fly, you should give preferences to the text-boxes so that there wont any error in the calculation(by skipping a text-box) or better still, you can just code a button to help do the summation. | |
Hello Everyone! Am working on a project and its ready for the production server. I used the windows login controls and ASPNET.mdf as the default database. I have moved the folder containing the project to the production server and deployed it on IIS but when a uer tries to access … | |
Re: You need to create a virtual directory in IIS and then configure its directory to the location of your application or better still, you can just add application and give a name to the site as it would be seen by user and then locate the file path to your … | |
Hello everyone! Am trying to retrieve data from sql server based on two columns. Its a web application being developed using VS2010 (vb.net) but i keep getting the error: incorrect syntax near '=' Here's my code below: [CODE]Sub GetBasicMidwives() ' Set the SelectCommand properties... With objDataAdapter .SelectCommand = New SqlCommand() … | |
Hello everyone! Please am developing a web application using vb.net with visual studio 2010 and .NET framework 4.0. its complete but i want it accessible over the network (LAN) so i have tried to host it on the local server (IIS) but i keep getting the following error message from … | |
Hello everyone, Please am working on a project basically for storing personal data for some employees. I have a dropdownlistbox which gets its content from a table in SQL-Server. I also have a textbox which i want its text to be the same with the selectedted item of the dropdownlist … | |
| |
How do i move from one tab page to another with a single button click? | |
Re: you can simply set the ID column as a primary key in the DBMS | |
I have a datagridview control on my form. i use this to display data including images. Please how can i set the row height of the datagridview control so the picture can be well displayed? Thanks | |
Re: [CODE]Private Sub New_User_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'declare variables Dim randomvalue As New Random 'create random object Dim randomhold As Integer 'generate random number For i As Integer = 0 To 9999 randomhold = randomvalue.Next(1, 9999) + DateTime.Now.Minute + DateTime.Now.Year txtUserId.Text = randomhold Next End … | |
Re: set your login form as the startup form from the project properties. and set the project to close when last form closes so the project does not terminate when startup form (login) closes here is the code for displaying the MDIparent form: [CODE]'enter code to check username and password here … | |
Re: [CODE]display all running programs () Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'displays the current system processes. Dim myquery = From anitem In Process.GetProcesses _ Select anitem.ProcessName, anitem.Threads.Count, anitem.Responding DataGridView1.DataSource = myquery.ToList End Sub[/CODE] | |
Re: why do you have a datetimepicker and a textbox? you can just use the value or text property of the datetimepicker. | |
Please how do i create a report at runtime in vb.net? I have no idea at all because i've never worked with crystal reports and most tutorials I've come across actually don't treat the topic. | |
Hi guys! I just installed a new windows vista on my newly bough hard drive. i tried to deploy my web application to the local IIS server but the default web site appears to be stopped which prevents any site from being accessible over the LAN and when i try … | |
I have created an application and also created the setup.The application adds it executable file to the user program menu but it does not create a shortcut on the desktop. How do i make my applications create a shourtcut menu on the desktop when they are installed | |
Hello All! Please i designed a website and hosted it. The problem is, it displays the custom error page whenever i try to view the registration page which is meant for data entry. What could be the possible error because it works perfectly when tested on the LAN | |
Pls everyone, i need help with two regula expressions One to accept only file word and pdf file and the other to accept only images(.jg|.bmp|.png|.gif) Thanks | |
Re: Follow these steps: 1. Place a RegularExpressionValidator on your form 2. Set the controlToValidate property to the control you want to validate 3. Click on the elipsis button on the validationExpresion property of the control 4. Select internet email address from the list of standard expressions | |
Re: you would need to create the user in sql server in order grant authentication on any data request | |
I have two FileUpload Controls. I want one of them to accept only word and pdf file, the other is to accept only images(.jpg|.bmp|.gif|.png). I've actually tried coding an upload button and i tworked but i prefer a client-side validation so i've decided to use a RegularExpressionValidator. Pls I need … | |
i have a file upload control. Please how do i specify a file size and file tyoe to be uploaded. Its very urgent | |
Re: pls mark thread as solved if solved | |
Re: [CODE]Private Sub Textbox1_TextChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Textbox1.TextChanged if IsNumeric(TextBox1.Text) THen 'do nothing else 'display error message messagebox.show("Numbers Only", "Error") 'clear textbox TextBox1.Text = "" End If [/CODE] |
The End.