79 Discussion / Question Topics

Remove Filter
Member Avatar for Mike Askew

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 …

Member Avatar for Shahzad111
17
3K
Member Avatar for Mike Askew

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 …

Member Avatar for Carmelo_1
0
13K
Member Avatar for Mike Askew

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

Member Avatar for Teme64
0
2K
Member Avatar for Mike Askew

A man who has impacted generation's childhood's. A developer and CEO. Some of his developmental achievements are damn impressive. A sad day :(

Member Avatar for ShouldAt3
0
98
Member Avatar for Mike Askew

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?

Member Avatar for Mike Askew
0
113
Member Avatar for Mike Askew

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 …

0
90
Member Avatar for Mike Askew

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?

Member Avatar for Mike Askew
0
534
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
0
174
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
0
257
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
0
964
Member Avatar for Mike Askew

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 …

0
243
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
0
376
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
0
308
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
0
202
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
0
203
Member Avatar for Mike Askew

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 …

1
310
Member Avatar for Mike Askew

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

Member Avatar for Mike Askew
0
138
Member Avatar for Mike Askew

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(); …

Member Avatar for Mike Askew
0
341
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
0
153
Member Avatar for Mike Askew

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.

Member Avatar for Dani
0
250
Member Avatar for Mike Askew

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 …

Member Avatar for Hiroshe
0
265
Member Avatar for Mike Askew

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

Member Avatar for Mike Askew
0
201
Member Avatar for Mike Askew

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 …

Member Avatar for JamesCherrill
0
177
Member Avatar for Mike Askew

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

Member Avatar for Mike Askew
0
184
Member Avatar for Mike Askew

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 …

Member Avatar for Ketsuekiame
0
165
Member Avatar for Mike Askew

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

Member Avatar for Mike Askew
1
405
Member Avatar for Mike Askew

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 …

Member Avatar for diafol
1
373
Member Avatar for Mike Askew

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

Member Avatar for Mike Askew
0
478
Member Avatar for Mike Askew

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 …

Member Avatar for Dani
1
639
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
1
212
Member Avatar for Mike Askew

![6a8f749f83045a7e871bce70356ca161](/attachments/large/3/6a8f749f83045a7e871bce70356ca161.png "6a8f749f83045a7e871bce70356ca161") 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.

Member Avatar for Dani
0
178
Member Avatar for Mike Askew

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 …

Member Avatar for Dani
2
173
Member Avatar for Mike Askew

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 …

Member Avatar for diafol
0
377
Member Avatar for Mike Askew

If you look at my profile currently I appear to have the sponsor badge twice. ![efbee8ef6de449f3b682b8016abe264b](/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8zL2VmYmVlOGVmNmRlNDQ5ZjNiNjgyYjgwMTZhYmUyNjRiLnBuZw%3D%3D/500 "efbee8ef6de449f3b682b8016abe264b") Edit: It is also appearing when hovering over my username on posts to view badges so doesn't appear to be a graphical glitch.

Member Avatar for Dani
0
116
Member Avatar for Mike Askew

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: ![b7083ca588becc7fe80e79f9a010f00a](/attachments/large/3/b7083ca588becc7fe80e79f9a010f00a.png "b7083ca588becc7fe80e79f9a010f00a") However once I had expanded the 'Show Comments' it seems to straighten out to what it should be: ![5a52727527c209a9f9e691b68239660a](/attachments/large/3/5a52727527c209a9f9e691b68239660a.png "5a52727527c209a9f9e691b68239660a") I am running Internet Explorer (Work laptop don't judge me!) Version: 8.0.7601.17514

Member Avatar for Mike Askew
0
137
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
0
136
Member Avatar for Mike Askew

Surely I shouldn't be seeing such messages and the files should be renamed or something? ![UntitledTemp](/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8zL1VudGl0bGVkVGVtcC5wbmc%3D/500 "UntitledTemp")

Member Avatar for Mike Askew
0
81
Member Avatar for Mike Askew

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?

Member Avatar for Dani
0
275
Member Avatar for Mike Askew

Just a quick query regarding sponsoring the site, is there a way to cancel the sponsorship if we needed to financially etc?

Member Avatar for Dani
0
176
Member Avatar for Mike Askew

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?

Member Avatar for Dani
0
214
Member Avatar for Mike Askew

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 …

Member Avatar for diafol
0
276
Member Avatar for Mike Askew

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

Member Avatar for Mike Askew
0
179
Member Avatar for Mike Askew

Title states all. Best wishes, don't think I will be too active over the actual period so shall say it now :)

Member Avatar for azareth
4
213
Member Avatar for Mike Askew

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.

Member Avatar for Mike Askew
0
61
Member Avatar for Mike Askew

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 …

Member Avatar for Bob Hensley
0
186
Member Avatar for Mike Askew

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

Member Avatar for Mike Askew
1
148
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
0
113
Member Avatar for Mike Askew

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.

Member Avatar for Mike Askew
0
49
Member Avatar for Mike Askew

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 …

Member Avatar for Ancient Dragon
0
164
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
0
139

The End.