82 Posted Topics

Member Avatar for harinisuresh

That is by design. Cross-frame scripting is a vulnerability. The design is to keep *skimmers* from hosting a bank's web page in an iframe and grabbing the user's personal data.

Member Avatar for john.knapp
0
238
Member Avatar for kindofsudden

See if [this](http://stackoverflow.com/a/10597775"How to update the Dataset to reflect an added column in the data source without deleting the adapter?") works for you.

Member Avatar for john.knapp
0
416
Member Avatar for jc.lembenguiste

[Here](http://msdn.microsoft.com/en-us/library/wzabh8c4.aspx) is a link to the walk-through at MSDN. Google: `msdn visual studio 2012 database project`

Member Avatar for john.knapp
0
208
Member Avatar for Sevyt

Try this: Private Sub btnSaveText_Click(sender As System.Object, e As System.EventArgs) Handles btnSaveText.Click ' assuming the form is the parent container of the textboxes ' otherwise use me.<container>.controls For Each ctrl As control In me.controls If TypeOf ctrl Is Textbox Then ' alternative check for ctrl.Name here If (Not(ctrl.text is nothing)) …

Member Avatar for Sevyt
0
119
Member Avatar for Dani

> Are you trying to get answers to your own questions? Yes. I've only been a member for a month, but the answer I needed at the time was here. > What value do you get from helping people? I still need help myself, just trying to balance the equation. …

Member Avatar for john.knapp
0
272
Member Avatar for Lethugs

[Transaction Details] is the table he wants to pull from anyway, not [Transactions]. I almost have the data, but having trouble with the outer joins/subquery select. (a bit over my head, it's been years since I did any complex queries. Here's what I have so far: SELECT Description.Dgroup AS Description, …

Member Avatar for Lethugs
0
315
Member Avatar for Neethaa

I think tinstaafl is on to something. What is the datatype for the CompanyID column in the Access database? Usually ID fields are auto-number integer values, but it looks like your SELECT query uses a text value in the WHERE clause (Line 9) `where CompanyID='" & txtnum.Text & "'"`

Member Avatar for Reverend Jim
0
599
Member Avatar for bprosic
Member Avatar for Lethugs

Export a script for your database please. In VS2010, go to server explorer, right-click the server and select publish from context menu Save, zip, and attach those scripts - make sure you script all objects

Member Avatar for john.knapp
0
189
Member Avatar for diafol
Member Avatar for James.M.Dallimore
Member Avatar for john.knapp

Consider this: I have a user-defined stored procedure which returns a bit value as OUTPUT. In my calling code I want to check that value. I define it in my code as follows: Dim retval As New SqlParameter() retval.ParameterName = "@return" retval.SqlDbType = SqlDbType.Bit retval.Direction = ParameterDirection.Output DataCommand.Parameters.Add(retval) DataCommand.ExecuteNonQuery() ' …

Member Avatar for john.knapp
0
532
Member Avatar for ponkhiraj

Use a nested For loop. *please step through this code, I wrote it off the cuff without the IDE, and without testing, it may have undesired "features"* ' this will get you started, but you'll need to figure out ' how you're going to handle the rest when you run …

Member Avatar for Reverend Jim
0
557
Member Avatar for pratik65
Member Avatar for B1ts
0
320
Member Avatar for Galbatorix

[Per Microsoft kb](http://support.microsoft.com/kb/324733 "http://support.microsoft.com/kb/324733"), you can't roll it into the application installer package using the native deployment package tools; you can however, use the [Setup.exe Bootstrap installer](http://www.microsoft.com/en-us/download/details.aspx?id=24556 "Microsoft .NET Framework version 1.1 Setup.exe Bootstrapper Sample") to install the .Net Framework and then kick off your app installer. **BE AWARE!!!** That …

Member Avatar for Galbatorix
0
286
Member Avatar for john.knapp

I clicked through the tweets on [this post](http://www.daniweb.com/software-development/vbnet/threads/441223/how-to-make-short-code-in-vb.net "How to make short code in VB.Net") and found the post had been tweeted by the C# tweeter, although it was in the VB.Net forum... Feature? ![DaniwebTweet](/attachments/small/3/DaniwebTweet.jpg "align-left")

Member Avatar for Dani
0
156
Member Avatar for Stuugie
Member Avatar for jeel.nayak.52

A quick glance at the code shows you declaring your DataAdapter and DataSet as da1 ds1 respectively, but your code is using da and ds (without the "1")...

Member Avatar for john.knapp
0
175
Member Avatar for pratik65

Maybe I'm not understanding your requirements, but if your Gr_No is already an int value; just add up all the int values and divide by the total number of values - that will give you the average value - then just display that value (and/or update your Obtained_Marks field).

Member Avatar for Dili1234
0
1K
Member Avatar for Kukonangagila

Not much detail here.. what do you have for code so far, and what is the problem you're having?

Member Avatar for john.knapp
0
129
Member Avatar for Kukonangagila

Do you get an error message when trying to browse the databases? What happens if you type in the database name instead of browsing? One way to test your db connection is to use the steps [here](http://www.drdev.net/article10.asp "Setting up an OLE DB connection to a SQL Server database"), and use …

Member Avatar for john.knapp
0
310
Member Avatar for Xeta
Member Avatar for tinstaafl
0
281
Member Avatar for lymwale.pablo

Change your DataSource string - you need only the opening and closing quotes. From: `connstring = "Data Source=.\SQLEXPRESS;AttachDbFilename=""C:\Users\Pabzz\Desktop\CSRP 10.20.12\Main\Database1.mdf"";Integrated Security=True;Connect Timeout=30;User Instance=True"` To: `connstring = "Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Pabzz\Desktop\CSRP 10.20.12\Main\Database1.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"` Try that and see if it helps.

Member Avatar for tinstaafl
0
686
Member Avatar for Nutster

As far as I can tell there are no direct equivalents to those particular preprocessor directives. There is an interesting writeup [here](http://blog.syntaxc4.net/post/2009/10/08/preprocessor-directives-design-practice.aspx) on using the VB.Net ppd's though.

Member Avatar for john.knapp
0
193
Member Avatar for Blaze_Razgriz

Run your application in the debugger and step through everything until you know exactly what line throws the exception. Per MSDN library the 'System.ObjectDisposedException' is defined as: `The exception that is thrown when an operation is performed on a disposed object.`

Member Avatar for john.knapp
0
466
Member Avatar for pratik65

The solution that comes to mind immediately is to host the database on an internet accessible machine, and set your Data Connection accordingly. Another possibility is to script the database objects and run that script on each new machine (you would also have to run it again when you alter …

Member Avatar for john.knapp
0
233
Member Avatar for john.knapp

So when I attempted to tag an untagged article, I received a message about not having permission to delete existing tags - of which there were *none*.... Is this a feature or by design? Thanks, JK

Member Avatar for Dani
0
133
Member Avatar for JAVA-Shake

[Click Here](http://www.vbforums.com/showthread.php?555134-RESOLVED-How-to-insert-symbol-subscript-superscripts-and-mathematics-equation-in-VB-form) Google: vb.net subscript font

Member Avatar for john.knapp
0
65
Member Avatar for ms061210

Why multiple reader instances? If you declare your DataReader outside of the Try block, you can re-use the same instance - you just have to close() it after each read. I don't use the OleDBDataReader so I'm not sure whether you have to also Dispose() the reader instance each time, …

Member Avatar for john.knapp
0
155
Member Avatar for UKnod

Couldn't you check the version and then conditionally branch from there? I found an example here: [Click Here](http://www.vbforums.com/showthread.php?402020-FAQ-s-OD-How-do-I-programmatically-determine-the-version-of-an-Office-App). Some sample code to look at might be helpful... By the way, what versions are you trying to support? The original post states Word 2008 and Word 2010, but Word 2008 is …

Member Avatar for john.knapp
0
187
Member Avatar for Lhark

I would look at the ASP.Net membership web project for ideas, you may even be able to use that project plus SQLExpress as your membership platform, and have to code only the particulars for specific fields/properties/methods applicable to your unique requirements. In other words, how much do you have to …

Member Avatar for john.knapp
0
131
Member Avatar for john.knapp

Hello all. I'm using an API function via PInvoke, with the interesting data being returned to a pointer. My application crashes when attempting to free the pointer. If run with no breakpoints, the application hangs on Line 61 below. After the first run, it will then throw a memory exception …

Member Avatar for john.knapp
0
792

The End.