719 Posted Topics
Re: I'd go with SELECT TOP 3 FROM myTable ORDER BY myCol ASC | |
Re: This is not CSharp, it's SQL. Try using the SQL Forum, and also provide a little more information on what you are trying to do. | |
Re: Hello, I get it what you are trying to do, but I'd do it a little different... Try like this: $(".the-names").live("click", function(){ // Gets Ro $(this).closest("tr"); // Class to handle if the guest was selected or unselected. $row.toggleClass("guest-selected"); // Sets the color $row.css('background', $row.hasClass("guest-selected") ? 'Red' : 'White'); }); $("#moveright").live("click", … | |
Hi, i'm in a pickle. I'm on a Samsung Notebook with Windows 7 installed about 2 years ago. A couple of days a go my power adaptor stoped working, so I replaced and it all goes well. One day later, I tried to play CS GO and I noticed that … | |
Re: As far as I know, Junction Table is only a concept. It's the functionality of the table, it's the purpose of the table. But it's a normal table, with fields, relationships and primary keys if needed. I don't know any DB Manager that display Junction Tables as any thing different … | |
Re: Mattster, yes, you can access SQL Server with C# in your home, office or internet. The PC with SQL Server installed must have the firewall settings to permit the connection. | |
Re: Certifications may help but I don't think they are essential at all. What gives you credit on the web is what you have done for the web. If you have a beautiful and fufilling portfolio it will be credit enough. Of course that a pretty portfolio doesn't mean much if … | |
Re: Hello there. If you seeking help in a JS forum, try to post the final HTML and JS code. Not PHP code. About the dialog, try using jQuery UI, it's quite simple. http://jqueryui.com/dialog/#modal-form ![]() | |
Re: You can do it without internet, but all the devices must be connected to the same network(wireless in the case). The Student and Driver app can be done in any smartphone (android, ios...). What about the software being customizable? Aren't you the one that is going to write it? | |
Re: Do you have it published somewhere? You can just type the url in the browser and see if it works. If you want to publish local for tests only, whar SO do you have? If Windows host on IIS, if linux or mac try Apache. ![]() | |
Re: Use editor.insertContent( '[tooltip class="' + e.data.listboxClassName + '" title="' + e.data.textboxtooltipName + '"] ' + getSelectionHtml() + [/tooltip]'); And you getSelectionHtml function should return the text. function getSelectionHtml() { var html = ""; if (typeof window.getSelection != "undefined") { var sel = window.getSelection(); if (sel.rangeCount) { var container = document.createElement("div"); … | |
Re: Use a JSON validtor to help you find the problem(s). http://jsonlint.com/ http://jsonformatter.curiousconcept.com There's lots of others. | |
Re: The code seems alright... I tried this and it worked <a href="#resume"> <img src="http://i.msdn.microsoft.com/dynimg/IC86155.gif" onmouseover="this.src='http://arquivo.devmedia.com.br/artigos/Renato_Groffe/GAC/GAC4.jpg'" onmouseout="this.src='http://arquivo.devmedia.com.br/artigos/Renato_Groffe/GAC/GAC3.jpg'" alt="RESUME" /> </a> What browser are you using? Does it throw any errors? | |
Re: Check out the comments if(document.getElementById('prof_level-'+validation_index).value == '') { alert("Please Profecency level "); // If prof_level-'+validation_index is the ID, then you missed the # ('#' is the jquery selector for ID) $('#prof_level-'+validation_index).css({'background':'red'}); // it is not working return false; } if(document.getElementById('exp_year-'+validation_index).value == 0 && document.getElementById('exp_months-'+validation_index).value == 0) { alert("Please select experience. … | |
Re: It's not important in wich class your listener is, what's important is in wich context it'll run. This is not exactly what you are doing, in part because I didn't understand it all, but this may help... class Parent extends Activity { public Button btnTest; public Child objChild; void onCreate() … | |
Re: Are you removing the embed map when you exit the page? All of yours pages are in frames? Anyway... why are u developing an website in flash? | |
Re: What does this bravesites use? Php and MySQL? First thing you need to do is export the site from bravesites, then you know what you have and what needs to be done to upload to godaddy. | |
Re: Something like this? namespace generics1 { public class B { public void methodA() { } } public class A<T> { // Hold reference to B public T myObject {get; set;} // Constructor to recieve B public A<T>(T obj) { this.myObject = obj; } // Call methodA from B public void … | |
Re: It's printing twice because you're calling it twice.. Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load worker1 = New Thread(AddressOf test) ' Logging "test" for first time worker1.Start() ' Logging "Ready" log(logconsole, "Ready") 'Logging "test" for second time test() End Sub | |
| |
Re: I'd started by the simpliest thing...letting the user write the SQL query. After you have the writing, saving, editing and viewing the query working good, then you can create an UI to create the report with drag & drop so the user don't have to know SQL. | |
Re: You have to append the listener to the input: $("input").keydown(function(event){ if(event.keyCode == 9 ) { event.preventDefault(); return false; } }); | |
Re: You should really take in consideration what Taywin and Airshow said. Nevertheless, try this: //make all fields disbaled $("#youTableID").find("input:text").attr("readonly", true); // make only this tr editable $("#tr-"+(disable_row)).find("input:text").removeAttr('readonly'); And when generating the tr <tr id=tr-<?echo $tr_id; ?> > And another thing, there's no such input type *textbox*, it's just **text** <input … | |
Re: What kind of error are you getting? Try using developer console to analyse the http request(often in *Network* tab). Also, use the $.ajax method so you can get an error callback to debug it. Example var msg, outcome; if (all==1){ wn++; msg ="You won, congratulations!"; outcome = "won" } else … | |
Re: I think you should use at least 4 tables: Fruits (Id, Name) Countries (Id, Name) Sizes(Id, Name) Defailts(DetaildId, FruidId, CountryId, SizeId, Value) It all depends in how much info you have, how organized you want to be and how much do you care for the quality of the information, of … | |
Re: This post should help you get started with AJAX http://blog.teamtreehouse.com/beginners-guide-to-ajax-development-with-php | |
Re: You should use the DataGrid events for editing, like CellEndEdit or CellValueChanged. http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellvaluechanged(v=vs.110).aspx http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellendedit(v=vs.110).aspx | |
Re: I know virtually nothing about C or C++, and I've been programming ASP, C#, VB.NET, Java, JavaScript quite sucefully for a few years without problem, but, I still think that if I had knowledge about low level C, C++ and even Assembly, I would do a much better job, because … | |
![]() | Re: Hi there! You can't convert an SQLDataReader to an int. You have to use the reader to get your values. Check those links: http://msdn.microsoft.com/pt-br/library/haa3afyz(v=vs.110).aspx http://www.akadia.com/services/dotnet_data_reader.html Anyway... I think is more practial to use an DataSet, something like this: class Connection_Handler { SqlConnection cn; void ConnectiontoSQL() { string str = "server=xxx; … ![]() |
Re: First you need to split the string by the blank space and get the first part. Then you create an Select Case or an If...Else If. Dim original = "Aug 2014" Dim str = Split(original, " ")(1) Dim month = 0 if str = "Aug" Then month = 8 else … | |
Re: Just guessing...You're trying to catch an SQLLiteExcepion, but what if another occurs? Also, you are missing the exception name. Try catching any exception. try { m_dbConnection = new SQLiteConnection("Data Source=MyDatabase.sqlite;Version=3;Password=password"); m_dbConnection.Open(); } catch(Exception ex) { MessageBox.Show(String.Format(@"Erro: {0} StackTrace: {1}", ex.Message, ex.StackTrace)); } | |
Re: Your problem is simple... `if(document.frmEntry.optMethod != "undefined")` this is testing if an object, that may not exist (undefined) is different than an string with value "undefined". Two ways to resolve it: if( typeof document.frmEntry.optMethod != "undefined" ) OR if(document.frmEntry.optMethod != undefined ) | |
Re: if you are using jQuery: var checkboxList = []; // Loops each fieldset $("fieldset.step").each(function() { var stepIndex = $(this).index(); // Loops each checkbox that is checked inside of the fieldset $(this).find("input:checked").each(function() { // Adds the id to the list checkboxList.push({ step: stepIndex, checkboxId: $(this).attr("id") }); }); }); | |
Re: I don't know much about access but try cmb.CommandText = "DELETE * FROM Food WHERE FNo=" & x | |
Re: I honestly didn't understand what you are trying to do... Let's walk through it... // You have four initial arrays var A = [11,16,12,17,14,18,15]; var B = [12,17,13,18,15,19,16]; var C = [11,12,13,14,0,0,0]; var D = [D,E,E,D,A,A,A]; // Then you merge them into one (the merged would be like this) var … | |
Re: Hi there. MySQL syntax is some what different from MSSQL syntax. For instance, MySQL Parameters don't start with '@'. Thake a look at those pages, it will help you out. http://www.mysqltutorial.org/mysql-stored-procedure-tutorial.aspx | |
Re: What's the error you get and in wich line? | |
Re: Hi there, did you try it without the tabs? It appears to be a css related problem. When I get some problem like this I go into the developer panel on the browser, and start to uncheck all css styles that I think could cause the problem. | |
Re: Did you debug it? Is the line `rw.Cells("date_deliver").Value = sdr("date_deliver")` being executed? Beside that, why are you making an loop for until 8 and only executing something when it's 8? It doesn't make a lot of sense to me. I'd remove all that and increment your initial select to be … | |
Re: What knowlodge do you have about HTML, JavaScript and PHP? Are you going to use AJAX? The first thing you'll need to do is load the first select, then when it changes you fill the second select, then, when it changes, you fill the table. It's hard to guide you … | |
Re: The only way I know how to detect global keys is using user32.dll and kernel32.dll methods. You won't be needing timer to do this, as it is all about callbacks. This is an simple key logger app, **please use it with care and conscience**, *don't make anything stupid with it*. … | |
Re: If you want the HTML directly from the SP, you can do something like: SELECT '<tr><td>' + MEMBER + '</td><td>' + [LANGUAGE] + '</td><td>' + [TYPE] + '</td></tr>'... But it's much more elegant if you use and asp:Template or even a foreach loop to create your html. Databases are supposed … | |
Re: Jelly46, is something like this http://jsfiddle.net/7SwhL/ ? | |
Re: Maybe this can help you: http://en.wikipedia.org/wiki/Analysis_of_algorithms | |
Re: Hello Vishal, there's lot's of ways of doing what you want, but the main change I think you have to do is in ValidateUser and ManagerUser. Those two methods should return the Id of the user/manager, then you can already store then. So, use this select instead: Select @UserId = … | |
Re: I can't understand your problem, post some code please. | |
Re: Hello, if you can focus on HTML 5, it's pretty simple: http://www.w3schools.com/html/html5_audio.asp If you can't, I think the next best solution is an Flash Player. Take a look at http://www.instantshift.com/2010/02/10/21-free-music-players-for-your-website/ and http://flash-mp3-player.net | |
Re: If I'm not mistaken this will work fine: INSERT INTO TableOne(Id, Name) VALUES(1, 'Name 01'); INSERT INTO TableTwo(Id, IdFK, Name) Values(1, 1, 'Name 01 01'); | |
Re: I don't know if you can't directly in the grid, I think you need to update your list/array and bind it again. Something like this: Protected Sub imgBtnMoveUp_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Dim myList As List<MyClass> ' This should be the array used to bind the grid … |
The End.