594 Posted Topics
Re: I would argue C# is better from an ease of reading/typing the syntax point of view. But that's it, otherwise it doesn't matter. It's personal taste. | |
Re: Well it declares some variables R=0; x1= blah y1=blah... Then where it starts 'DI' that's an array of images on the page (DI probably for DocumentImages) document.getElementsByTagName("img") returns an array of references to every img object in the DOM (Document Object Model). DIL is the length of DI so that's … | |
Re: Hmm stinks of copyright theft. Tsk the ever more redundant web.... | |
Re: Books I have read and recommend (in no particular order of preference or genre): [code] Steven Hawkins: A Breif History of Time Issac Asimov: Extraterrestrial Civilisations Jung Chang: Wild Swans: Three Daughters of China Bill Bryson: A Short History Of Nearly Everything Notes From a Small Island Orson Scott Card: … | |
Re: cheese (every time) Children or No Children? | |
Re: You need to compare the column value with System.DBNull.Value So assuming a DataTable for example: [code] if( myDataTable.Rows[0]["someColumn"].Equals(System.DBNull.Value) ) { //Handle situation for null value. } [/code] | |
Re: [QUOTE]Nope. It's going to the left, because you can't see the door where you get in. (not true for England, New Zealand etc) [/QUOTE] What bus? it looks more like a UFO to me :) Why do we call it 'cracking' a window when it doesn't break? | |
Re: a UFO cannot exist, as it is always identifiable by the person who threw/is flying/is flying in it. It's all relative you see. But, then again I suppose if the extra terestrial pilot is of a certain gender it is well known they often can't identify their vehicle beyond it's … | |
Re: This is quite a coincidence, because I have ended up with a new keyboard by accident this weekend. Let me explain. I don't very often have to work overtime on a project (thank goodness) But every now and then one slips a little too far and we end up in … | |
Re: Prior to Sql Server 2005 it would have been text or nText (the n prefix is for unicode data as opposed to ASCII data) as varchar is limited to approx 8000 chars (the max length of a row allowed and if you use it all for one varchar column you … | |
Re: [QUOTE=jbennet;591996]Wait, you Yanks have people to pump your petrol FOR YOU???? WTF.[/QUOTE] We have that here too Jb (admittedly it's the exception to the rule) There's a great little private petrol station near me that fills your tank for you, but I rarely use it as their prices are higher … | |
Re: I'm a sucker for shells and skins me. This is me now, next week ? who knows. | |
Re: Dont have the radio button in the control. Use a repeater to render radio button, user control pairs. | |
Re: Please search forums before you post questions, 99.9% of questions have been asked before: [URL="http://www.daniweb.com/techtalkforums/showthread.php?t=51116&highlight=generator"]http://www.daniweb.com/techtalkforums/showthread.php?t=51116&highlight=generator[/URL] There are sites like these: [URL="http://www.rentacoder.com"]http://www.rentacoder.com[/URL] Full of people who need software, have a look throuogh to get ideas . | |
Re: Welcome to the crazeee world of browser incompatability :) There is an ECMAScript standard (Ha ha ha ha laughs uncontrollably) which has been interpreted by browser creaters in a lot of different ways all who claim compliance (Bunches up in another fit of giggles) javascript running in a browser is … | |
Re: Put your terms into Google, read the links and try it out. I put 'c# myql' into google and first hit was [URL="http://www.aspfree.com/c/a/Database/Database-Programming-in-C-Sharp-with-MySQL-Using-OleDB/"]this[/URL] That's how I learned to connect to MySql from .NET (Not from that particular link but by searching the net and reading whats there and trying it … | |
Re: Google for programming blogs there's acres of material. [URL="http://steve-yegge.blogspot.com"]Steve Yegge[/URL] / [URL="http://joelonsoftware.com"]Joel spolskey[/URL] and [URL="http://codinghorror.com"]Jeff Atwood[/URL] are some of my favourites. They link prolifically to loads of good stuff. Also reddit and slashdot are hot IT sites. | |
Re: You could wrap the C++ app as a plug-in. Other than that... no not really. Are you talking server-side ? | |
Re: [QUOTE]huh? It is not possible to make something from nothing..[/QUOTE] In the beginning ? I'm not sure there is a beginning or a time when there was nothing, merely a barrier at which point the rules of nature that we have created thus far to explain our current universe were... … | |
Re: It's late and I'm a little blurry. But from what I can see in your query I think this: [inlinecode]tDocumentsA.user_id = tUsers.contact_id [/inlinecode] should be: [inlinecode]tDocumentsA.user_id = tUsers.id [/inlinecode] (the same for all document table joins) And all your JOINS should be INNER JOIN not LEFT OUTER JOIN. | |
Re: Can you show a bit of your code behind your form? I presume your building this in VB6 studio? I can help you, just hang in there, give me a little more info. while i re-install vs 6. I did something similar but I havn't touched data controls for about … | |
Re: Hooray! Congratulations, welcome to the 1000+ club :icon_mrgreen: | |
Re: Look into [URL="http://www.sqlite.org/"]SqlLite[/URL] its free and simple and can be packaged with your app more easily. | |
Re: The problem is you haven't researched ASP.NET properly. Use Google (or your favourite search engine) to search tutorials like this: [URL="http://www.sitepoint.com/article/getting-started-asp-net"]http://www.sitepoint.com/article/getting-started-asp-net[/URL] | |
Re: Er hi.. I have no idea how I got to this page, but here I am and although it's a little late perhaps, erm.. thanx peeps! | |
Re: I love FF for it's extensions, I can browse without a mouse, squash all the adds, interogate HTTP Headers ... etc etc etc If I need IE rendering for a non-standards site right click the FF tab and switch rendering engine. I prefer IE's dev toolbar add-in though and thats … | |
Re: Firstly just join the quote_tb to the vendor_tb. That gives the vendor details for ALL quotes. Then use GROUP BY (to merge up all the repeating colums (ID, item, name, phone#, fax#) and the aggragate function MIN on the quote column to reduce the result set to just the lowest … | |
Re: [URL="http://asp.net"]http://asp.net[/URL] Is almost as good as DaniWeb :) | |
Re: ViewState is held in a hidden field within the rendered webpage, session state is held in the memory of the webserver. Each session has a unique id called a sessionid. The sessionid is given to the client browser on first request and quoted by the browser on each subsequent request … | |
Re: That works. Also there is TSQL's ISNULL function. [code] SELECT ISNULL(FirstColumn, '') + ' ' + ISNULL(SecondColumn, '') AS ResultColumn FROM mytable [/code] | |
Re: Fee Fi Fo Fum I smell the blood of a Tsql Cursor, be he slow or be he slower, I'll grind his bones with my set theory mower. Sorry I'm on a personal crusade against cursors :) I offer my own humble solution: [code] DELETE FROM names WHERE EXISTS ( … | |
Re: I think there's a way to attach the mdf file to Sql Server on the remote host during deployment or in the application config or something. I've never done it cos we run our own web-servers and db-servers. But I'll see what I can find out. | |
Re: Whch version? and depends on what was installed (typical/custom) Just type services.msc into Start -> Run Scroll down to Services beginning with M and S Services names are prefixed MSSQLblah.. or SQLblah... | |
Re: Afternoon. It's cleared up a little, a few sunny spells in Ipswich. But, apparently there's more mahem around the corner. My wife and I took the dogs out first thing for there toilet as is customary. Our brolly lasted about three seconds! he he. It wouldn't surprise me if parts … | |
Re: Allowing myself to be sucked into reading threads like this. | |
Re: I think something else you have installed is listening on port 80, browse [inlinecode]http://localhost[/inlinecode] what do you see ? | |
Re: You can do it with a sub query: [code=tsql] SELECT C, F, I, C * F AS total1, F * I AS total2, C * I AS total3, C * F * I AS total FROM ( SELECT (A + B) AS C, (D + E) AS F, (G + … | |
Re: Start -> Run type 'cmd' (without quotes) press enter at the command prompt type: >net start "Sql Server (SQLEXPRESS)" Press enter This ensures the service is running, if it's already started no problem, if it isn't it should start. At the next prompt type: >osql -SCOMPUTERNAME\SQLEXPRESS -E Press enter - … | |
Re: Inherit from BoundColumn and DataGrid classes. Add a public string accessor for the tool tip text in the BoundColumn derived class. Override the OnItemCreated event in your derived DataGrid class. My company is Weblogik so we prefix all our derived classes wl, so you might want to change that. [code=csharp] … | |
Re: You don't need IIS if you have Visual Studio 2005 Express Edition (any edition 2005+) It includes a web server. When you run the app from VS (F5 to debug, or Ctrl+F5 to run without debugger) it starts up automatically on http://localhost:<some random port number> (you get an icon in … | |
Re: You would typically do that in the webform1.aspx page with javascript not in the WebForm1.asp.cs C# code-behind. [CODE] <script type="text/javascript"> document.forms[0]["TextBox1"].focus(); </script> [/CODE] You need to put the javascript at the bottom of the aspx, or make as the onload event of the body tag e.g. [CODE] <body onload="javacript:document.forms[0]["TextBox1"].focus();"> [/CODE] … | |
Re: ?? Usually in ASP.NET you don't cross post to different pages like in the classic ASP days. With ASP.NET the form POSTS to itself by default. So you don't need a re-direct unless you need to go to a different aspx page or resource. In fact re-directing to the same … | |
Re: Why would you not use the web controls? Look at the System.Web.UI.HtmlControls namespace there's HtmlTable objects and HtmlTabkleRow and HtmlTableCell, just foreach your DataTable into HtmlTable controls and add to the Page.Controls collectio or a PlaceHolder.Controls collection. Do you know about the repeater control? Are you using framework 3.5? it … | |
Re: kings should have used code tags, which would also solve the problem. | |
![]() | Re: [QUOTE]Just in time for Valentine's day: John said to Mary, "I'll bet you a Dollar that I can kiss you on the lips without touching them." "You're crazy," said Mary. "That's impossible. Here's a Dollar that says you can't." The two Dollars were placed on the table and John then … |
![]() | Re: [QUOTE]I'd probably give each instance you create a unique id, as the current method looks like its overwriting them[/QUOTE] No ASP.NET will automatically give them unique ID's, you just need a loop [CODE] for(int i = 0; i < 2; i++) { WebUserControl webug = (WebUserControl)Page.LoadControl("WebUserControl.ascx"); cntrlHolder.Controls.Add(webug); } [/CODE] What's … |
Re: [code] try { Console.WriteLine("Insert a date:"); string strDate = Console.ReadLine(); DateTime myDate = Convert.ToDateTime(strDate ); Console.WriteLine(string.Format("The day in letters is :{0}",myDate.DayOfWeek.ToString())); Console.Read(); } catch(Exception) { Console.WriteLine("Sorry that's not a valid date."); } [/code] | |
Re: You haven't given us enough information to give you specific codeing. How do you know what itinery to show in the itinery page? Are you using the query string or session variable? Codeing will be different depending. The only coding that would always be the same is the snippet Jx_Man … | |
Re: You need to add the parameter to the parameters collection of the selectcommand object of the adapter. [code] GroupTableTableAdapter.SelectCommand.Parameters.AddWithValue("@selectedGroup", selected group) [/code] To make this SQl work: [code] SELECT RecNo, Group, SubGroup FROM GroupTable WHERE Group = @SelectedGroup [/code] The @selectedGroup will be substituted by the actual value when executed. … |
The End.