When I use the Visual Studio 2010 Datasource designer to connect to my SQL server remotely everything works fine. However, if I try to connect programatically from the same project using this code (sensitive info X'd out):
SqlConnection conn = new SqlConnection()...
I'm moving to VB.NET after using VB6 for quite a few years.
File operations in VB.NET seem to have some drawbacks.
In VB6 you can use an array of anything- bytes or structures for a buffer
Buffer = String(10000," ")
Get #1, Buffer
and if the array is larger than the file it will just read...
BillyRay,
I tried what you said but if the page cannot be displayed such as if the page is not found it triggers the onload event immediately.
But if I could check the locationName at the onload event and it was blank, I'd know the page hadn't loaded.
Do you know how to check the locationName...
If the target url that the iframe is directed to is unavailable, i'd like to point it to a different page.
I think you could give the page time to load(and in this case I could wait 10 seconds or more because the iframe is far down on a very long page) then check the locationName of that...
Is it possible to write a script that will redirect to a different page(or go back to the same page) if the intended forwarded to page cannot be displayed, such as if the server is down or the page is not there anymore?
The script will be in a page that will be displayed in an iframe.
The below code is used to load pictures on a webpage in the desired order.
It works great except when you hit the Back button in internet explorer 8 to go back to that page only the first image is still displayed, the rest of the images just show that little box you see when a picture hasn't...
I have a site where I'm preloading some images and then redirecting to the main site.
I also need to preload a YouTube movie, not the whole movie, just preload the player with the screenshot and the reader can hit play to watch it.
couldn't find much for tutorials on this...
Like I said it happens whatever method of FTP I use, here is one example. It's the ALLApi Guide example. The FTP calls return values saying they were successful. I close the connection, and close the program, but it's still there when you CTRL-ALT-DEL. I've tried running the compiled version of...
No matter how I try to FTP from a VB program - either by using the Internet Transfer Control or by calling Win32 functions like FTPPutFile, the upload works fine but the program won't terminate. I can close the program fine but it's still running in the background and I have to CTRL-ALT-DEL to...
I created a single document interface project using the VB application wizard.
The main form it created- frmMain, doesn't let other forms change the properties of its objects.
Other forms in the project can change the properties of each other's objects.
I don't see any Form properties that...
I have this problem a lot: my footers will overlap up into the main div of my website in Mozilla but work fine in IE.
example:
It looks like something like this in IE (the correct way):
text at bottom of main div
text of first line of footer
But like this in Mozilla:
text of first line of...
I have a list of links to blog entries with line breaks between them in the sidebar of my website like this:
BlogEntry1
BlogEntry2
BlogEntry3
etc...
But the blog entries are chronological so I want the list to be all one link to BlogEntry1
I'm trying to make the whole list underline when...
that looks good and works good but I don't see how to make the container bigger. If I try to put a bigger picture in there it throws it all off.
looks like there's absolute height/width values like this
margin-bottom:-13.75em; /* half of container's height */
which I don't understand that you...
The code below aligns a table exactly how I want and works in all browsers. The problem is when I open a link from that page to another page that uses the exact same method, the top of the table on that page will be at the very top of the page, not vertically aligned. If you hit the brower's...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.