461 Posted Topics

Member Avatar for JasonWung

I would create a log file for both programs, im not aware of a way to write simultaneously to log files. Perhaps one of the more experienced members of the forum does?

Member Avatar for skatamatic
0
540
Member Avatar for Freedom*
Member Avatar for Aparna9019

Here's an XSLT Stylesheet: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cs="urn:cs" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="cs"> <xsl:output method="xml" omit-xml-declaration="yes" indent="yes" /> <msxsl:script language="C#" implements-prefix="cs"> <![CDATA[ public string GetCurrentDateTime(string name) { string filename = name.Substring(0, name.IndexOf('.')); string extension = name.Substring(name.IndexOf('.')); return(filename + "_" + DateTime.Now.ToString("ddMMyyyyHHmmss") + extension); } ]]> </msxsl:script> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> …

Member Avatar for Mike Askew
0
1K
Member Avatar for Freedom*

int[] TheArray = new int[20]; //Declaring TheArray to hold 20 objects //Adding to TheArray TheArray[0] = 5; //Arrays always start at 0, so 0-19 in this case. TheArray[1] = 10; TheArray[2] = 15; //Reading from the first entry in TheArray Console.WriteLine(TheArray[0]); //Reading from all of TheArray foreach(int in TheArray) { …

Member Avatar for Mike Askew
0
126
Member Avatar for cyberdaemon

I could be completely wrong here as not tried any of code only looked at it, But shouldn't `((CheckBox)row.FindControl("chkTypes")).Checked;` Be `(CheckBox)(row.FindControl("chkTypes")).Checked;` So that is casts the object found as a CheckBox and not the row?

Member Avatar for nmaillet
0
112
Member Avatar for M.Waqas Aslam

