Topics
-
- 1 reply
- 983 views
Hi, 1) Can we update/insert only diffrential data in using sqlbulkcopy feature of ado.net.If yes can you please tell how. 2) I have create 2 xml documents(1 new ,1 old) which i use to populate dataset.can i get information about a) added records b) deletedrecords c)updatedrecords Thanx
Last reply by lightyear, -
-
- Leaders
- 4 replies
- 1.9k views
Another problem related to transparency.. I need to add an "adobe like" splash screen to my app. I basically need to show an alpha blended, PNG image with shadows. and non rectangular borders. After reading a lot of posts in different forums, i decided to override the OnPaintBackground() and OnPaint() methods of the form. protected override void OnPaintBackground(PaintEventArgs pevent) { } protected override void OnPaint(PaintEventArgs e) { Image m_imgSplashScreen = Image.FromFile(m_strApplicationFolder + "splash_screen.png"); Graphics gfxGraphics = e.Graphics; gfxGraphics.DrawImage(m_imgSplashScreen, new Rectangle(0, 0, this.Width, this.Height)); } This code wo…
Last reply by sebastianodg, -
-
-
- Administrators
- 1 reply
- 1.2k views
Hi, I have stored my aspx pages (which do not contain a codebehind file i.e., server side code on aspx page itself) in the database. Now I read that aspx page into a string and I want to pass this to the .NET engine to produre an html output. can somebody please guide me in for this. -- Regards, Sandeep Bhutani http://net4techies.somee.com
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 1.2k views
I seem to remember reading the MSDN somewhere that there was another method to download files from URIs other than using the webclient object. I'm trying to download some raw php files but every time I use the webclient object the server interprets them as an HTTP request and instead serves the default web page that the php file builds and not the php code itself. Any suggestions? Using .NET 2005
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 5.1k views
Hi, At the moment I am using the following code to populate a datatable using a stroed procedure, which return a large amount of information from my MS SQL table. What I would like to do is then apply an SQL select statement to the datatable so that I can filter down the data in the datatable further. The reason why I want to do this is instead of having a large number of stored procedures for each senario, is this possible Dim myDA As New OleDb.OleDbDataAdapter("spQryParentComments", myDB.myConn) myDA.SelectCommand.CommandType = CommandType.StoredProcedure myDA.SelectCommand.Parameters.Add(New OleDb.OleDbParameter("@projName", OleDb.OleDbTy…
Last reply by PlausiblyDamp, -
-
- 6 replies
- 8.7k views
I would like to have a RadioButtonList where each ListItem has associated image and text. radiobtn img text radiobtn img text With the image and text aligned with the button, and the images and text of each button aligned as well. But any attempt to embellish a ListItem gives me errors that "ListItem cannot have children" or "Code render not allowed here" or the like. The fact that I can't find anything like this anywhere on the web makes me think that everyone does this kind of thing in some other manner and that it's so obvious that no one feels any need to discuss it. This is all in the context of one column in a DataGrid. How would you accomplish this…
Last reply by lordbah, -
-
- Administrators
- Leaders
- 2 replies
- 1.4k views
Hello, I've been asked to validate the content of a text box to make sure it's only alphanumeric. Now I have 2 question on this from you experts: 1. alphanumeric value needs to start with alpha or it can start with numbers also? 2. I wrote the following code to test my entry but it's somewhere wrong I cannot understand! How can I go through each character to make sure it's alphanumeric? For MyLoop As Integer = 0 To PasswordTextBoxX.Text.Length - 1 If PasswordTextBoxX.Text.Substring(MyLoop, 1) <= "a" Or PasswordTextBoxX.Text.Substring(MyLoop, 1) >= "z" And _ PasswordTextBoxX.Text.Substring(MyLoop, 1) <= "A" Or PasswordTextBoxX.Text.Substring(…
Last reply by snarfblam, -
-
-
- Administrators
- 1 reply
- 726 views
Hi there, I'm stuck with a problem formatting a datetime value: Dim thisdate As DateTime = #10/15/2005# Me.Label1.Text = Format(thisdate, "mm/dd/yyyy").ToString Returns 00/15/2005 setting the month to 00 instead of 10 I must be doing something wrong, for I don't find any mentioning of this problem. I use VB.NET Visual Studio 2003 Any help is more then welcome !
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 882 views
Hi All, I am having a trouble in RichTextBox Control in Windows application,I have three buttons bold,underlined and Italics for the RichTextBox.I am selecting a sentence which is partially regular and partially bold . After selecting that sentence , i am trying to convert the selected sentence into italics , the below code is not giving me the expected output . please help me to fix this issue . Note: 'rtfRichText' is RichTextBox private void btnBold_Click(object sender, EventArgs e) { FontStyle style = rtfRichText.SelectionFont.Style; if (rtfRichText.SelectionFont.Bold) { style &= ~FontStyle.Bold; } else { style |= FontStyle.Bold; } rtfRichText.SelectionFon…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 2 replies
- 1.1k views
I am using BackgroundWorker and create a reference to excel. Problem is I can not seem to release the reference. It still shows up in task manager and does not release until the application closes. Any suggestions?
Last reply by oprogrammer, -
-
-
- Administrators
- 1 reply
- 802 views
Hello I have an application that sometimes requires database updates. however some stored procs updates must not be run on all the servers. I've tried something like: if @@servername = 'MyServer' begin alter proc MyProc ..... end But this doesn't work. I also tried using dynamic sql but also didn't work. Thanks
Last reply by PlausiblyDamp, -
-
- 4 replies
- 935 views
I am using the following Stored Procedure and I have seen it work. I have the database entries to prove it... however, most times the Catch block is triggered with the error: "Procedure 'Insert_Results' expects parameter '@errMessage', which was not supplied." Can anyone see why that would be? I am clearly creating and passing in a parameter named @errMessage. With cmd3 .CommandType = CommandType.StoredProcedure .CommandText = "Insert_Results" .Parameters.Clear() Dim param1 As New SqlParameter("@programName", SqlDbType.VarChar) param1.Value = PROGRAM_NAME .Parameters.Add(param1) Dim param2 As New SqlParameter("@statusMessage", SqlDbType.VarChar)…
Last reply by Nate Bross, -
- 2 replies
- 1k views
Hello folks. Just wondering, is it possible to access a PS2 laser scanner (code bar reader) through ASP .NET?
Last reply by EFileTahi-A, -
- 1 reply
- 1.2k views
Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0246: The type or namespace name 'Test' could not be found (are you missing a using directive or an assembly reference?) ---- The application is working normally on my local computer, but when i upload to server i receive the error Compiler Error Message: CS0246..., i'm uploading exactly same working code from my local computer to the server, so what can be the reason why i receive this error, i have see on Microsoft site, i do…
Last reply by prvut, -
i need to calculate the sum value in the datalist .any body tell me the code in C#
Last reply by Nate Bross, -
-
- Administrators
- 2 replies
- 1k views
We have two tables that I need to write a query for. I am a Software Developer, and we do not have any Database Admins here. TableA: |_varchar(50)_|_char(15)_|_char(10)_|_varchar(99)_|_DateTime_| |_Employee____|_ModelNum_|_Station__|_Status______|_TestDay__| TableB: |_char(15)_|_varchar(50)_| |_ModelNum_|_ModelName___| Though no primary key exists for the two tables, TableA's ModelNum *does* map to TableB's ModelNum. How would I get: TableA.Status, TableA.ModelNum, and TableB.ModelName WHERE (TableA.Station='Testing') AND (TableA.TestDay between (Date1 and Date2)) AND (TableA.Employee from TableA.Station='Building') Here is the scenario: Employee…
Last reply by joe_pool_is, -
-
-
- Leaders
- 3 replies
- 2.2k views
On my form, I have a ToolStrip that contains a ToolStripLabel that has it's 'Text' property set to "C:\". When I run the following code, the "diDirectory.GetFiles()" method throws an "Illegal characters in path." exception. DirectoryInfo diDirectory = new DirectoryInfo(tsPathLabel.Text); FileInfo[] Files = diDirectory.GetFiles(tsFilter.Text); this.SuspendLayout(); foreach (FileInfo File in Files) { ListViewItem lvi = new ListViewItem(new string[] {File.Name, File.Length.ToString() }); listView1.Items.Add(lvi); } this.ResumeLayout(); This is what is disp…
Last reply by snarfblam, -
-
- 0 replies
- 1.9k views
Hi All There is an known bug with the vb listview not displaying the focus rectangle when the listview has focus if you have the 'Hide underlined letters for keyboard navigation until I press alt key' selected in Display-Effect. Also this only happens if you have more than one object on the same form. Does anybody know of away to override this? force the focus rectangle to redraw? I do notice that if I click on a record using my Shift key then the focus rect will remain on. Kind Regards -Paul
Last reply by Data Danger, -
- 0 replies
- 758 views
I have a application lyk that A /\ b c /\ /\ d e f g...... and like that so mean i have a parent node and each parents node has maximum two children nodes ,,,,, SO I WANT A RECURSIVE FUNCTION TO COUNT THE NUMBER OF RECORDS OR U CAN SAY THE CHILD NODE OF THE DESIRED NODE(IN THIS CASE PARENT NODE)....WITH THE SQL STORE PROCEDURE..... So any HELP ME IN THIS......
Last reply by ashishashish, -
- 1 reply
- 1.2k views
Hi i made a form in which user insert its details ,,,, so i need that every time user fill that form it assigns a Unique Id to that user for use.... can anybody help me in this,,,:confused:
Last reply by Nate Bross,
-
Who's Online 0 Members, 0 Anonymous, 54 Guests (See full list)
- There are no registered users currently online