I need to write a String Array to a field in a MSSQL Database, however, I'm not sure how to do the connection from javascript to the backend VB.NET to send the data to the DB. Do I need to create a web service and use ajax/json?
I have a little problem regarding the use of DBNull, NULL etc. in VB.net in combination with SQL Server 2k.
More specifically, I want to do something along the lines of this:If x = 0 Then
x = DBNull.Value where x is declared by Dim x as Object. I would rather use Double, but I can't assign DBNull.Value to this, and using Object works quite well, too. But every time I hit this condition, I get an exception: A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll This is not a major show-stopper, since the database value I write x to in the next step, is NULL by default - most of the time! So I need the ability to write NULL to it. If that was not the case, I would have been able to work around this by catching exceptions, I think - but sadly, this isn't really of use then.
i have a notification j-query plugin .. i taste it in my page (working 100%)but when i want to use it in a event SqlDataSource1_Deleted with the response.write method it does not work
Protected Sub SqlDataSource1_Deleted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs) Handles SqlDataSource1.Deleted Response.Write("<script type='text/javascript'> showNotification({message: 'This is a
I have called a script in my .net code which creates a .csv file and writes into it. The file is created and the program is executed without errors but the created file has nothing written into it. I'm able to create and write into the file from .net. Also, when the script is run separetly writes into the file correctly but not when it is called from .net. what could be the reason...
I am trying to return a javascript function using response.write in an aspx page. The problem is that the function i am returning has lots of quotes and they are conflicting with the repsonse.write syntax. Here is a sample code:
Response.Write(" If hello.StartsWith("H", StringComparison.InvariantCultureIgnoreCase) OrElse hello.StartsWith("W", System.StringComparison.InvariantCultureIgnoreCase) Then")
This is giving me a problem as the quotes inside are cutting off the response early. Is there a better way to do this?
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load clave = Request.QueryString("cve") If clave = Nothing Then
i am asking that can i use c# language to implement "actions" fired on "click side events" such as mouse over the reason for this stupid question is that i remember some syntax of registering functions for particular events of formview, which are call when the event occurs (yes there ispostback involved" is something like the above possible for client side events using c# or even vb.net
It is web based and conects to remote SQL Server If i run a query on database connecting using Sql Server management studio this query give correct results which is to find minimum value in a column called TIME1.
The query on database is SELECT MIN(TIME1) AS Fastest FROM Athletes WHERE (ATHLETE = 'Joe Bloggs') AND (Session = '600m')
This works great showing correct result under Alias column name Fastest
My problrm is i want to get this result from code behind page
here is Query in code behind page
SqlDataSource1.SelectCommand = "SELECT MIN(TIME1) from Athletes WHERE (Session ='600m') AND (ATHLETE = 'Joe Bloggs')"
I need to extract min value of TIME1 and pass it to a variable
i have problem with connecting Vb.Net with MSSQL database i have a shared host for windows server and i have to insert each ip trying to connect with the MSSQL database through my program and its impossible to insert each ip to the Whitelist so while i was thinking for a solution an idea came to me that i can change the ip address of any user for the program to a unique ip such as ( 174.162.45.23 ) and i whitelist this ip i do this or a solution for this problem because i cant continue my project with this problem
Dim cnn As OleDbConnection connetionString = "Provider=SQLOLEDB; Data Source=****; Initial Catalog=****; User ID=***; Password='****';" cnn = New OleDbConnection(connetionString) Try cnn.Open()
[Code]...
I have been working with this for awhile, and I can't get it to work, I have all the correct names where the connection string is, but I just can't get it to work. It is telling me the server does not exist, but I am using a hosted solution that I know is up.
Am using vb.net 2005. when vb starts i try to connect to mssql server uut i cant. unlike mssql7 desktop edition there is a consol in the start menu where one can configure mssql, creat database, tables etc.
We are trying to view reports with MS SQL 2008 reporting services for a custom web application.We have MS SQL 2008 Express full install. We've tested the application from our IDE and it works. Once published to the web server we get the following error:
404 - File or directory not found.The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.I syuspect this may have something to to with IIS 7.0 setting, since it works in the IDE but not on the server, but I have been unable to figure out what the issue is.Here is our code.[code].....
I wish to save an image in a mssql database.My function is: Public Sub CalcNomogram(ByVal uid As String, ByVal mNavn As String, ByVal mId As Integer, ByVal ruhed As Single, _ByVal valgteDim As String, ByVal img1 As Image)
I'm watching tutorials about creating Web Site and about controls.I think I added SQL Database to the project (it's not empty) properly. Suppose it has two columns: FirstName, LastName.I have TextBox1, TextBox2 and Button1 on the web site form.I enter any integer number (5, 10, 15 or whatever) into TextBox1. I want to press Button1 and get a value of 5th person (10th, 15th or whatever) from SQL Database into TextBox2.Who can help me with that? Should I read about ADO.NET and use something from there?Later I want to use VB for work with that strings.
people plix help me with ASP code for login. am using MSSQL i want users who have registered using their emailadress and passwords to be able to login.
I have designed a project that connects to MsSql Server 2008. The local machine that I use to create the software is able to connect to the database but when I try connect from another machine remotely, It doesn't find the server.This is the connection string I'm using Dim Connection As New SqlConnection("Server=MyServer-PC;Database=MyDatabase;Integrated Security=True")
I created a project in vb.net and I'm able to connect to an Mssql server remotely using the host machine name. However, I can't connect using the IP Address. This is my connection String.
i am trying to create an vb.net program to transfer or copy tables from my access database to an MSSQL DB.I got it working to copy from MSSQL to access but not the other way around.
I need to save pictures in my database, my database is MSSQL as of now, my code for getting the picture is this:
Private Sub browsepic_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles browsepic.Click With dialogpic 'Open File Dialog sa toolbox .InitialDirectory = "C:UsersCAMILLEPictures"
I have one textbox basically the user is going to enter in a 9 digit number or letters. From there I want to have a buttonclick event that validates this against 2 columns in a MSSQL Database. First to check if the number exists, next to check if it is active or inactive.
There are about 27000 rows of numbers so my main question is what is the best approach to handling something like this.
Should I create a view and validate in the click event. Should I create a stored procedure in sql that takes an input parameter and call it in the click event.
I was also reading about storing the information in a dataset however with that many records i am assuming that is going to be a slow process.
I have 2 problems, this may sound odd but is there an easy way to store and read vba/vbs inside a database (MSSQL)? Second problem, how to create vba/vbs so i can use it to interact with my own software?
I have written a web usercontrol (ascx). Inside, there is a Panel that I want to show/hide on click of a hyperlink inside the usercontrol. Normally, this is easy just by doing something like this (the onclick attribute is added to the hyperlink on prerender):
I have recently started programming in vb.net (or trying to) I have made a application that gets some info from a mssql server. I can get the information perfectly, but one of the items called "date" i get in to my program is a date field in UNIX time. Is there a easy way to convert that into GMT time?[ code]
My website connects to a Microsoft Access DB at the moment, im about to upload it to the internet - its a VB.NET web application but i'm advised to convert it to MySQL or MSSQL for better performance.How would you recommend I export the DB ? there isn't too much data in at the moment so mainly all of the tables and fields.