Quick google turned [this](http://www.codeproject.com/Articles/43705/Remote-Desktop-using-C-NET) up, perhaps it is what your looking for?

Member Avatar for Max_Trottier
0
168
Member Avatar for riahc3

@riahc3, I assume your on about this: foreach (c in contact.Nodes()) { Console.WriteLine(c); } In which case `c` is the local variable name used inside the foreach representing a node in `contact.Node` object. Assuming `c` stands for contact in this case.

Member Avatar for skatamatic
0
744
Member Avatar for zachattack05

You can use the same DLL's as in the windows forms with the web based solution :) If i remember rightly (not used in about 5 months) its simply a matter of referncing the DLL's and you can use their contents within the c# side of the webpages, therefore allowing …

Member Avatar for skatamatic
0
158
Member Avatar for roboxslt

ChrisHunter is right here, we cannot provide help to a problem which we cannot even see let alone understand. If you give us the input (you have) and the output desired (lacking) we can find the solution.

Member Avatar for Mike Askew
0
102
Member Avatar for zachattack05

Could try a message box displaying a datetime down to milliseconds to see which executes first? Should be a slightly noticeable difference in the millisecond portion of the time?

Member Avatar for zachattack05
0
180
Member Avatar for bettybarnes

Edit: Mitja Bonca beat me to it! An alternate way to carry out ChrisHunter's suggestion, including handling for non-numeric input would be a TryParse. int guessedNumber; bool parseSucceeded = Int32.TryParse(textBox1.Text, guessedNumber); This will set the bool `parseSucceeded` to true if the text in `textBox1.Text` was numeric and could be converted, …

Member Avatar for Mitja Bonca
0
214
Member Avatar for trady

Hi Trady, I got the result layout you wanted using the following XSLT stylesheet: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:cs="urn:cs" exclude-result-prefixes="cs msxsl" > <xsl:output method="text" omit-xml-declaration="yes" indent="no"/> <xsl:template match="order"> <xsl:apply-templates select="workflows"/> </xsl:template> <xsl:template match="workflows"> <xsl:for-each select="workflow/items/orderitem"> <xsl:value-of select="@id"/> <xsl:text>&#32;</xsl:text> <xsl:for-each select="jobs/job"> <xsl:value-of select="@id"/> <xsl:text>&#32;</xsl:text> </xsl:for-each> <xsl:text>&#0010;</xsl:text> </xsl:for-each> </xsl:template> </xsl:stylesheet> Hope this …

Member Avatar for xml_looser
0
141
Member Avatar for shah1509
Member Avatar for vt123

A quick google found this. [Link](http://www.ibm.com/developerworks/xml/library/x-tipcombxslt/)

Member Avatar for fikreyes
0
99
Member Avatar for sbutt

Could you put the CDATA credit card number value into a variable and then use that instead of trying to read the node?

Member Avatar for sbutt
0
897
Member Avatar for acfalcon2001

Could you explain the 2nd post as your "output" code is the same as input with the namespace declaration shown twice. Which namespace (if any) are your nodes in? Im assuming none in which case will get back to you with the XSLT shortly. My XSLT: <xsl:stylesheet version="1.0" xmlns:x="http://something.com" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" …

Member Avatar for Mike Askew
0
112
Member Avatar for Mike Askew

Does anyone know if this is possible and if so how I would go about it, as it has currently got me stumped completely! Thanks in Advance, Mike

Member Avatar for Mike Askew
0
103
Member Avatar for Mike Askew

Firstly I will say im a complete and total novice when it comes to XSLT and XML so this could be a very obvious mistake on my behalf. [CODE] <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="node()"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> <xsl:template match="TestNode"> <RenamedNode> <xsl:copy-of select="."/> </RenamedNode> </xsl:template> </xsl:stylesheet> [/CODE] When …

Member Avatar for StephNicolaou
0
203
Member Avatar for shanmugaraj.c
Re: loop

Could you clarify your issue a bit more? Am i understanding you right in the fact your issue is that the browser hangs while the database operation is run?

Member Avatar for mani-hellboy
0
124
Member Avatar for trinetra31

Trin, You would need to use the same switch concept but store the numbers in an array and loop through each number in the array running the switch statement. This would allow all numbers to be processed :) So 238947864 would be processed as: 2 - 3 - 8 - …

Member Avatar for trinetra31
0
186
Member Avatar for Traps
Member Avatar for Mike Askew

Just wondering if it is possible to see the applications running within ApplicationPools on IIS7. Im able to access all the pools and see their settings yet cant seem to work out how to see what applications are running in each :( Regards,

0
85
Member Avatar for jackbauer24

[CODE]MessageBox.Show("MessageGoesHere");[/CODE] This, when running a windows forms application, will display a popup message box on screen displaying the information you have passed it within the brackets. [CODE]return x;[/CODE] Return is used to send a variable back from a method to the block of code that called the method. It is …

Member Avatar for EBS.VivekGupta
0
196
Member Avatar for charlybones

Could try running it with a sleep of (500), equivalent of half a second. Thread.Sleep() Is safe as it literally pauses execution of the thread and so therefore just makes the computer wait before running your next line of code, might give it the time to close the connection properly …

Member Avatar for charlybones
0
251
Member Avatar for uva1102

[URL="http://www.daniweb.com/software-development/csharp/threads/408555"]Duplicate?[/URL]

Member Avatar for uva1102
0
163
Member Avatar for Mike Askew

I currently need to be able to read through an XML document, find certain nodes and either delete them (and child nodes) or edit the nodes name and possibly value. What would be the best way of going about this? XPath? XSLT? XMLReader/XMLWriter? My Code/XML contents cannot be posted though.

Member Avatar for Mike Askew
0
159
Member Avatar for Mike Askew

Hi all, I am looking to have a long process running in the background to my main form with a timer ticking on the main form animating the elipsis on the end of some text. Was looking for some insight into the best way to go about this and any …

Member Avatar for Mike Askew
0
245
Member Avatar for Jigs28

What do you mean by set case sensitivity? If you are comparing within c# the strings that you pull from the password field of the database will be compared case sensitive by default.

Member Avatar for Momerath
0
1K
Member Avatar for whodoes21

Could try something like: [CODE] while (totality <= 50000) { if (!(totality + job[i]) >= 50000) totality = totality + job[i]; i++; } [/CODE]

Member Avatar for Mike Askew
0
315
Member Avatar for Cameronsmith63

As a matter of good practice I would manually dispose of the elements after each use, not relying on a garbage collection then and should hopefully resolve the error.

Member Avatar for Cameronsmith63
0
163
Member Avatar for niggz

Surely there is just a lack of rows in whatever you are pulling as you are looking for the row (2) so the third row in. Run a debug and use a break point to see what is contained within the schedule and see if that helps to solve the …

Member Avatar for niggz
0
397
Member Avatar for Mona Ali

As its not running in an AJAX panel from what I can see, would the page also need a postback to apply the colour change? Admittedly I lack experience within ASP.Net but that would be my first idea :)

Member Avatar for Mike Askew
0
1K
Member Avatar for Jigs28

So what exactly are you trying to do? Move the label around so that the text always appears in the middle? Could you not just make the label the maximum size it could be and set the text align to middle?

Member Avatar for Jigs28
0
255
Member Avatar for Mike Askew

Just a quick suggestion but it would be useful to be able to filter down all the threads in a section to the ones you have replied too, using the tabs at the top. As there is definately space for another tab :D Implementing it could not be so easy …

Member Avatar for Mike Askew
0
183
Member Avatar for Wheater

Wheater, Do you wish to use your own database for this or the built in ASP.Net database? As this can very easily be done using the built in one however I've had issues in the past trying to then link the ASP.Net DB to a custom one for the other …

Member Avatar for Mike Askew
0
143
Member Avatar for RenanLazarotto

Have a look at [URL="http://www.codeproject.com/KB/recipes/StoringPasswords.aspx"]this[/URL].

Member Avatar for RenanLazarotto
0
96
Member Avatar for glut

Have you considered using the MouseClick property of the form instead?

Member Avatar for glut
0
138
Member Avatar for DevNet

So the issue is that when you click on a non-visible picture box it doesnt become visible? I would assume you cant click on a picture box you cannot see therefore may have to consider setting the picture to a placeholder picture and store the assigned images in an array …

Member Avatar for Mike Askew
0
1K
Member Avatar for kavi4u

You need to bind the method to the form's KeyUp method available in the properties. I don't think it can be done using KeyPress instead. The following should work. Assuming your using a WinForm of course.. [CODE] private void Form1_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { //Enter …

Member Avatar for Mike Askew
0
126
Member Avatar for padmaja527
Member Avatar for prit005
0
121
Member Avatar for initialfresh

Stuck in the for loop im assuming? From a quick glance over may this be your issue? [CODE] for (int i = 1; i <= MAX_COURSES; i++) // ## Increments i by one here everytime loop occurs ## { try { { if (IsValidData()) { // Gets user input from …

Member Avatar for Mike Askew
0
3K
Member Avatar for Mike Askew

Hi there, I have two tables in my data entity model accessed by StaffDB. Staffs contains: StaffID FirstName LastName Address Town County Postcode YearJoined CurrentGrade Role Ratings contains: RatingID StaffID Date Rating1 (automatic to avoid conflict with table name also of rating) Comments These are linked by StaffID. I am …

Member Avatar for thines01
0
986
Member Avatar for Mike Askew

Hi all, The project I am currently working on is an Address Book which works off a csv (specification takes the mick as a database would be so much easier), the method to write the lines of information into the CSV is in the class DataLayer and takes a String: …

Member Avatar for Mike Askew
0
166
Member Avatar for Mike Askew

Hi all, My program is proving Kaprekar's Constant - 6174. To do this I will need to store values exactly how they come out without losing any preceding 0's which int has a habit of cutting off. For example: Number to store exactly: 0147 Int stores: 147 A googling session …

Member Avatar for Mike Askew
0
142
Member Avatar for rookanga

Have you tried using the length function in VB.Net? [code=VB.Net] If isNumeric(myDouble) = True Then '// Checks to see that string entered is numbers If Len(myDouble) = 5 Then '// Checks length of the entered string is 5 lblmessage.Text = "this is a five digit code" Else lblmessage.Text = "Not …

Member Avatar for Unhnd_Exception
0
173
Member Avatar for twigan1015
Member Avatar for twigan1015
0
107
Member Avatar for arezz09

Try this: [Code=VB.NET] If password.text <> confirmpassword.text Then Msgbox("Password not the same") End If [/Code]

Member Avatar for Mike Askew
0
145
Member Avatar for Mike Askew

The code for this is: [CODE=VB.NET]'IMAGE HANDLING Dim bytes() As Byte = DS.Tables("Location").Rows(0).Item(4) Dim ProductImage As Image = Image.FromStream(New System.IO.MemoryStream(bytes)) pic_ProductImageDisplay.Image = ProductImage pic_ProductImageDisplay.Load()[/CODE] The error occurs line 3 stating "ArgumentException was unhandled: Parameter is not valid." Any idea on a solution to this problem?

Member Avatar for Unhnd_Exception
0
214
Member Avatar for vbCNEW
Member Avatar for razree

Have a look at [URL="http://www.stellarpc.com/articles/board.aspx?id=37"][B]THIS[/B][/URL] webpage. Can apply the same technique of date/time measurement possibly? Not entirely sure though.

Member Avatar for razree
0
290

The End.