1,302 Posted Topics

Member Avatar for Manak

Here you are [code=C#] if(int.TryParse(TextBox1.Text)) //good else MessageBox.Show("Text couldn't be converted to integer"); [/code]

Member Avatar for ddanbe
0
212
Member Avatar for JackDurden

[code=C#] foreach(DataRow row in table.Rows) { if(row["columnName"] == value) //display the row, otherwise escape. } [/code]

Member Avatar for flavioweb1
0
278
Member Avatar for DaveD3

Can you please send code snippet it may help us to understand your well.

Member Avatar for DaveD3
0
111
Member Avatar for S2009

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 …

Member Avatar for kvprajapati
0
628
Member Avatar for csharp5

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.

Member Avatar for csharp5
0
161
Member Avatar for h.liang

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

Member Avatar for Ramy Mahrous
0
106
Member Avatar for BustedPixel

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.

Member Avatar for BustedPixel
1
119
Member Avatar for CSharpant
Member Avatar for Ramy Mahrous
0
227
Member Avatar for linsz

[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[] …

Member Avatar for Salem
0
410
Member Avatar for linsz

Duplicated thread please delete it. [url]http://www.daniweb.com/forums/thread199431.html[/url]

Member Avatar for linsz
0
113
Member Avatar for Manak

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 …

Member Avatar for Manak
0
257
Member Avatar for jineesh

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]

Member Avatar for Ramy Mahrous
0
69
Member Avatar for mundetas
Member Avatar for ejazmusavi

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?

Member Avatar for ejazmusavi
0
111
Member Avatar for HBMSGuy
Member Avatar for clueless123

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.

Member Avatar for Ramy Mahrous
0
117
Member Avatar for history84084

If you bind data source to ComboBox well, [code=C#]CAMPAIGN_ID = int.Parse(cboxMailRespSelProgram.SelectedValue.ToString());[/code]

Member Avatar for tatoba.shejal
0
208
Member Avatar for Blaine Tuisee

[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 != …

Member Avatar for Blaine Tuisee
0
257
Member Avatar for travis67
Member Avatar for sknake
0
119
Member Avatar for Cman2020

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 …

Member Avatar for Ramy Mahrous
0
128
Member Avatar for Gunn3r
Member Avatar for Gunn3r
0
117
Member Avatar for NickMalone85

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.

Member Avatar for NickMalone85
0
95
Member Avatar for bporajesh

Are you using SQL Server? You can post your question to PHP forum as I don't know where your problem exists?!

Member Avatar for bporajesh
0
90
Member Avatar for smelf1

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 :)

Member Avatar for rapture
0
834
Member Avatar for Manak
Member Avatar for serkan sendur
Member Avatar for Cman2020

[code=C#] System.IO.File.AppendAllText(filePath, content); [/code] In your case [code=C#] System.IO.File.AppendAllText(@"c:\TestFile.txt", txtOutput.Text); [/code]

Member Avatar for Ramy Mahrous
0
187
Member Avatar for SusanHAllen

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]

Member Avatar for Ramy Mahrous
0
225
Member Avatar for floodemo

Draws rectangle on windows form. You may need to read in [url]http://msdn.microsoft.com/en-us/library/8z5dw491(VS.80).aspx[/url]

Member Avatar for ddanbe
0
86
Member Avatar for seebharath

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 …

Member Avatar for seebharath
0
119
Member Avatar for pradeepvmca

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]

Member Avatar for Ramy Mahrous
0
82
Member Avatar for Ruan RT

[url]http://cadappdev.blogspot.com/2008/07/minimum-c-to-learn-to-program-revit.html[/url]

Member Avatar for Ramy Mahrous
0
110
Member Avatar for sfener06

[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 :)

Member Avatar for Ramy Mahrous
0
42
Member Avatar for Acidburn

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.

Member Avatar for Ramy Mahrous
0
31
Member Avatar for xtremebeauty
Member Avatar for adamf07

Can you please try that on SSMS, and see what happens? it may there something wrong from C#.

Member Avatar for adamf07
0
181
Member Avatar for functionalCode
Member Avatar for Ramy Mahrous
0
79
Member Avatar for sivak
Re: sql

Please mention your version of SQL Server to get the best tutorial for you I assume you are using 2005 here you are: [url]http://www.databasejournal.com/features/mssql/article.php/3626056/Database-Mail-in-SQL-Server-2005.htm[/url]

Member Avatar for Ramy Mahrous
0
48
Member Avatar for sivak

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]

Member Avatar for Ramy Mahrous
0
109
Member Avatar for NickMalone85

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 …

Member Avatar for sknake
0
76
Member Avatar for serkan sendur
Member Avatar for Ravenous Wolf

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? …

Member Avatar for hitesh12287
0
222
Member Avatar for DevC++4.9.9.2

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 …

Member Avatar for streetfighter
0
369
Member Avatar for serkan sendur
Member Avatar for Ramy Mahrous
0
74
Member Avatar for vikscooldude

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 …

Member Avatar for Ramy Mahrous
1
78
Member Avatar for plut0564

what about SSIS? I didn't use SSMA. You can use SSIS to move\copy data in fast and smooth way.

Member Avatar for Ramy Mahrous
0
104
Member Avatar for sandilian
Member Avatar for hesham_51
Member Avatar for Ramy Mahrous

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.

Member Avatar for lllllIllIlllI
0
80
Member Avatar for sommer_queen

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 …

Member Avatar for Ramy Mahrous
0
98

The End.