79 Discussion / Question Topics
Remove Filter There has been a noticeable increase in people asking where to start C# recently. So I have been across a couple of forums and pulled together a list of some useful links and resources. # Web Tutorials # [Home and Learn Tutorial](http://www.homeandlearn.co.uk/csharp/csharp.html) [CodeProject Tutorial P1](http://www.codeproject.com/Articles/219869/Object-Oriented-Programming-in-Csharp-NET) [CodeProject Tutorial P2](http://www.codeproject.com/Articles/222295/Object-Oriented-Programming-in-Csharp-NET-Part-2) [CodeProject Tutorial … | |
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, … | |
A man who has impacted generation's childhood's. A developer and CEO. Some of his developmental achievements are damn impressive. A sad day :( | |
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? | |
Hi So I have a silverlight 5 front end and some PDF generating code that is not silverlight compatible and so needs to sit server side and is called via WCF. I am struggling to work out how to return the PDF data back to the silverlight application and effectively … | |
I can't figure out why but at the minute I have no instant emails about thread updates etc. Have I got any settings wrong or is something else amiss under the hood? | |
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 … | |
Howdy So I have a set of data coming back from a process with five different pieces of data per entry in the set. Are there any fancy ways you can generate some kind of look-a-like report on the fly in WCF, else what would be the best way to … | |
I have the following $subUsername = trim($_POST["user"]); $sql = "SELECT userID, username, password FROM user WHERE username = ':user')"; $q = $conn->prepare($sql); $q->bindParam(':user', $subUsername); $q->execute(); $result = $q->fetch(PDO::FETCHASSOC); print_r($result); echo "</p>"; print_r($subUsername); echo "</p>"; print_r($subPassword); However `$result` is always just an empty array, if I run the SQL on the … | |
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 … | |
So I currently have a listbox which dynamically generates its members from the database. It has name and id set to "availablePets". When one of the items in the list is clicked I want to populate some other fields on the screen by quering the database for the rest of … | |
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 … | |
Hi All We are having an issue where a WSDL is loading another WSDL into it when we call it. This call takes a while on the first call which normally causes failures across the application during testing. One option we are looking into is pre-caching the WSDL in IIS … | |
... 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 … | |
So I am currently working with custom silverlight extensions for a SAP application. The extension kicks off a an async WCF request and waits for the response. During which time I try the following: waitWindow = new RadWindow(); waitWindow.WindowStartupLocation = Telerik.Windows.Controls.WindowStartupLocation.CenterScreen; waitWindow.BorderThickness = new Thickness(0); waitWindow.Content = new View.WaitWindowTest(); waitWindow.ShowDialog(); … | |
So I am currently working in ASP.Net and a bit stuck. I obtain the full html that I wish to render into the tab from a WSDL request and then need to find a way to load a new tab in the browser and display that information. I have currently … | |
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. | |
Doing some revision for a university exam being sat at the end of the week. Got my head around most of the BigO stuff I think apart from calculating the BigO equations like the below. T(n) = 1000040 T(n) = 45n^2 + 3n/1000 + 18(log n) Could anyone explain the … | |
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 … | |
Other half's laptop just trying to clean it up a bit as very slow. Do these logs look okay? Have deleted all the stuff flagged up in the malware scans but they just seemed to be some social search engine rubbish. Any pointers appreciated in advance, Mike | |
So been working on a C# wrapper for the DW API for a while now and its moving into the closing stages of development and I will release it publicly after. Question I have is what would be the best way to do this and how? (I am still waiting … | |
Been running a couple of article queries this morning. When running `http://www.daniweb.com/api/articles?forum_id=61` I encountered what looks like a bug. The 11th thread reply coming back in the query is the following: { "title":"please help me .........", "related":[ { "id":"" } ], "posters":[ { "id":"1098860" }, { "id":"46588" }, { "id":"1091071" … | |
Running Dani's profile as an example I get the JSON back containing: "education":[ { "key":"education", "value":"B.S. Computer Science", "organization":"Hofstra University", "start":"September 2000", "end":"December 2005", "description":"I majored in Computer Science and minored in Business Computer Information Systems. I was in Upsilon Pi Epsilon, the Computer Science Honor Society run by 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. … | |
As far as I can see, to develop applications using OAuth we need to own server space to host a site? An application, when registered to DaniWeb, requires a URL to be provided. A desktop application obviously doesn't have one of these. When sending OAuth requests we have to provide … | |
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 … | |
Firstly I would like to say this update is a visually pleasing one and much welcomed :) However, would it be possible to provide an option in individual user's controls to disable such functionality? I have found two downsides to it on my current work machine which partially impact the … ![]() | |
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 … | |
Surely I shouldn't be seeing such messages and the files should be renamed or something?  | |
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? | |
Been playing with the API a fair bit now in terms of writing a C# port of it. I tend to convert everything returned in JSON to an XmlDocument before manipulating it (Simply because I don't actually know how else to handle it within C#) However if I run any … ![]() | |
More of a request than a question really, is it possible to update the API documentation to show **all** possible returned fields from a query? For example the member query example using Dani does not show the fact the user could return a linkedin field in the social media section. … | |
Title states all. Best wishes, don't think I will be too active over the actual period so shall say it now :) | |
How long has the `Page rendered in 0.1497 seconds using 3.33MB` etc message been around on this site :o Am I that ignorant to not have noticed it before? Caught my eye a second ago haha. | |
So what do you do to pass the time at work when it becomes a bit quieter and you have nothing else to do? Personally I read Reddit, Unfortunately I seem to struggle to stiffle laughter at some of the comedical gold I find on there, maybe its just my … | |
As much as I love watching (most definately not stalking -*shakes head*-) this when I have spare time at work. Would it be possible to add a drop down at the top which could isolate different sections of the website, for example only see activity occuring in the C# forum? … | |
So after seeing the typing test Dani so kindly made the other day and put on the site I decided to kill some time writing a simple application to practice my typing on. I have a RTB containing the text which I'm highlighting as I go type letters to show … | |
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. | |
Just wondering as I've been caught by it twice now. It is intentional that after pressing the code button you can't close the code entry window without first entering some text? So if you accidently press it, it forces me to put a random one letter code block to then … | |
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 … |
The End.