1,576 Posted Topics
Re: If I understand the question you aren't looking for the results that could be value 1 OR value but those results that include value 1 and 2. If you have got the values in an array you can append them all to one SQL statement using the AND clause. E.g. … | |
Re: javascript is the easiest solution if you simply want to print exactly what is on screen. include a link (or button) somewhere on the page that looks like this: <a href="javascript:window.print()">Print page</a> | |
Re: Hi, Your question isn't very well worded. But I'm guessing you are asking what database tables should make up your database. That depends entirely on what data you are trying to capture. Generally you would give the table a name that descriptively explains what the table stores whilst keeping it … | |
Re: Use more than one thread. Then you can use thread.sleep on the thread doing the work but leave the main thread active. | |
Re: If you want to do it with .net use a compare validator control connected to the date of birth textbox. The .net validators can be set to use client side validation for a fast response (server side validation still occurs if the client side validation passes however). | |
Re: But what you will find when you Google are answers that handle part of what you are trying to achieve. Break it down into the steps: Determine which radio button is clicked read data from a control (your textbooks) write to file Each of these things can easily be googled … | |
Re: Use a repeater control if you want the output to be in HTML table format. | |
Re: One of your inputs is too long for the corrosponding column in the database, check the allowable lengths for them all to see which one is the problem. As for your first question, what is an effective AJAX table? What are you trying to do? | |
Re: First thing to do would be to debug the code at the line comparing the two. Visually confirm they are the same. | |
Re: Do it client side with javascript. Add an onclientclick event and then alter the css class the element is pointing to. Your HTML: div id="menu1' class="Menu_On"><asp:LinkButton ID="Link_Menu1" runat="server" onclientclick='changeCSS(1);'>Menu 1</asp:LinkButton></div> div id='menu2' class="Menu_Off"><asp:LinkButton ID="Link_Menu2" runat="server" onclientclick='changeCSS(2);'>Menu 2</asp:LinkButton></div> div id='menu3' class="Menu_Off"><asp:LinkButton ID="Link_Menu3" runat="server" onclientclick='changeCSS(3);'>Menu 3</asp:LinkButton></div> Your javascript: function changeCSS(number) { document.getElementById('menu1').className … | |
Re: If your string is always going to be of the format MMM-yy then you can split it on the '-' character and reform it as you require it | |
Re: what code do you have in the page_load event? if you are reloading the same page and need to skip around code that would normally fire you can use if(!Page.IsPostBack) { // run code here } | |
Re: Part of any database connection string is the location of the database. If you are using an online or remote database you simply specify the IP address and port number instead of the server name. E.g. [code] Data Source=190.123.36.12:4333;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword; [/code] | |
Re: Well, using HTML for a web page is a bit of a no brainer, the database you use isn't very important either as long as you understand the differences between them. ASP.net to build your server code is fine, no better or worse than anything else if you have no … | |
Re: What accessibility have you set for NamaGroup? Is it visible to this class? | |
Re: Unless I'm mistaken it only accepts ints as the parameter values. Why do you need to pass it a float? | |
Re: What year are you in and what is your skill level? They will be limiting factors in what type of project would be acceptable for you to do. Are there topics you should include that your instructor has mentioned? | |
Re: How are you defining the footer area in your CSS? And the div that holds the contents - is the height fixed at a set height or auto? | |
Re: If you haven't got a file called ie.css in your website you can take it out without any problems. It looks like you have a problem with the footer part of the page in IE | |
Re: Client side actions happen first because they occur in the browser and don't require the post back. Why don't you simply remove the part of the script that clears the form? | |
![]() | Re: They are using the same template for the page design but loading different data into the page sections. The easiset way to do this is with static HTML of course of simply type the menu directly into the page code. If you want to dynamically populate the data then your … ![]() |
Re: Hi, To increment the id_Student column all you needed to do was define the column as the primary key with auto increment. Assuming the id_Student is an integer data type the declaration would have been: [code] create table some_table( id_Student int not null primary key auto_increment, ....) [/code] Now whenever … | |
Re: I'm not to famliar with RavenDB but SQL express or MySQL are easy to install. There are plenty of online tutorials for using either one and the basics of SQL (table creation, inserting and retrieving) aren't hard to learn. The MySql dev site can help you with most queries. | |
![]() | Re: It isn't very clear what you are trying to do. Can you explain in more detail? |
Re: If this is for HTML why aren't you using <br />? | |
Re: If you want to include StartingWorkDay in the where clause the SQL would be [code] SELECT * FROM Employees WHERE EmployeeId = '" + txtID.Text + "' AND StartingWorkDay = '" + txtStartingWorkDay.Text + "';" [/code] you may have been missing the AND and using a comma? | |
Re: It is pretty easy using HTML5. Check out the source code at this link: [url]http://html5demos.com/geo[/url] Remember that it requires the user allowing access (which is a good thing). If you want to do it in code this example shows how to use a PHP library supplied by ipinfodb.com to back … | |
Re: This part is incorrect [code] ttam.class != ttam1.class!=ttpm.classpm!=ttpm1.classpm [/code] You can't string them together like that. You need to separate them out as separate claues and use AND or OR to build up the logical expression. [code] ttam.class!=ttam1.class AND ttam1.class != ttpm.classpm AND ttpm.classpm != ttpm1.classpm [/code] | |
Re: Is the content inside the container div taller than the screen is high? If so then it will be too much for the container to handle and will overflow. Try setting the container div height to auto and see what happens. | |
Re: Have you checked how the date is formatted in the table? MySQL retrieves and displays DATETIME values in 'YYYY-MM-DD HH:MM: SS' format so values such as 03/14/2012 may not exist in the table. | |
Re: That is because you are firing the code in the SelectedIndexChanged event of the first combo box and included the selectedIndex of the second combo box before it has been changed. [code] Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged Dim r As DataRowView = ComboBox1.SelectedItem … | |
Re: SELECT * FROM table ORDER BY rank, name asc will order it first by rank (Cpl, Lcpland Pte) and then order by name within each rank. What code were you using to get a random result? | |
Re: We won't be able to help you without seeing the relevant code. | |
Re: Do you know HTML and CSS? If you are provided with an image of how the page should look you need to create a template that mimics that look by using HTML and CSS to place the required elements in the correct places. The first step would be to identify … | |
Re: Your second example is much better. You were trying to fit too much data into inappropriate columns in your first post. Now if you wanted to find all courses that were part of a particular meal you can use SQL to extract the data form the database by joining the … | |
Re: There will be something wrong with the connection string for the connection object. Where and how are you specifying the connection object? | |
Re: If there can be multiple images per employee the best way to do it is create another table to hold the images. It will have 2 columns, the employee ID and the URI to the image. Thus it can have many images listed against one employee. Instead of storing the … | |
Re: I'm not an expert with any of them (and haven't used Joomla at all) but it depends on what you want to use it for. Wordpress is good for blogs, article sites, stuff that has a lot of content served dynamically but doesn't require too many add-ons or e-commerce. Thats … | |
Re: TRUNCATE persons; will clear out the table and reset the auto_increment primary key to zero. | |
Re: How long are the credit card numbers you are using? In your getPrefix method you are dividing the credit card number by 100000000000000 (16 digits) so credit card numbers with 15 or less digits never pass your check of is p > 4. The number I tested was 15 digits … | |
Re: So, what trouble are you having exactly? Are you aware you have an H1 tag in your <head> element? | |
Re: A MySQL connection string normally looks like: Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword; But if it isn't allowing access then the password maybe incorrect. If the database or user didn't exist I think the message would be different. | |
Re: You have sor in quotes for a start. Is that a typo or part of your code because it, at the very least, should be: url = sor + "resources/stdInfo/authenticate/" + tx.Text + "/" + passwordBox1.Password+ "/1/570322308ce1121cba1b93f5acc9ebd4733ef2bca90ef942a2cfa224f0aa08dc/1"; | |
Re: Absolute positioning can be a real headache, particulary with resizing the browser window. You should be able to use position: relative to position child elements within their parent with few problems. You will still get some movement between the browsers though. Are you using a CSS browser reset to clear … | |
Re: I know that running locally, especially in debug, slows things down but 10 minutes for that amount of data is crazy. Is your database being used by a lot of other stuff (seems unikely) or is your CPU running at close to 100% for some reason? | |
Re: You will need to use javascript functions to do this. You will need to create a javascript function and refer to it in the on click event of each table data item e.g. [code] <td id="table_1_R06C07" style="width:14%; height:17%; vertical-align:top; padding:1px 4px 1px 4px; border:1px solid #000000; " onclick="changeColor(table_1_R06C07);"> [/code] You … | |
Re: Are those two sections inside their own divs? if yes either use float: left; on the left one or display: inline-block; for them both. If they aren't in their own divs can you post up the HTML so we can view it? | |
Re: Does setting the opacity back to 1 for the CSS of the image not help? It will be inheriting the wrapper styles so you need to set them back to normal. | |
Re: First off the visited locations will need to be stored somewhere, which could mean a small database table or a file. All visited pages will need to be saved into that file with all of the relevant information you would need. A regular expression can easily split out the domain … | |
Re: From the code you have posted here you haven't declared a DataTable at all. You have simply decided to use one in this line [code] For Each row As DataRow In DataTable [/code] But this isn't an instance of a DataTable, its a type. Before you can use the For … |
The End.