Load .js Files With ASP.NET?
May 17, 2011
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
[Code]....
I'm using ASP.net (just learning) with VB. I can't seem to get Javascript code to work with ASP VB code. My main problem seems to be that .js files are not loading. In the example, basic.js just contains a function click() that calls an alert() message. How do I get .js files to load with ASP code?
View 6 Replies
ADVERTISEMENT
Aug 6, 2011
I'm starting with VB 2010. I have an Excel file with a lot of info (dates, kilometers, price, name, etc.). I have been reading about that but I don't do it right. I want to now If someone of you have some code to study or any other resource.
View 6 Replies
Mar 16, 2010
i tried to load .swf or .flv files in vb 2008 i can load image files in it by typing picturebox1.image = my.resources.nameofimage but if i try to type AxShockwaveFlash1.Movie = My.Resources.nameoffile
View 3 Replies
Jun 9, 2011
I'm making a simple app that will need some DLLs that I'm using, but I don't want them to be in the same place as the main exe.How can I make my app to load these dlls from a specified folder, like %mainappfolder%filesdlls ?
View 19 Replies
Apr 21, 2011
let's say I have 5 DLL files that are each a partial class, that they should form together... Is there a way I could load these 5 files into 1 assembly object ?
View 2 Replies
Aug 16, 2011
I apologize if this is a rudimentry question, but I have an application that makes several calls to several .dll's. I notice that the first time the function is called, it seems to take a very long time (about 10 seconds) for the functions to complete.
View 2 Replies
May 12, 2009
I would like to open a listview with files from a folder directory, something like c:my files.
View 17 Replies
Feb 27, 2012
I am trying to load files into a Datagridview:
If FolderBrowserDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then
Dim myFileDir As New System.IO.DirectoryInfo(FolderBrowserDialog1.SelectedPath)
For Each myFiles As System.IO.FileInfo In myFileDir.GetFiles("*.*")
DataGridView1.Rows.Add(myFiles.Name)
Next
I am able to get the files.I have 2 columns "filename" & "readonly"
a) how can I filter just .dwg
b) how can I get readonly a tag that says "yes" into datagridview, so I can see which files are set to readonly.
c) I will be launching the list of files through autocad (I know the process.start method to launch, is there any way I can launch then via desktop shortcut, the reason I ask is there is a script file attached to the shortcut, which amends the drawing when autocad is launched:
"C:Program FilesAutodeskAutoCAD 2012 - Englishacad.exe" /b "A:SCRIPTSmyscript.scr"
View 3 Replies
Apr 23, 2009
i searched for stuff to load files/forms, in this case forms from a combo box... this is what i have so far, except it doesn't do as it should..
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Select Case ComboBox1.Text
[Code]....
also, is it possible just to click the item in the combo box and have it automatically load up the form?
View 4 Replies
Nov 29, 2010
I accomplished the task of creating a picture viewer that finds pictures in a directory,adds them to a listbox, and displays them in a picturebox at intervals using a timer. Now, I am trying to achieve a similar task using an array in a continuous timer-display fashion so that after the last image the process starts over from the first image again
Public Class Form1
im file(5) As System.IO.File
Dim num As Integer
[code].....
View 1 Replies
Jul 17, 2011
I have a problem when trying to show details of XML file by choosing an item from Combobox. I have two XML files, called Employee.XML & Subject.XML. The format is like below
<Employee>
<EmployeeID> </EmployeeID>
<Position> </Position>
[code]....
The Combobox contains Employee and its Position also (eg: A1 - IT professor). When I choose an item in here, its Subject details will automatically show in Textbox (one EmployeeID can have many subjects). I cannot use Combobox.SelectItem because I already set Option Explicit On & Option Strict On. I also make EmployeeID by ascending coming up with its position. How can I show details in TextBox by using Subject.XML? I tried many methods but none can work properly.
View 5 Replies
Mar 11, 2011
I have in my form 2 RichTextBox , one Listbox , one OpenFileDialog and one Button . In those 2 RichTextBox I would like to load two (*.RTF) FILES .
Application Steps :
1- When I click the button , an OpenFileDialog open .
2- I choose those two files (*.RTF) and when I press the OK in OpenFileDialog, the path of those two files are written in the ListBox as Items.
3- After getting the path of those two files , I would like to load them into those two richtextboxs .
The problem is that I don't want to specify the richtextboxs names in order to load the files . What am I saying ? I.E : I don't want to use that code : "RichTextBox1.Loadfile(Listbox1.items.item)" When I debug my application : everything goes well , only when the listbox items are loaded in the richtextboxs control I get only one file loaded on those two richtextboxs. Right Now I have written these codes :
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
OpenFileDialog1.Filter = "RTF Files (*.rtf) |*.rtf"
[Code].....
View 5 Replies
Nov 24, 2010
I'm having one basic aspx script that needs to load some "plugins". Every plugin has its own settings and it should perform different logics. What i'd do in php is create a class for each plugin, load that class, pass the settings file to it and call some method on that class that would give me some output. But is it even possible in vb.net? I'd need to have multiple files with multiple classes, load those files, depending on the plugin name and call some method on them to parse that plugin's settings.
View 2 Replies
May 2, 2010
I am creating a program that uses XML files and saves them automatically when the user updates information. When I have XElement.Save("Name.xml") it saves the XML file in the same directory as the EXE. What I am trying to do is allow the user so select the location of the XML. Also is loading XML files through the loaddialog box basically the same way as XElement.Load("Name.xml")?
View 1 Replies
Oct 10, 2009
I have a media player in which I would like to load files from a playlist to play in the player.
Dim song As String
Dim i As Integer
Dim ItemCount As String
[Code]....
I have managed to get the songs from the playlist into the listbox but using the for loop above it it only play the first song in the list.
Is there some code I can use in the for loop to tell it to wait until the song is finished playing before is processes the next iteration.
View 1 Replies
Apr 21, 2009
this is the code i have on form load: textbox1.text ="C:Documents and SettingsOwnerDesktop"
here's the code to load the listbox:
ListBox1.Items.Clear()
Dim filepath As String = (textbox1.text)
My.Application.DoEvents()
Try
For Each file As String In My.Computer.FileSystem.GetFiles _
[Code]...
now what this does is load the files w/out the file path or extensions , but, it loads the files in the subfolders as well . i just need the desktop files to load in the listbox, not the subfolder files
View 2 Replies
Nov 9, 2011
I have an VB application in which all UI controls are displaying in english language, i wanted to convert them into Chinese language.I was able to create Chinese locale specific resource files which has file extension as zh-CHS using a tool,
View 2 Replies
Feb 14, 2010
i was thinking yesterday that is how do i load program instalation files thro vb.net 2008 like when i click a button in vb .net It instals a program within the vb.net
View 4 Replies
Aug 9, 2009
i can load files in a listview for a folder in my app.. what i would like to do is, when double clicking the file , to have it open in the default application for that file.. also , i would like to be able to view the files within a folder , if i double click a folder....
trujade.i like:
VB General
google
fast cars
[code]....
View 8 Replies
Apr 25, 2009
I uploaded a folder with text files to the internet. i want to be able to load my app listbox with those text files.
View 1 Replies
Jul 15, 2010
I have a text file that has a list of image files. I am trying using a loop to load these files onto a webbrowser control and then print them. The code is as following:
Public Function printimages()
Dim webby As New WebBrowser
Dim sr2 As StreamReader = New StreamReader("\fileshareapplicationsattaches.txt")
[code].....
View 12 Replies
Sep 28, 2010
I created a visual basic express edition project and when completed pressed Save All. Then proceded to work on another version and saved that one as well, Now the project cannot find the original version which is the only working one. I have all of the projects backec up but they will not load. Where do I have to move the files so Visual basic can find them?
View 1 Replies
Jul 10, 2009
i have always seemed to have found the default windows notepad useful. no matter what type of app i create that saves, edits, and does everything notepad does plus tons more, i always seem to end up using notepad one way or another.. until recently..
i finally designed my own custom notepad. pretty much all the features, minus a few, and plus a few.. i like the new features. ;o)
[Code]..
View 11 Replies
Feb 23, 2010
Okay I'm making a song organizer and I have a program that will load the files in a folder into a box and display the songs info into a list view. That part works fine but when you click the button to make it do anything it will get the variables that it need from the tags on the cells for each song but for some reason the one for the Album just disappears... I tried having it just show the value in a message box and it works fine. Just when I try to combine it with another variable then it wont show at all. Heres my code
[Code]...
View 10 Replies
Jan 8, 2010
In class i saved my program in with load of other test programs for the same assignment and got everything mixed up i finally figured out what was what and loaded the program in Visual Basic. Now my program doesn't recognize one of my forms when i try to access the design view of it. I hit run for the hell of it and the program runs with errors of course but the form1 "the missing one" shows up with all the buttons etc and i can use it.
Heres the link to the files. [URL]
View 3 Replies
Jun 13, 2010
How can I do it so every time the user loads my application it will automatically (without prompt, or user selecting) upload all the files in a folder i select beforehand and add them into ListBox1
View 16 Replies
Dec 8, 2011
I have some code to execute code at runtime...
Here is the main
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
If TextBox1.Text.Trim <> "" Then
If TextBox2.Text.Trim <> "" Then
[code]....
When the button is pressed, it all works and the following files are created: yahoo.dll and yahoo.pdb My question is this: What is the code to load the already compiled yahoo files to execute the code again, without having to recompile the code?
View 1 Replies
Mar 20, 2011
I want a rich text box to display public variables like (pizza toppings links etc that have been selected in other forms) these variables have declare in a module. But I want the rich text box to display these variables as soon as the screen loads ( a on form load event) if you know what I mean.
View 1 Replies
Aug 24, 2009
I would like to load a default created image at start. But seems to not be working on form load any ideas.[code]
View 5 Replies
Feb 19, 2012
Whenever i start my form (window application) and link from one form to another, my data doesn't load but when i close the respective form and open it again , it appear. Can i know where is my problem ? Thx in advance. Here's the code snippet :
Private Sub AccessControl_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim sqlstring As String = "select * from depttable"
Dim connection As New SqlConnection(db.cs)
Dim dataadapter As New SqlDataAdapter(sqlstring, connection)
[code]....
View 2 Replies