1,302 Posted Topics
Re: Here you are [code=C#] if(int.TryParse(TextBox1.Text)) //good else MessageBox.Show("Text couldn't be converted to integer"); [/code] | |
Re: [code=C#] foreach(DataRow row in table.Rows) { if(row["columnName"] == value) //display the row, otherwise escape. } [/code] | |
Re: Can you please send code snippet it may help us to understand your well. | |
Re: Code tag please!! Try that please [code=C#] SqlConnection objSqlConnection = new SqlConnection(); string connectionStringSettings = "Data Source =.; Initial Catalog = LibrarySystemManagement;Integrated Security = SSPI"; private void btnSearch_Click(object sender, EventArgs e) try { objSqlConnection.ConnectionString = connectionStringSettings; objSqlConnection.Open(); if ((txtBookName.Text != "") || (txtCategory.Text != "")) { SqlCommand objSqlCommand = new … | |
Re: Try to implement Insertion Sort in C# [url]http://www.publicjoe.f9.co.uk/csharp/sort03.html[/url] use string instead of integer and you may use IComparer interface. | |
Re: There're techniques the most fit I don't know you should read the pros\cons and determine the most suitable for you 1- WCF 2- MSMQ 3- .NET Remoting 4- COM | |
Re: I'm not going to give quick solution because I couldn't review your code, so I suggest to use your true eyes F5; debug the application and but break points it'd lead you to the logic error. | |
Re: I can send you the generics implementation in VS 2005 or you can extract it from reflector :) | |
Re: [url]http://refact.blogspot.com/2007/02/effective-implementation-of-cast-128.html[/url] [code=C#] public byte[] EncryptMyData(byte[] plainData, out byte[] encryptionKey) { encryptionKey = Guid.NewGuid().ToByteArray(); int[] scheduledKey = AcedCast5.ScheduleKey(encryptionKey); long iv = AcedCast5.GetOrdinaryIV(scheduledKey); byte[] result = (byte[])plainData.Clone(); AcedCast5.EncryptCBC(scheduledKey, result, 0, result.Length, iv); AcedCast5.ClearKey(scheduledKey); return result; } public byte[] DecryptMyData(byte[] encryptedData, byte[] decryptionKey) { int[] scheduledKey = AcedCast5.ScheduleKey(decryptionKey); long iv = AcedCast5.GetOrdinaryIV(scheduledKey); byte[] … | |
Re: Duplicated thread please delete it. [url]http://www.daniweb.com/forums/thread199431.html[/url] | |
Re: Sure!! What you trying to do is to convert "SELECT Id FROM Student WHERE RegNo ='value' to Integral value!! Just tel me what you need to do. I expect you need to execute this query and take the result in the ID So [Code=C#] string selectStatement = String.Format("SELECT Id FROM … | |
Re: I don't have any solution expect to send it as parameter (Image path) [url]http://ramymahrous.wordpress.com/2009/04/20/building-aspnet-reporting-olap-based-application-part-3/[/url] | |
Re: What do you mean with online? Internet or Intranet? | |
Re: You can either construct SELECT statement to do the calculation or override GridView DataBound event handler to perform the calculation, please mention are you working in web-based\windows-based application? | |
Re: You're database design not correct, description words should be in independent table and words also in independent table and there's many-to-many relationship, then you could ask SQL or Access to get what you need in easy manner. | |
Re: If you bind data source to ComboBox well, [code=C#]CAMPAIGN_ID = int.Parse(cboxMailRespSelProgram.SelectedValue.ToString());[/code] | |
Re: [Icode]ex.InnerException[/icode] and plus you didn't show the error because you are working on Windows-based application modify your catch block to [code=c#] catch (Exception ex) { // Display any exceptions //Console.WriteLine(ex.Message); MessageBox.Show(ex.Message); MessageBox.Show(ex.InnerException); //MessageBox.Show("Transaction Failed"); // If anything failed after the connection was opened, roll back the transaction if (txn != … | |
Re: Please clarify more, or figure on paper what you need exactly | |
Re: Something far away your question but I need to share it with you. Show the toolbox IFF (if and only if) you need it, because every switch from document to document i.e aspx to aspx.cs to .asmx VS initializes the toolbox (and it slows down the VS) close it and … | |
Re: In your case use DataGrid, it's most suitable to your case. | |
Re: Again, a database is your solution. XML and directory but users can delete\replace or play with directory which then your assembly well not behave well. | |
Re: Are you using SQL Server? You can post your question to PHP forum as I don't know where your problem exists?! | |
Re: When I need to get them, I do that [code=vb.net] ComboBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend ComboBox1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.AllUrl [/code] I don't know, what done behind the scene, but your question will le me work around this, thanks a lot :) | |
Re: hmmm, where is the question? I don't know in what you have problem. | |
Re: What's the type of application?! | |
Re: [code=C#] System.IO.File.AppendAllText(filePath, content); [/code] In your case [code=C#] System.IO.File.AppendAllText(@"c:\TestFile.txt", txtOutput.Text); [/code] | |
Re: You didn't solve your problem by removing trim from if, to format it you should [icode]String.IsNullOrEmpty(dr[5].ToString().Trim(new char[]{'-'}/*and your special characters */)[/icode] | |
Re: Draws rectangle on windows form. You may need to read in [url]http://msdn.microsoft.com/en-us/library/8z5dw491(VS.80).aspx[/url] | |
Re: It's not tooltip it's documentation [code=C#] /// <summary> /// Adds two operands and return the sum /// </summary> /// <param name="op1">First operand</param> /// <param name="op2">Second operand</param> /// <returns>The sum</returns> private static float Add(float op1, float op2) { throw new NotImplementedException(); } [/code] if you write Add it'd show the above … | |
Re: Have a look on [url]http://www.c-sharpcorner.com/UploadFile/fbulovic/DTSnCS12062005072324AM/DTSnCS.aspx[/url] [url]http://www.15seconds.com/Issue/030909.htm[/url] | |
Re: [url]http://cadappdev.blogspot.com/2008/07/minimum-c-to-learn-to-program-revit.html[/url] | |
Re: [url]http://blog.brezovsky.net/en-text-2.html[/url] [url]http://bloggingabout.net/blogs/rick/archive/2005/05/18/4118.aspx[/url] Google is your friend in general questions :) | |
Re: S60 documentation points you to the right direction although I don't know what S60 is! but any hardware supports interfaces to talk to it through has documentation or SDK to help developers. | |
Re: Can you please try that on SSMS, and see what happens? it may there something wrong from C#. | |
| |
Re: I thought I faced this problem VS 2008 beta days take a look it may help you [url]http://fci-h.blogspot.com/2007/08/webservices-in-orcas.html[/url] | |
Re: What are you doing is called satellite dll which holds some resources to another programs it's OK, but for your scenario I find database is scalable more than using satellite dll. [B]what if you user needs to add some pictures to your image collections?[/B] if you are using satellite dll … | |
Re: You should close this thread, moderators!! | |
Re: you layers is nice you don't need more! any basic business project should have UI Layer, Business Logic Layer, and Data Access Layer. what about if you need security on all the layers? you should add layer cross cut on your layers (AOP) what about you areee using Distrbutied database? … | |
Re: Look when I was senior student my graduation project was about code generation I use a method to generate for me keyfile for libraries I used this method which helped me to do some redirection and so on. [code=C#] public void GenerateKeyFile(string command) { ProcessStartInfo PSI = new ProcessStartInfo("your.exe"); PSI.RedirectStandardInput … | |
Re: [url]http://www.codeproject.com/KB/mobile/PocketRegistry.aspx[/url] | |
Re: MCTS: For IT professionals who want to demonstrate their technical expertise in one of three areas: Implementation and Maintenance, Database Development, or Business Intelligence [url]http://www.microsoft.com/learning/mcp/mcts/sql/2008/[/url] MCITP: Builds on an MCTS pre-requisite and is designed for IT professionals who want to demonstrate their expertise in using SQL Server 2008 for one … | |
Re: what about SSIS? I didn't use SSMA. You can use SSIS to move\copy data in fast and smooth way. | |
I use Google Chrome but these days I found out some weird things like - URL [url]http://www.daniweb.com/[/url][B]?nojs=0[/B]#usercptools - Control Panel doesn't drop down when I click - Forum tools also, etc... It was working nicely after latest Daniweb UI\UX updates. | |
Re: I've no clue about XMLPathNavigator, but I see XPathNodeIterator like DataReader (Forward, and readonly) it means you can't return back to first element so the solution is to refill [B]ni[/B] again [code=C#] XPathNodeIterator ni = nav.Select("/orders/order"); while (ni.MoveNext()) Console.WriteLine("First time " + ni.Current.Value); ni = nav.Select("/orders/order"); while (ni.MoveNext()) Console.WriteLine("Second time … |
The End.