Topics
-
- 1 reply
- 665 views
I've created two query strings to get data from various tables in a database. I would like to fill two table tables in a dataset with the data from each query string, e.g. sqlStr1 data into dsTable1 sqlStr2 data into dsTable2. I've tried the following and many other combinations but none seem to work. con.Open cmd.CommandText = sqlStr1 da.Fill(ds, "dsTable1") cmd.CommandText = sqlStr2 da.Fill(ds, "dsTable2") con.Close I don't need any interoperability between the two tables. I'm placing the data in separate tables simply for the sake of clarity. I would also prefer not to combine the two query strings. Thanks, Ted
Last reply by TedN, -
-
- Leaders
- 1 reply
- 826 views
I have created and application in visual basic.net with a tab control on the main form. I am dynamically adding tabpages to this control as needed when the application is running. I want the newly created tabpage to be the top one/the selected one. Though no matter what I try every time a new page is added to the tabcontrol it defaults to the first page. How can I Correct this programmtically using visual basic.net 2003. So the page that is selected is the one just added. Any help offered is greatly appreciated.
Last reply by snarfblam, -
-
-
- *Experts*
- Leaders
- 15 replies
- 4.8k views
We'll be updating the forum software today (Dec. 15). We will have to shut the site down for a few minutes while we do. We've managed to keep the style looking basically the same. The only things you may notice are some advanced features throughout the forum and a skyscraper banner to the right. If anyone encounters any bugs after the upgrade, please let us know. Thanks! Dennis
Last reply by MrPaul, -
-
i'm not sure where to post this so ive put it in general. Basicly i'm building a web developer (html/php editor with precodes etc) and i also wrote a debug system that automaticly catches errors etc. Now i was wondering if its possible to monitor the memory use of my application in orde to shut it down automaticly on memory leak? Is this even possible in .net and what library should i use? thx in advantage, Anti
Last reply by Ginanity, -
- 0 replies
- 1.4k views
I keep getting this error when i set the reportsource of the crystal viewer. I should load a cr9 report that is set to save data so when the user opens it up they will see the report with data from the last time it was run. when i open up the report in crystal 9 directly no errors. when i open other cr9 reports in the viewer no errors. I'm at the end of my rope on this one. i installed the latest service packs and hotfixes, tried loading the report into a report document and setting the report source to that document, tried load it to the viewer directly i have no idea what to try next.
Last reply by barski, -
- 1 reply
- 510 views
Hi i am using fusion flash charts in my project the way they are created is i have a basic class to create an xml string which is passed to a RenderChart function which creates the graph. The xml file can contain lots of different parameters such as height width colours etc but they are not all necessary for each chart so i am just wondering if anyone has any suggestions about how to go about correctly designing this class specifically how I will handle so many possible parameters without having to write functions for each combination Thanks in advance Tim
Last reply by Nate Bross, -
-
- Leaders
- 4 replies
- 775 views
Dear All, Could anyone tell me what the, apparently unused, designerPlaceholderDeclaration is used for, please? Microsoft seem to want us to leave it intact, but I've tested code with it included and excluded, and it doesn't seem to make the slightest bit of difference... Many thanks in advance Paul.
Last reply by mandelbrot, -
-
- 0 replies
- 887 views
I have a grid view that is binded to a dataset. I am trying to implement sorting on the grid. I have succeeded in allowing sort to occur, the only problem that I am having is to specify what sort option, i.e. ASC or DECS to tuser. Here is the code that I am using: Protected Sub gVGroups2_Sorting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewSortEventArgs) Handles gVGroups2.Sorting Dim myView As DataView dsData = Session("GridData") myView = dsData.Tables("Groups").DefaultView Select Case e.SortDirection Case SortDirection.Ascending myView.Sort = "Group_Name DESC" e.Sort…
Last reply by mike55, -
- 0 replies
- 867 views
Hi The problem I am facing is to take a Word Document, insert a new 1st page (which will be another Word Document with a single page), and save the new version as a PDF. I have found a solution using VS 2005 and Office automation, by programmatically opening Word 2007, using the Range.InsertFile method to insert the new document, and then using the new WdSaveFormat.wdFormatPDF to save as a PDF. However, this solution would not be ideal seeing as the application is a server side component which is unattended, and this goes against what Microsoft advises for Office automation. Would the same functionality be possible with VSTO? Unfortunately for me I'm using…
Last reply by joker77, -
- 0 replies
- 3.4k views
I am scanning a news paper. I am displaying this scanned image on my webpage. When my user points his mouse on each news colums should get highlighted. And when he clicks a window should popup displaying a detailed view of that particular news Item. How I can do this using asp.net and C# ?:confused: Give me your ideas & Suggestions Thank u all in advance
Last reply by sureshcd10, -
-
- *Experts*
- 5 replies
- 2k views
Where can I find a nice flat combo?
Last reply by cash, -
-
-
- Leaders
- 2 replies
- 966 views
I realize the GUI is meant to be kept working all on the same thread. But, in this project I'd really like it if a new permanent form would show after another thread tells it to do so - and then that non-GUI thread expires. The easy way around this would be to actually have a Hidden form up constantly in the program, and invoke the Visible property on it when it's needed. But is this a good and common practice? So far, all I can do is create a form that disappears when the thread that created it expires, which makes sense because the form must not be attached properly to the GUI thread. I do use Invoke to Show the form, but that wont make a difference because It's …
Last reply by NeuralJack, -
-
- 5 replies
- 932 views
Is it possible to generate an entire <DIV> at runtime using a string with HTML in it? If so how?
Last reply by mandelbrot, -
- 1 reply
- 763 views
Ok so I have a user control with a button and a label. When you click the button, it writes something into the label's .text field. Nothing unusual up 'till now. I load this control dynamically in a page, on a button_click event. When I click the button in the control, it doesn't change the label text. If I load it on page_load, instead of the button's Click event, it works. I have never been familiar with aspn's postbacks and all... Please help me, see attached files. Later Edit: You may also use Ajax Extensions as a resolution for this. WebApplication2.zip
Last reply by mandelbrot, -
-
- Leaders
- 4 replies
- 958 views
I've got the below line of code in my program that checks if the program is running in Debug mode. #If DEBUG Then msgbox(idNum) #End If If I compile in debug mode and run the program it gives me my message box. However if I have release mode selected in the configuration manager and then run the program from the IDE I don't get my message. I figured that whenever you ran a progrom from the IDE it would automaitcally be considered to be in debug mode, is this incorrect? If so is there a way to tell if you're running from the IDE. Also I rarely use debug checks like this in my programs. Is there any point to ever be in debug mode if you don't use any de…
Last reply by amir100, -
-
-
- Administrators
- 3 replies
- 713 views
Dim ReadUsers As New OleDb.OleDbCommand("SELECT Email, FirstName, LastName FROM Users WHERE GroupID = '" + MyID + "'", MyConnection) Dim MyReaders As OleDbDataReader = ReadUsers.ExecuteReader While MyReaders.Read MsgBox (MyReaders("Email").ToString) End While Hi, The above code works fine, just I have 1 question: When I SELECT Email FROM USERS WHERE GroupID = blah How can I detect that how many fields have been selected?! Thanks:)
Last reply by PlausiblyDamp, -
-
- 0 replies
- 855 views
Howdy once again one and all, It's been awhile since I have posted to the forums here and I had a general question to ask so thought I would seek the information for all of you good folks. While my MSDN Professional subscription still has some time before it expires, I wanted to find out from those who have a subscription exactly how the renewal process works. I was not sure if Microsoft would have a renewal option within your MSDN account so that when you logged into it you could renew it or if you needed to purchase a renewal from a third party and then update your MSDN account with a new license number or exactly what happens toward the end of the subscription ti…
Last reply by irasmith, -
error PRJ0019
by Guest -OniKaze--
- Administrators
- 4 replies
- 777 views
Does any1 knows how to solve this error in VB .Net? error: error PRJ0019: A tool returned an error code from "Performing Registration" Tnx
Last reply by PlausiblyDamp, -
-
-
- Administrators
- Leaders
- 5 replies
- 867 views
Hi Everyone! I was jsut wondering if there was a way to bring a form tothe front of the desktop, just like the shutdown menu on windows xp. i mean like for example when you click on the turn off computer button in XP you have to click on the dialog box to chose what you want to do (shutdown, restart etc) and you cant click on anything else until this has been done. i wan a form like this. the reason for this is my family take any chance they can to get on my computer because it is the only one that is good in my house hold. want my program to be like that because i am going to have it with 4 boxes where you have to enter a pin number in order to exit out of it. P…
Last reply by snarfblam, -
-
-
- Administrators
- 2 replies
- 1.4k views
Hi: We are combining alot of old applications which each have their own tables and structures within those tables...not really compatible enough to combine straight out...but they could all use the "text" or similar sql server type and be put into one or two "super" tables with a type to differentiate them. On one side, this would vastly simplify our schema and allow the data to be centralized. On the other, its not intuitive and could be confusing if we fall behind with our database schema documentation. But more importantly, having all of these applications hitting these one or two tables puts a fair amount of stress on our server. This table might look som…
Last reply by lothos123452000, -
-
Who's Online 0 Members, 0 Anonymous, 54 Guests (See full list)
- There are no registered users currently online