1,576 Posted Topics
Re: The wikipedia article shoud be enough to explain it but, to really brief, n-tier relates to the breaking up of the project or application into seperate layers for easy design, developement and extension. A three tier web app could be considered to be the user interface, the code (business logic) … | |
Re: If you want to check a radio button based on some value you would use RadioButtonList1.Items[index].Selected = true The Text method would not whether it was checked or not. It alters the text assigned to the item. | |
Re: You've only given a very brief description of what you need to do but it sounds like the 'timers' you want would just be more labels and when you click the first label code does what it needs to do and the timer label is updated. | |
Re: If you have added them with the doubled extension and there really are hundreds of them, write a script to get all images in the folder and rename each one in turn (taking the file name part, ignoring the extension, and checking if it contains .jpg. If it does do … | |
Re: I've found the related article, while it maybe sometimes relevant (but not always), is hardly ever very timely. Often they are articles from months or sometimes years ago. This maybe relevant to the poster, to find other articles related to their question, but as I am in the process of … | |
Re: Can't you pass in the points as one data set rather than call it 16 times? You'd need to change your plotting function of course. How fast are new plot points generated (can you slow down the function call to match the incoming data)? If it becomes unresponsive when use … | |
Re: The most obvious answer is that the user name is the student ID. If you don't want to do that and instead have a different login name then you will need another column in your student table that stores their user name. Then you use the user name in the … | |
Re: Simply drag two dateTimePickers onto your form, one for the from date and the other for the to date. You can then access the DataTimePicker.Text method to retrieve the value of either one. E.g. some simple code to get the days between two dates Dim date1 As New Date Dim … | |
Re: It sounds like your class definition is incorrect. You would have forgotten a { or } somewhere and so your class or methods don't properly close. A sample class would look like this: namespace SampleNamespace { class SampleClass { public void SampleMethod() { System.Console.WriteLine( "SampleMethod inside SampleNamespace"); } } } … | |
Re: How does the information relate to the other fields and the gridView? You will need to construct a database with at least one table (maybe more depending on your answer to my first question) to hold the info. You haven't mentioned whether you have done that yet. After that the … | |
Re: It looks like your containing div (with the pink background has a set height to it. The text you added pushed the content beyond that height limit. You can change the height of the div to something like height:auto (so it is always just as big as it needs to … | |
Re: Obviously the connection string you are using will have to change and hopefully the dev team knew enough to store it in one place only (web.config). You can find the connection string syntax for MySQL at connectionstrings.com. Also, in certain places you may need to alter the actual SQL commands … | |
Re: I'm with Momerath here. Just out of curiosity what use could 16.7 million rows be to anyone? If you need to proceed what you need to do can be done with nested for statements, three of them, each one holding one of the sets of 0 to 255. Then just … | |
Re: You are missing some syntax somewhere in the class, most likely a method that has no End Sub. | |
Re: You can simply redirect to the MyAccount page and then it uses the session value to load the appropriate data. If you are going to another page in your own site passing a session variable as a parameter in the URL is really not needed. | |
Re: The best way (if it is a compiled, dynamic site, rather than static HTML) is host it somewhere and give them the URL. You can't expect to send them the files and have them install IIS and a database just to view it. | |
Re: Are intending to use Crystal Reports for it or do you want a simply, ad hoc solution (coding yourself)? | |
Re: Debug your code and step through it. That will help you find the exact section that is causing problems. And this was really hard to read. You should get in the habit of using either pascal case (PascalCase - capitalise every first letter) or camel case (camelCase - capitalise every … | |
Re: You aren't using the dataSource method to match your dataset to the chart for a start. Have a look at the chart doc on MSDN, that will help you a lot. | |
Re: And be particular about which part you are having trouble with. Is it the data extraction or the document printing that you need help with? The better you define your problem (and tell us what you have already done) the more likely we are to help. | |
Re: Are you referring to the connection string for your database or something else? You're question isn't very clear. | |
Re: I just read these two books on C#4.0 and found them to be very good. They might be a little advanced for a complete novice but they go into depth on a range of topics: Programming C# 4.0 Ian Griffiths, Matthew Adams, published by O'reilly Fluent C# Rebecca M. Riordan, … | |
Re: You could put your address image inside a div and your table inside another, set the widths of both to what ever width they should be on the page and then add the CCS rule display: inline-block; to both. That will remove the need for the float and place them … | |
Re: LinkButton.Text = "Like"; You will want the code to check the current text of the button so it knows what to change to I guess. An if statement will do that easily enough: if(LinkButton1.Text == "Like") { LinkButton1.Text = "Unlike"; // plus whatever other codes runs when something is liked … | |
Re: You are calling your cmd.execute twice, once to execute it and again to ensure it worked and clear out the textboxes. That is where the duplication is coming from. Remove the first instance and the second will run and provide you with your check that it succeded at the same … | |
Re: You can call Process.Start() to start an executable. E.g. Process.Start('notepad.exe') will fire up notepad. Your text is only appearing the top textbox because that is all you are telling it to do. If you open a file and want the text to appear in more than one textbox, first store … | |
Re: For HTML emails the images always need to be used with an absolute path. src="image1.jpg" means nothing when the code is away from your development environment. You will need to host the images on a server and point to them with a full address. This link will help you: http://kb.mailchimp.com/article/top-html-email-coding-mistakes | |
Re: We would need an actual explanation of the problem first. Does it fail completely or just not look right? And IE6, really? W3C school stats show IE6 is down to around 1% usage now and it was a terrible browser with plenty of bugs to begin with. Later browsers adhere … | |
Re: Are you wanting to convert a hex color into an image of the same color, a block of that color only? You can use the system.drawing to create an image, brush it with that color (basically filling it with one color and then save it as a file. The images … | |
Re: Check your mySql log files to see what is happening. You should have a mysqld directory with the relevant logs in it. | |
![]() | Re: The checked method returns a boolean, true if checked false if otherwise. So you can use `if (!checkBoxAddSub.Checked && !checkBoxMultDiv.Checked)` ![]() |
Re: Check out how to load a file using LOAD LOCAL INFILE command for MySql or for MSSQL the bulk insert method e.g. BULK INSERT OrdersBulk FROM 'c:\file.csv' WITH ( FIELDTERMINATOR = ',', ROWTERMINATOR = '\n' ) Which database are you using and, more importantly, what error are you getting? | |
Re: The solution is to store the fact that the process ran (or is running) somewhere (database, text file, in memory) and then runReport() checks that value after it determines the time is right but before it starts actual processing. | |
Re: It looks like you are missing an operator (AND or OR) in your statement. sql = "Select * From Skills Where StampNo = " & Stamno & " Cell = " & cell & " And Op-Number = '" & op & "' " This translates to SELECT * FROM … | |
Re: The isNumeric function is probably the easiest solution. It returns a boolean value indicating whether the input can be parsed to a number. | |
Re: Try this version. It looks like you have got your WHERE condition syntax incorrect INSERT INTO jobs (priority, date, deadline, material, status) VALUES (?, ?,?,?,? ) WHERE customerID = (SELECT customerID from Customer where CustomerID =?) | |
Re: The HTML code for placing an image on the page is <img src="location_of_image/image_name.jpg" alt="alternate text" /> I would suggest getting used to the W3Cschools website if you are very new to HTML/CSS. It is a great learning tool | |
Re: I hate to steer you to the competition but check out this article on Stack Overflow: http://stackoverflow.com/questions/2206988/paging-with-an-asp-net-repeater You can code up the logic yourself (i've got the code somewhere but I can't find it) but otherwise the above link should help. | |
Re: what error are you getting when you run this code? Or have you not figured out how to get the file name to delete? If not, you would have to query the database before doing the deletion so you have the name of the file to delete then run the … | |
Re: Are you having trouble with the SQL query to check if the name is already used? just do a SELECT COUNT() on the user name or email. There should be zero results if the name is unique and 1 if it is already registered. You can then proceed to save … | |
Re: You can iterate through a repeater using the foreach loop and the findControl() method to search for the control you want to change, disable, etc. You will probably need to run through the repeater to find the row you want to alter (based on whatever makes that row the target) … | |
Re: Most browsers can be opened with a URL as a parameter using the Process.start() method e.g. Process.start('firefox.exe', 'someURL'). As you will be opening them as their own processes when you do this you won't be able to control where they open (I don't think). | |
Re: Hi, Don't disable the back button. Instead you should have code in each of your pages (in the page_load) that checks if the session is current and if not redirects to the log in page (or whatever is relevant). There once a user logs out and the session is cleared, … | |
Re: Is the name of you unit moduleconnectionstring correct in your config file? It looks like, for the some reason, the connection isn't being returned. Easiest thing to do is debug the function that calls the string and see what the output is. Also, as you're dealing with unfiltered user input, … ![]() | |
Re: it should be href not ref in your anchor tag. | |
Re: is checking for the date modified or created of the file an option? At least using those dates the format is set and you're not relying on user input to determine if you want to operate on that file. | |
Re: Specify what is involved for each project in writing in consultation with the client and get it signed off by the client. Base your price on that and don't deviate. Additions to the project then come at an increased cost. Scope creep will kill you otherwise. Set a realistic deadline … | |
Re: Are you trying to store an image in the database and long blob isn't big enough?? Thats a big image. Can't you store it elsewhere and refer to its location from the database? Or, if you must store it, turn it into bytes and cut it up as much as … | |
Re: I would change the database table to have the employee ID the date time stamp and a status showing whether they entered or exited (1 or 0 basically). Then you just insert into the table the employee ID, the time stamp and the status (based on whether the sign in … | |
Re: You will need to check that you are accessing the correct database, you are logging in as the right user or that the user you are logging in as has the correct permissions to interact with the database or table. You could also be missing the prefix name when it … |
The End.