45 Solved Topics
Remove Filter I am currently creating a product lookup system for a project of mine, however from reading around it has come to my attention that an OLEDB connection will not handle the SQL query below as it will not handle more than a simple "SELECT, FROM". Table: tbl_ProductInformation Field: Product_Name CurrentEntry … | |
Howdy I have a timespan that contain in excess of 24 hours. For the example lets use a value of 1 day 6 hours and 32 minutes. I would like to get this into a string that displays "30:32". Have so far tried something along the lines of `string.Format("{0}:{1}", TimeSpan.TotalHours, … | |
Using code from StackOverflow: HttpWebRequest webRequest; void StartWebRequest() { webRequest.BeginGetResponse(new AsyncCallback(FinishWebRequest), null); } void FinishWebRequest(IAsyncResult result) { webRequest.EndGetResponse(result); } How do you access the response to the request? | |
Ok time for the 2nd dumb question of the day that I should probably already know the answer too.. I have `string.Format(" {0, -22} | {1, 5} of {2, -5} | {3, 5}% | ` where `{3}` is a double that is being used for a percentage. The longest allowed … | |
So I have recently come across `string.Format("{0, x}", "Word")` for aligning strings, with demonstration code that works fine in the CMD. Does this also function correctly when pumping text to a label? I am finding that it does not behave as expected and instead misaligns the text. Using an example … | |
I've inherited some code utilising the bootstrap framework. I'm currently seeing some odd behaviour where no matter what date was last picked, the date picker always seems to open showing the month of July. Is there any particular places in the code I should be looking to see if anything … | |
Me again... So now I am confused... I have a form: <form action="addanimal_submit.php" method="post" enctype="multipart/form-data" style="padding-left:10px"> <p>Name: <input type="text" name="name"></p> <p>Date of Birth: <input type="text" name="dateofbirth"></p> <p>Description: <input type="text" name="description"></p> <p>Available For Adoption? <select type="text" name="available"> <option value="1" selected>Yes</option> <option value="0">No</option> </select> </p> <p>Image Of Animal:</p> <p><input type="file" name="fileToUpload"></p> <input … | |
Think I am going mad here.. So I have a working website setup in IIS. This was all configured by a previous developer. We have a set of reports that you can browse to by going to localhost/Reports/ReportName, the underlying directory structure in IIS is actually Reports/Views/ReportName/index.cshtml. I have added … | |
... but I can't for the life of me figure it out. I have an object that comes from an application which has a Status property, and within that property is Name and Key. So I can do things like `object.Status.Name = x`. I have created another of these objects … | |
Has there been a change behind the scenes to how the posting rank is calculated, or have I just reverted to being a Junior Poster with 900+ posts for no reason? As know there are people at hjgher ranks with less posts. | |
IQueryable<CustomObject> obj = (from table in db.TableName orderby table.ObjectId descending select new CustomObject { //Properties mapped here }).Skip((pageNumber - 1) * pageSize).Take(pageSize); The above is a stripped down version of the query I am running. It is missing about 10 joins and then just the bulk mapping of the object, … | |
Quite rare to see me post in the Java forum but have been picking it up as part of a long-distance university course I am doing. I am currently trying to read in an ASCII coded .txt file and output it but am seeing some funny characters showing up. The … | |
I've been toying with some code for the last thirty mins to try move a substring from one cell to another. In debug I can see the correct contents being picked up and moved to the new cell and even got a save prompt popup when running over line 31. … | |
Is it possible to stop the chat input box from remembering history? It is highly irritating :D Tried a quick fix using `autocomplete="off"` in the <form> tag of the html and it worked fine in terms of turning off the autocomplete however it stopped the chat entry box from clearing … | |
 Just noticed the above occur when replying to a thread. The original post is behaving normally but then all comment replies in all threads are not correct. A refresh didn't clear the issue and Pritaeas didn't see the whitespace in IE or Opera on his machine. | |
Noticed the other week that once you cancel sponsorship (for whatever reason) that you lose all recognition of helping the site at all in terms of running costs. Can we introduce a 'Past Sponsor' badge or something along those lines so that those who have given but currently can't for … | |
If you look at my profile currently I appear to have the sponsor badge twice.  Edit: It is also appearing when hovering over my username on posts to view badges so doesn't appear to be a graphical glitch. | |
Just noticed this while browsing an [article](http://www.daniweb.com/software-development/csharp/threads/451901/weird-boolean-operator-trouble), the text was first displaying like so:  However once I had expanded the 'Show Comments' it seems to straighten out to what it should be:  I am running Internet Explorer (Work laptop don't judge me!) Version: 8.0.7601.17514 | |
What would be the chances of seeing a IRC client embedded into a page on the site? I would happily sit on the chat most days at work however it's normally blocked by our internal proxies and thus it would be nice to have a direct way to actually access … | |
Not sure if it just me but when using google chrome on iPad I cannot seem to up or down vote posts, the arrows seem to just be a graphic and non functional. Any ideas why this would be? | |
Just a quick query regarding sponsoring the site, is there a way to cancel the sponsorship if we needed to financially etc? | |
Was on the badges page and reading the text. >In exchange for showing your support, we'll return the favor by linking back to your website automagically. Is `Automagically` a typo by any chance or some new fangled word we are using? | |
Title states all. Best wishes, don't think I will be too active over the actual period so shall say it now :) | |
Not sure whether this is anything major or not but noticed it while trawling the source code of the site debating making a small app to monitor when post's replies are changed. There is an error occuring of: `FB.getLoginStatus() called before calling FB.init()` in all.js line 52. | |
Afternoon all, I currently am loading an XSD file from a physical file into memory to validate an XML file. However on loading the file it is containing such escape characters as `\r\n` to keep the formatting the document was originally in. This then causes an exception when loading the … | |
This will sound like a homework assignment, it sort of is, but isn't. Anyway! I have created a simple address book application with a CSV backend. This utilises a Person class to store the contacts details and an AddressBook class storing the list of Person. Within the code we have … | |
 Just wondering, is the attached an intentional visual display or a glitch? Reloading the window does not reset the bar to its normal position. Edit: This is still occuring while the web browser is maximised also. Edit2: Also the alignment to the last reply to topic is off. | |
Just noticed this, but is it intentional that if a user is logged in, and happens to stumble upon a broken link ([ie. here](http://www.daniweb.com/members/957352/Imrude) (given for replication)), that the 404 page bar at the top acts as if you are not logged in and gives the option for member login? … | |
Say I have the below example, the syntax is based off constuctor chaining for clarity (and my cluelessness). public static void Feed() : this("Unknown"){} public static void Feed(string FoodType) { if (Food != "Unknown") Console.WriteLine("{0} eats some {1}.", Name, Food); } How would I actually implement this for methods? It … | |
I am currently running a live 'in-memory' XSLT transformation using the following code XmlDocument XmlDoc = new XmlDocument(); XmlDoc.LoadXml(DS.GetXml()); XslCompiledTransform XsltTranformation = new XslCompiledTransform(); XsltTranformation.Load(@"C:\Users\maskew\Desktop\XSLTMapping.xsl"); Stream XmlStream = new MemoryStream(); XmlDoc.Save(XmlStream); //Stream is still blank after this line XmlReader XmlRdr = XmlReader.Create(XmlStream); MemoryStream stm = new MemoryStream(); XsltTranformation.Transform(XmlRdr, null, stm); … | |
More out of interest really. How does the reply box work out whether or not your incorrectly formatting a code post and what are the most common errors people encounter? As I've written a rediculously long reply to something and it's being flagged as incorrectly code formed yet I see … | |
So me and a colleague at work are trying to decide upon a mini-project to do, simply to see how differently we would code it. Has anyone got a good resource for such ideas, or even have some themselves, that are semi-challenging and do-able in about a day? Cheers, | |
I'm well aware this is most likely going for an instant shoot-down. Currently we can only get the four line signature. It would be nice to allow small HTML imaging. For example I'd like to include my StackOverflow flair :) <a href="http://stackoverflow.com/users/1220965/mike"> <img src="http://stackoverflow.com/users/flair/1220965.png" width="208" height="58" alt="profile for Mike at … | |
I'm after some advice really. I wish to create an application for myself and a friend using DropBox as a means to store and sync a CSV with data in. Is it possible to programatically search through a computers directory to locate folder called 'Dropbox' without hardcoding its location? If … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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: … | |
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 … | |
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? ![]() | |
My project I am working on is a product location system for a large supermarket. My current issue is that the map I am using to display the product location is assembled from rectangle objects which I will then change the colour of when required. The array storing the locations … | |
The program is currently trying to pull information from three different database tables and compiling the information onto one screen, to do this i am using three different connections and a function to handle the data at each stage. The issue is as my code hits PageLoadStage of "2" and … | |
As the title suggests, i am trying to pull a bitmap image stored in a table location with an OLEObject type to my picture box on the form. The code i am using is as following: [CODE=VB.NET]img_ProductPicture.Image = DS.Tables("LocationInfo").Rows(0).Item(5)[/CODE] The error i am receiving is an InvalidCastException: Unable to cast … |
The End.