1,576 Posted Topics

Member Avatar for danielsikes

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

Member Avatar for mehfooz
0
184
Member Avatar for sathya88

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>

Member Avatar for hericles
0
86
Member Avatar for vinnitro

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 …

Member Avatar for hericles
0
105
Member Avatar for kytro360

Use more than one thread. Then you can use thread.sleep on the thread doing the work but leave the main thread active.

Member Avatar for Mitja Bonca
0
296
Member Avatar for Amar Rawat

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

Member Avatar for hericles
0
92
Member Avatar for cwdaniels

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 …

Member Avatar for hericles
0
174
Member Avatar for pritesh2010

Use a repeater control if you want the output to be in HTML table format.

Member Avatar for hericles
0
87
Member Avatar for jateshs1007

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?

Member Avatar for hericles
0
103
Member Avatar for Lusiphur

First thing to do would be to debug the code at the line comparing the two. Visually confirm they are the same.

Member Avatar for Lusiphur
0
153
Member Avatar for mrjimoy_05

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 …

Member Avatar for hericles
0
361
Member Avatar for jbutardo

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

Member Avatar for poojavb
0
197
Member Avatar for kamilacbe

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 }

Member Avatar for hericles
0
146
Member Avatar for mitchfizz05

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]

Member Avatar for mitchfizz05
0
187
Member Avatar for vinnitro

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 …

Member Avatar for vinnitro
0
150
Member Avatar for kieky
Member Avatar for hericles
0
114
Member Avatar for Andy90

Unless I'm mistaken it only accepts ints as the parameter values. Why do you need to pass it a float?

Member Avatar for thines01
0
115
Member Avatar for vinnitro

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?

Member Avatar for vinnitro
0
174
Member Avatar for saucy6969

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?

Member Avatar for JorgeM
0
212
Member Avatar for saucy6969

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

Member Avatar for saucy6969
0
227
Member Avatar for obb-taurus

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?

Member Avatar for obb-taurus
0
165
Member Avatar for CriticalError

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 …

Member Avatar for CriticalError
0
94
Member Avatar for miramiey

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 …

Member Avatar for Begginnerdev
0
348
Member Avatar for Usmaan

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.

Member Avatar for thines01
0
198
Member Avatar for CriticalError
Member Avatar for gohabsgo
Member Avatar for Denden17

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?

Member Avatar for Mitja Bonca
0
127
Member Avatar for mani508

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 …

Member Avatar for mani508
0
91
Member Avatar for seemeamal

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]

Member Avatar for seemeamal
0
114
Member Avatar for tonycfzzz

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.

Member Avatar for tonycfzzz
0
150
Member Avatar for showman13

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.

Member Avatar for showman13
0
279
Member Avatar for george8

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 …

Member Avatar for george8
0
215
Member Avatar for fire eaters

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?

Member Avatar for hericles
0
125
Member Avatar for ASPLOST
Member Avatar for thines01
0
99
Member Avatar for versan

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 …

Member Avatar for versan
0
105
Member Avatar for whit89

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 …

Member Avatar for rajeevphp2011
-1
143
Member Avatar for aksay

There will be something wrong with the connection string for the connection object. Where and how are you specifying the connection object?

Member Avatar for hericles
0
80
Member Avatar for caltech

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 …

Member Avatar for nice123
0
154
Member Avatar for SakuyaCross

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 …

Member Avatar for WebOutGateway
0
217
Member Avatar for manaila

TRUNCATE persons; will clear out the table and reset the auto_increment primary key to zero.

Member Avatar for hericles
0
156
Member Avatar for kiail

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 …

Member Avatar for kiail
0
750
Member Avatar for jahanruhi3@gmai

So, what trouble are you having exactly? Are you aware you have an H1 tag in your <head> element?

Member Avatar for hericles
-1
82
Member Avatar for angknown022

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.

Member Avatar for hericles
0
104
Member Avatar for NPDA

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

Member Avatar for hericles
0
94
Member Avatar for dineshswamy

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 …

Member Avatar for Lorel
0
110
Member Avatar for arsheena.alam

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?

Member Avatar for arsheena.alam
0
288
Member Avatar for si1

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 …

Member Avatar for si1
0
119
Member Avatar for Raisefamous

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?

Member Avatar for Raisefamous
0
109
Member Avatar for jltjr

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.

Member Avatar for jltjr
0
179
Member Avatar for jakeevans

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 …

Member Avatar for jakeevans
0
240
Member Avatar for steohl

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 …

Member Avatar for hericles
0
744

The End.