|
Hii Dave,
I tried to ping my machine frm 2-3 diffrent machines & I was successful. So i dont think there is any prb in connectivity, but still the page is not displayed.
Regarding path: As the system is in LAN, I type http://mymachinename on the other machines. Even i hv entered my machine name in the Bypass proxy server for foll.address textbox on the other machines, still its not working.....wht can b the prb???
|
|
|
|
|
You're possibly not typing the correct path into the address box. It should be a folder under the Inetpub\wwwroot folder on your machine.
http://yourmachine/applicationfolder
or possibly
http://yourmachine/applicationfolder/pagename.aspx
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I hv tried these things but still its not working. Now i m getting confused abt this prb.
Can u tell me what r the settings required to be done in IIS ?
|
|
|
|
|
You say it works from your own machine but not from remote machines. I have no idea what the problem could be now. IIS is running, the site is running, the path is correct, the name of the machine is resolvable. It should be working. I'd go back and reverify everything. After that, I have no idea what the problem is.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Ok. I will hv to search some more factors affecting it.Even after removing VB.Net program from the picture, IIS is not able to display its default web page on the network. So i think prb lies in either of two things:- IIS settings or network settings.
Thanks for the help.
|
|
|
|
|
Dear friends,
Can I use any alternate for DSO Framer control to display document, excel, ppt, pdf etc files. I tried aspose too, but it was
not meeting our requirements. Because they want a tool which takes the documents as it is like DSO Framer. In aspose to
change the document format we need to change the code also.
And I need to email this document too. So that document may be changed so frequently. And dont forget that document must have
to be made using .Net frame work library(com component is not preferable). What shoud I use in this case. Please help me.
Thank you.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Stop cross posting in all the forums! This will NOT get you an "immediate reply", as you call it. It's likely to get you ignored.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave Kreskowiak wrote: Stop cross posting in all the forums!
I've mentioned that to the OP and he cross posts even more
|
|
|
|
|
Must be something in their Cheerios...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave Kreskowiak wrote: Must be something in their Cheerios...
|
|
|
|
|
Sir/Madam,
I want to know the property of the combo box that restrict the user from typing into the combo box and also allows the user to select the items into the combo box.
Thanks and Regards
Pankaj Garg
|
|
|
|
|
|
If you want to stop them typing anything, set the DropDownStyle to simple or DropDownList.
Posted by The ANZAC
|
|
|
|
|
Once upon a time I had fixed VB6 to scroll the code window using the scroll wheel on the mouse. Them my system crashed, and now I can'y find the details on how to set this up again.
Anyone got any ideas??
Thanks
David Loring
!! Keep Music Live !!
|
|
|
|
|
|
Thanks for that. Actually I use Visual Studio 2005, but I have several legacy programs that need to be maintained and occasionally just for some things VB6 is easier.
David Loring
!! Keep Music Live !!
|
|
|
|
|
Hi,
Ive come across a strange problem in VB 2005 express edition. I have a program that uses movie player pro activeX and on that I have a button called load, that loads a video. The program work on my desktop computer, however when i shifted it onto my laptop it doesnt seem to load the file i want it to.
I have made sure the coding is all correct (i.e. the path name of where the file is, has been altered on the laptop).
But for some reason the load button simply does not load the movie onto the movie player pro activeX.
Does anyone know why this is? and suggest on anything I could do to load the video. I can assure the code is all correct and the video i want to playe and movie pro activeX are installed on the laptop.
Thanks in advance.
Jaidev
|
|
|
|
|
jady84 wrote: I can assure the code is all correct
Considering there is a problem, wouldn't this be a false statement?
Without seeing the code you're using to pick and load the video, there's not much anyone can tell you.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I am working on this program where i need to supply the name of the server at runtime so as to dynamically build the connection string..
what I am saying is that..the program will have a initial setup screen, so the user can supply the name of the server...
how do i go about doing that..presently i am using local and at times i use the name of my server..but i need to use the program on different computer on a network, which i am not sure of the server name at this moment...can anyone help.. I hope this was clear..
i am using sql server 2000 and vb.net 2003 as my front end...
Nab
|
|
|
|
|
Not sure what you are into but here is a pretty handy website to get the connection strings link
Are you using the application blocks from MS or are you using your own.
|
|
|
|
|
Ok thank you guys. But can any one help me with this? My program would have a initial setup screen where the system admin will suply all the necessary informatoin such as the server name, pasword, username and stuff like that... all this information would be written to a text file somewhere on the hard drive. The program should then take the server name, user name and password from the text file to create the connection string to connect to the database (sql 2000)
How do i go about using the information from the text file to create my connection string so that my program can use it? I can't program the connection string in the project because i don't know the name of the server they will be using and they might need to put it on other servers..
Please help!!
Nab
|
|
|
|
|
Ok here you go but let me tell you up front that I would never do this in any production code Ever and here is why. If you persist the connection to a local file you can/will get hacked and you now have the responsiblity of maintaining or validating the contents of the file. So based on this don't use this code in production applications it is to dangerous and you don't need to there are better options. If the user has to enter the server username and password just hold it in a member variable then all of the problems go away.
This is a test form to prove the concept
Public Class Form1
' Member sqlConnection variable
Private mConnString As Data.SqlClient.SqlConnection
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' Gives you the path of the file to write
Dim csExample As New connectionstringexample("C:\connectString.txt")
' Builds the structure and stores the data to a file
csExample.PersistConnectionString(New ConnectionStringStuct("myServerAddress;myDataBase;myUsername;myPassword;"))
Try
' Instantiates the new connection string using the data retrieved from the file
mConnString = New System.Data.SqlClient.SqlConnection(csExample.GetConnectionString())
Catch ex As Exception
Throw New ApplicationException(ex.Message)
End Try
End Sub
End Class
I used a structure to hold the data because it keeps everything by value
not by reference. It has two fields one with a formatted connectionstring and one that is the raw delimited data which should be encrypted.
Public Structure ConnectionStringStuct
' Real work is done here
Sub New(ByVal RawStringIn As String)
Dim lStringParts As String() = RawStringIn.Split(";")
' Put any validation code here
' Buids a complete connection string
mConnectionString = "Data Source=" + lStringParts(0) + ";" _
+ "Initial Catalog=" + lStringParts(1) + ";" _
+ "User=" + lStringParts(2) + ";" _
+ "Password=" + lStringParts(3) + ";"
mRawString = lStringParts(0) + ";" _
+ lStringParts(1) + ";" _
+ lStringParts(2) + ";" _
+ lStringParts(3)
End Sub
Private mConnectionString As String
Private mRawString As String
Public ReadOnly Property ConnectionString()
Get
Return mConnectionString
End Get
End Property
Public ReadOnly Property RawString()
Get
Return mRawString
End Get
End Property
End Structure
The responsibility of this class is to manage the use of the structure and do the IO work and is not responsible for any data related to the connection string.
Public Class connectionstringexample
' Signiture of the Connection String
'Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;
Sub New(ByVal FilePath As String)
mFilePath = FilePath
End Sub
Private mFilePath As String
Public Function GetConnectionString() As String
Dim rtn As String = String.Empty
Dim lConnectionString As String()
Dim lConnectionStringStructure As ConnectionStringStuct
Try
' Get the data from the file
lConnectionString = System.IO.File.ReadAllLines(mFilePath)
' Create the structure and get the data organized
lConnectionStringStructure = New ConnectionStringStuct(lConnectionString(0))
' Send out the return value
rtn = lConnectionStringStructure.ConnectionString
Catch ex As Exception
Throw New ApplicationException(ex.Message)
End Try
Return rtn.ToString()
End Function
Public Function PersistConnectionString(ByVal ConnectionStringIn As ConnectionStringStuct) As Boolean
Dim rtn As Boolean = False
Try
'Writes the RawFormated string to the file
System.IO.File.WriteAllText(mFilePath, ConnectionStringIn.RawString)
rtn = True
Catch ex As Exception
Throw New ApplicationException(ex.Message)
End Try
Return rtn
End Function
End Class
So there is an example but let me encourage you to find and use the microsoft application blocks they are free and very stable. You can extend them to handle your special needs and it gives you a great place to start from instead of building you own code base.
Just to make the point you do not need to persist this to a file just create an instance of the structure using the input from the app when the user provides the connection inputs. By the way .Net 2.0 has some richer features to help with building connection strings so take a look at them when you get a chance .
Hope this helps.
|
|
|
|
|
There's nothing special about building a connection string. It's a normal string just like any other and can be built using the exact same methods.
Dim connStr As String = String.Format("Data Source={0};Initial Catalog.....", serverName)
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I need to sort an array but I also need to keep track of where each array item was in the array before it was sorted. I was wondering if anybody knew of a built in vb.net function that would give me a sorted array and an array with its original index number.
Thank you for your help,
Mike
|
|
|
|
|
There is nothing that will do it for you. You have to maintain two copies of the array yourself. There is nothing in the .NET Framework that will do it for you. The first is your original, unsorted version. The second is a copy of the first one, but sorted.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|