Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
13
Posts with Upvotes
13
Upvoting Members
11
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
~20.5K People Reached
Favorite Tags

51 Posted Topics

Member Avatar for santu_1

I'm not quit sure, but is it because they all using the same "ComboBoxSelectedIndexChanged"? What happens in that method? You can also try using a separate datasource for each combobox.

Member Avatar for ss125
0
842
Member Avatar for Rajiv9

Rounding off from 2.90 to 3.00 is very unusual. 2.90 is rounded to 3, for that you can use asl ss125 says Math.Round. You cannot use Math.Round(2.90, 2) to return 3.00, it will return 2.90!

Member Avatar for Rajiv9
0
2K
Member Avatar for nigelhow

I don't know what happens, maybe you have an empty row in your database. Your code seem equal to [Click Here](http://nl3.php.net/manual/en/function.mysql-fetch-array.php) On option in your code that you lack an else-clause so if the row does not fit in the else-ifs, no value will be put in the cell. In …

Member Avatar for stevie.whalen
0
196
Member Avatar for Krefie

I think you are looking for this feature: [Click Here](http://dev.mysql.com/doc/refman/5.0/en/replace.html) REPLACE in stead of INSERT and UPDATE. You'll only have to check whether a row in changed or not.

Member Avatar for C#Jaap
0
209
Member Avatar for faisal.ghulam.9

In addition to prixat: Milage(txtMilage.Text) = 0 if isn't set. Then Milage(txtMilage.Text) * Rate is also 0.

Member Avatar for C#Jaap
0
128
Member Avatar for Sunil_8

Sunil 8, what do you actually want to do? Create an hyperlink to some text? In that case you can add some text in a cell, assign a name to that cell and use it anywhere in the excelsheet. Please describe your question in more detail.

Member Avatar for Vincentas
0
80
Member Avatar for weeraa

It depends on database you are using. When you use an Oracle database you should use || (double pipe) to concat, + can be used with SQL Server and for MySQL you should use Concat('A', 'B')....

Member Avatar for C#Jaap
0
226
Member Avatar for jameslivsey

I should use the same mvc action that uses a two private voids or functions to process the 2 different tasks. Seems most straight forward to me.

Member Avatar for C#Jaap
0
138
Member Avatar for lloydsbackyard
Re: join

When you're working with MySQL the query below will work, but will only return rows that has an payment record. When you alter the INNER JOIN into LEFT JOIN you'll get the original result, extended with the hasPaid column that contains a null value when no paymend record with idNumber …

Member Avatar for lloydsbackyard
0
139
Member Avatar for thijscream

Some questions that might help you: * Maybe $status returns a string '1'. * You write the query returns 1, but does $data['Finished'] also return 1. * What value does $status have outside the while-block? Good luck

Member Avatar for chemwile
0
200
Member Avatar for sushilsth

I think you shouldn't use .executenonquery (see: http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.executenonquery.aspx) but .executereader (see: http://msdn.microsoft.com/en-us/library/9kcbe65k.aspx).

Member Avatar for sushilsth
0
206
Member Avatar for mesbahuk

Use can use a foreach for all IEnumerables (like List) List<NameAddress> route = dialog.getRoute(); foreach(NameAddress nameAddress in route) { //some more to copy rout to another List<> }

Member Avatar for C#Jaap
0
309
Member Avatar for fhau013
Member Avatar for sonicx2218

I don't know such editor, but I would suppose an altnernative strategy. Implement WordPress or Drupal which can be extented whatever you want and in which your friend can add content, without the need of any programming knowledge.

Member Avatar for EvolutionFallen
0
155
Member Avatar for omoayan
Member Avatar for C#Jaap
0
166
Member Avatar for C#Jaap

I am working on an application that keeps track and uses files stored on the file system. Users are allowed to open, create, delete and move files in the file system. Meanwhile my application is not constantly running so I can't keep track of all changes real-time. Afterwards my application …

0
151
Member Avatar for weirdCreature7

Try using a semicolon after the window.alert() or additional attributes to the script-tag like type.

Member Avatar for weirdCreature7
0
179
Member Avatar for neartoyou

You can't just put any character in an GET parameter because it posted into the URL. Use a POST variable in stead and/or encode the variable input to url-save characters (e.g. use base64_encode).

Member Avatar for almostbob
0
238
Member Avatar for PHPuss

Usually you get input from a form by $_REQUEST['date3'] for date3. The use of dates in queries does depend on your database. For Oracle I saw an example (that I cannot try because I currently haven't got an oracle db available): SELECT * FROM EMPLOYEE WHERE END_DATE BETWEEN TO_DATE('04/15/2006' , …

Member Avatar for C#Jaap
0
136
Member Avatar for vikas_3r

Maybe you can find some help here: http://blog-mstechnology.blogspot.nl/2009/06/get-printer-details-thru-c-code.html

Member Avatar for C#Jaap
0
511
Member Avatar for amitash

Something like this does change the representation in your worksheet. Sub ChangeActiveCellFormat() ActiveCell.NumberFormat = "#,##0.00" End Sub Depending on you local settings of Windows Excel uses a . or a , to separate the thousands. This however converts the content of the active cell into text and put it in …

Member Avatar for QVeen72
0
428
Member Avatar for shanki himanshu

Because a and b were successfully incrementented? You have putten an 'conditional or' operator between the two statements. Although I am not an C expert, usually, when the first part appears to be true the second part will not performed at all.

Member Avatar for Banfa
0
104
Member Avatar for connieelamx

You haven't got an external screen to connect? Maybe you can try reset the machine by keeping the on/off button pressed for a while. Try running the machine without battery. Nasty problem: good luck!

Member Avatar for fahimk123
0
290
Member Avatar for sirus23

Hi, maybe you should try $_REQUEST because this contains both the GET and POST parameters. To find out what has been sent to your PHP server you can dump the content of the variables with var_export: <? //either var_export($_REQUEST); //or print var_export($_REQUEST, true); ?> This dumps the complete content of …

Member Avatar for C#Jaap
0
1K
Member Avatar for Jazerix

You can call TextBox1.Text.ToLower() or TextBox1.Text.ToUpper() so all characters are in lower or upper case.

Member Avatar for aloksupremacy
0
115
Member Avatar for judithSampathwa

Make use of of the windows user - this user is already authenticated! Validate whether the logged in Windows user has access to your application. One example of retrieving the Windows user you can find here: [URL="http://www.spiration.co.uk/post/1367/Get%20Windows%20username%20of%20current%20user%20-%20C%23"]http://www.spiration.co.uk/post/1367/Get%20Windows%20username%20of%20current%20user%20-%20C%23[/URL]

Member Avatar for C#Jaap
0
2K
Member Avatar for jacksantho

Maybe you can specify your question with code samples. The first thing I think of is: does you form action contain Get-parameters? Or does it perform a Post? In that case use should question your form with $__POST[variable]. With $__REQUEST[variable] you can look for both Post an Get variables.

Member Avatar for C#Jaap
0
283
Member Avatar for srikanth2321

May "us-ascii" is not completely suitable. See: [URL="http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx"]http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx[/URL] (and especially the Remarks part).

Member Avatar for srikanth2321
0
204
Member Avatar for catcit

I'm not quit clear what you mean with boolean full-text search and what you're doing? Do you have an column that containing "True" or "False"? The most dynamic feeling can be created by loading the records into memory. I cannot see what limitations you are confronted with.

Member Avatar for C#Jaap
0
188
Member Avatar for arjunpk

a bit out of time, but for future searches: You use [CODE] Excel.XlFileFormat.xlXMLSpreadsheet [/CODE] which is actually an XML file. When you use the extension of an Excel workbook does not expect an XML file, so the message is shown. Excel won't show that message when you use: [CODE] //extension …

Member Avatar for C#Jaap
0
307
Member Avatar for cliffcc

You'll have 2 options: (1) create a form so the button can submit to it's action or (2) you use the javascript onclick-event of the button to open export.php.

Member Avatar for cliffcc
0
107
Member Avatar for lovell_82

Hello, I gave it a really short glimpse but I'm missing the declaration [CODE] var $db_host; [/CODE] you're using $this->db_host, but it is never declared.

Member Avatar for diafol
0
538
Member Avatar for ahmedams

.Net framework offers Trace-functionality. When you want to log some within your code you call: [CODE] System.Diagnostics.Trace.Write("message"); //or System.Diagnostics.Trace.WriteLine("message"); //or System.Diagnostics.Trace.WriteIf(TraceSwitch, "message"); //or System.Diagnostics.Trace.WriteLineIf(TraceSwitch, "message"); [/CODE] The TraceSwitch catches the loglevel, with the properties Trace.... (e.g TraceInfo). The TraceSwitch and the tracelistner can be configured in your config file. The …

Member Avatar for C#Jaap
0
785
Member Avatar for virusisfound

Use Math: [CODE] double pi = 3.14159265; Console.WriteLine(Math.Round(pi, 2)); //displays 3.14 Console.WriteLine(Math.Round(pi, 3)); //displays 3.142 Console.ReadKey(); [/CODE] See for more info: [URL="http://msdn.microsoft.com/en-us/library/wyk4d9cy.aspx#Y342"]http://msdn.microsoft.com/en-us/library/wyk4d9cy.aspx#Y342[/URL]

Member Avatar for virusisfound
0
141
Member Avatar for bhagawatshinde

Hello, You forgot to assign an icon. This code works for a Win-Form-Application: [CODE] private void Form1_Click(object sender, EventArgs e) { notifyIcon1.Icon = new System.Drawing.Icon(@"c:\temp\Administrator.ico"); notifyIcon1.BalloonTipText = "Hello"; notifyIcon1.BalloonTipTitle = "Message"; notifyIcon1.BalloonTipIcon = ToolTipIcon.Warning; notifyIcon1.Visible = true; notifyIcon1.ShowBalloonTip(10000); } [/CODE]

Member Avatar for bhagawatshinde
0
249
Member Avatar for Tenaciousmug

You calling twice [CODE] $row = mysqli_fetch_assoc($result); [/CODE] With the second query you affect the $result, $sql and $row of the first query, I guess.

Member Avatar for C#Jaap
0
137
Member Avatar for johng123

Maybe this will help: [URL="http://nl2.php.net/manual/en/function.sprintf.php"]http://nl2.php.net/manual/en/function.sprintf.php[/URL]

Member Avatar for vibhaJ
0
189
Member Avatar for computerbear

call [CODE] throw new BookException(Title, Price, Numpages); [/CODE] declare [CODE] public class BookException : Exception { public BookException(string Title, double Price, double NumPages) : base (String.Format("Ratio for {0} is invalid. Price is {1} for {2} pages.", Title, Price, Numpages)) { } } [/CODE] Why not inherit from ApplicationException in stead …

Member Avatar for C#Jaap
0
134
Member Avatar for virendra_sharma

This is the most quick sorting algorithm I know: [CODE] namespace sort { class Program { static void Main(string[] args) { List<string> sortList = new List<string>(); sortList.Add("X"); sortList.Add("B"); sortList.Add("K"); sortList.Sort(); for(int i = 0; i < sortList.Count; i++ ) Console.WriteLine(sortList[i]); Console.ReadKey(); } } } [/CODE] But it may not work …

Member Avatar for virendra_sharma
0
176
Member Avatar for Ravi.Srilatha

The configuration is put into a XML file like this [CODE] <?xml version="1.0"?> <configuration> <appSettings> <add key="errormail.verzenden" value="1"/> <add key="errormail.address.from" value="noreply@hello.com"/> <add key="errormail.address.to" value="paperclip@msn.com"/> <add key="errormail.address.cc" value=""/> </appSettings> </configuration [/CODE] You can retrieve these settings with [CODE] string keyValue = System.Configuration.ConfigurationManager.AppSettings[KeyName]; [/CODE] or in VB.NET [CODE] Dim keyValue as string …

Member Avatar for C#Jaap
0
279
Member Avatar for vijaysoft1

You can handle these checks on the client-site by Javascript. Or you make a AJAX call to your server (which is actually a post to your server), your server is checking the input and returns the result. When the result is OK, your form can post the data. While writing …

Member Avatar for Kannan R
0
4K
Member Avatar for jlivvers

Look for the latest info and a complete survey of certification programs at the Microsoft-site: [URL="http://www.microsoft.com/learning/en/us/certification/cert-overview.aspx"]http://www.microsoft.com/learning/en/us/certification/cert-overview.aspx[/URL].

Member Avatar for C#Jaap
0
160
Member Avatar for judithSampathwa

I don't know CarlosAg.ExcelXmlWriter. I know office interop: When you have Excel installed on the machine that runs your application you can use the standard Office Interop classes, which are very widely documented. In code you should open an instance of ExcelAppliction. With the Workbooks-collection of the ExcelApplication you open …

Member Avatar for arjunpk
0
351
Member Avatar for RazorRamon

Your question isn't quite clear. Why don't you put all reasonling into function greetings [CODE] function Greetings() { if($occupancy < 1) return "Nobody is home"; if($greetings == hello) { return "Hello"; } else { return "goodbye"; } } [/CODE] Calling Greetings [CODE] echo Greetings(); //or print Greetings(); [/CODE]

Member Avatar for twiss
0
323
Member Avatar for thijscream

Try this information [URL="http://nl2.php.net/manual/en/function.mysql-set-charset.php"]http://nl2.php.net/manual/en/function.mysql-set-charset.php[/URL]

Member Avatar for jonnysmiths
0
655
Member Avatar for johnt68

Hi John For sorting you can use List<T>.Sort() or the sort of an ArrayList. You also can put your data into a DataTable and sort the .DefaultView of it. Using the List<T> or List<string> you can use the .Add method (in stead of CustList.Add). when you have added all items …

Member Avatar for johnt68
0
207
Member Avatar for rahul131090

When you're running localhost in Windows but online using linux or unix you should be aware of capitals because Windows ignores capitals but linux/unix not!

Member Avatar for C#Jaap
0
76
Member Avatar for samsambm

Weird way to get the GET params. Try this: [CODE] <?php foreach ($_GET as $key => &$val) $val = filter_input(INPUT_GET, $key); foreach ($_POST as $key => &$val) $val = filter_input(INPUT_POST, $key); ?> [/CODE] or see this page: [URL="http://php.net/manual/fr/reserved.variables.get.php"]http://php.net/manual/fr/reserved.variables.get.php[/URL] Withing preg_split you should use a regular expression to split. An regular …

Member Avatar for samsambm
0
182
Member Avatar for Usmaan

It's weird. I have trying it in a Winform app and it did work fine. Although unlikely, the only thing I see is that you might oversee the precedence of the && over the || operator. (Also the options to win the game are not complete in the if) The …

Member Avatar for C#Jaap
0
383
Member Avatar for xanawa

This line helps me filtering a DataGridView: My DataGridView.DataSource = <name>BindingSource this.<name>BindingSource.Filter = String.Format("<columnname> LIKE '%{0}%'", TextBoxFilter.Text); The DataGridView and BindingSource were generated automatically. If you do not use the bindingsource, you can apply a filter by changing the DefaultView of the table which is shown in the grid.

Member Avatar for xanawa
0
98

The End.