1,576 Posted Topics
Re: < and > is normally used in HTML to replace < and >but not in actual code. Replace those < and > with < and > in your code and it should work. | |
Re: You will want to use display: inline-block for the list items of the ul. This will make them line horizontally rather than the default vertical. | |
Re: For the first part of your question you don't need the object to hold the data. You can access the row and column of the dataTable in the dataset. I normally simplify this by using a dataTable instead. [code] Dim dt As new DataTable myDA.Fill(dt) SystemNameTextBox.Text = dt.Rows(0).Item(0) LocationNameTextBox.Text = … | |
Re: If you are looking for the actual connection string to connect to a database you need go no further than: [url]http://www.connectionstrings.com/[/url] It has ever connection string you will ever need. In terms of connection to a database and manipulating the data the method can change slightly depending on the database … | |
Re: Simply reverse your loop. Set num1 to 9 and subtract from num1 in each loop. And change your loop criteria so it stops at zero. That should be enough hints to help you:) | |
Re: Where are you calling the web service in the aspx page? Is it possible it is either in the page_load function or being repeatedly called by the page_load? | |
Re: You might want to debug your code to see exactly where the problem occurs but I think it might be because you are opening 2 streams to the same file when the form loads. If you caught the exception you would probably see a message saying the file was already … | |
Re: Change your <center> tag to another <div> and in the CSS specify it a width (I'm guessing 950px) and then use margin: 0 auto o auto; As long as a block element has a width specified and margin-left and margin-right set to auto the element will be centered. | |
Re: What the error message? They generally point you in the right direction. | |
Re: If you view the page source you will see that the text you are after isn't even contained in the page. It is an iFrame which calls a php script to handle the actual maths. Not sure how you are going to get around that... | |
Re: wrap a div around the entire page contents and in the CSS give it a width of 100% (so it fills the width of the screen). Then have a second div that specifies an actual width (how wide you want your content to be) and use the margin-left: auto; and … | |
Re: If you have a field that holds the email you can include a LIKE clause in your query. E.g. to find all Hotmail address: [code] SELECT emailAddress FROM table WHERE emailAddresss LIKE '%hotmail%'; [/code] The % in the query indicate where hotmail should be in the string. By including % … | |
Re: Do you know how to connect to a database and run an SQL query? Sufyan was simply saying that you can have 1 table for all users with a column that specifies their role. You then execute your SQL query: [code] SELECT * FROM users_table WHERE user_name = userID AND … | |
Re: I had a quick look at this tutorial and it should cover everything you need to know about using credentials in a web service to pass through user and and password and use the web service to get a result. [url]http://www.devx.com/codemag/Article/16762/1954[/url] | |
Re: First question, have you debugged the code and checked strLoadSource has the correct information in it? | |
Re: If you are needing to combine the data across those three tables you will need to do a join. Can you post up the actual structure of each table? That way we can help you more, at the moment we would just be guessing about the columns. | |
Re: There is no MySQL version for .Net. I think you are looking for the .Net connector for MySQL (component that allows .net to talk to MySQL). That can be found here: [url]http://dev.mysql.com/downloads/connector/net/[/url] The connector is added to your .Net project as a reference and in your class you import MySQL.Data.Client … | |
Re: There is an actual PHP forum on this site where this might get answered better... | |
Re: There is no code to create a breakpoint. In the VS IDE click in the left margin beside the line you want to check (a red dot will appear) and then start your app in debug mode. The code will run until it reaches that point and then open up … | |
Re: If you want to get the max value from one column you don't need to bother with the dataTable or dataSet at all. SELECT MAX() returns the max value so just parse the result from the executeScalar() command. But, beside that, seeing you aren't using parameters check your column names … | |
Re: Are you wanting to start a service? Some code that runs in the background with no visual interface? | |
Re: The substring function lets you specify a start point in the string and how many characters to take from that point. So to take the first 8 characters of a string would be: [code] string smallString = longString.subString(0,8) [/code] Left and right accept the string and the number of characters … | |
Re: I think to send from gmail you need to specify it (gmail) as the host and refer to smtp.gmail.com This C# article shows it but it is easy enough to convert the one line of code to VB [url]http://blog.ysatech.com/post/2010/12/02/ASP-NET-Send-email-using-GMAIL.aspx[/url] Look at line 34 in particular. | |
Re: I'm not sure about taking control of your server from an SQL injection attack but you can easily lose your database. I can't remember the exact SQL code but I have seen scripts that can ascertain table names from the system tables. If you allow SQL injection attacks hackers can … | |
Re: Instead of ApplicationPath try Server.MapPath. This will give the location relative to the server files (within IIS or whatever server you are using) instead of the location of the files on disc ,which is what ApplicationPath is giving you. Server.MapPath will give the location from localhost, instead of from the … | |
Re: You have just asked us for a LOT of help and, to be honest, this is pretty ambitious for your first web app. If you really want to proceed with this break it down into its component parts. Pick one part (registration or creating the auction maybe) scope it out, … | |
Re: You have referred to the table as Price_Ranges and PriceRanges. Which one is correct? If it is Price_Ranges in the database then no, dbo.PriceRanges does not exist. | |
Re: Why don't you make it easier on yourself and simply record the first day of the account activation? Then you just compare to that value in your code to see how much time is remaining if any. It saves you updating the record for every user every day just to … | |
Re: Have you sent the tab index for the controls? If you aren't familar with it, in the properties for the control in the VS IDE you can see the tab index. This is simply a numerical control for setting the order the controls are reached via using tab. Control 1 … | |
Re: Why are you trying to shuffle in the database? Extract the questions and ID into a dataTable and randomly select which ID will be next (or shuffle if you want the order to be established before the test begins). You could easily record which question was the previous one using … | |
Re: Without a postback means you will need to use AJAX. You say "is there any way to accomplish this is asp". Do you mean in ASP (active server pages) or are you using .net and you meant asap? | |
Re: On your form you will need a drop down list, textbox or slider control to accept the pen width as input from the user. Save this width to a variable and then when you are creating the pen use that variable to set the width. [code] float width = // … | |
Re: If you want to code an app that retrieves mail from Yahoo you will need toget used to their API. Head over to [url]http://developer.yahoo.com/mail/[/url] and start reading:) | |
Re: Not sure if your second post was sarcasm or not but... Have you set the InsertCommand property of your CommandBuilder? I can't see it here. [code] daTest.InsertCommand = cb.GetInsertCommand() [/code] | |
Re: Heading tags are considered block level elements (as are divs) so the inclusion of a H tag forces everything below it to move down. Text added directly or in elements like <span> are considered inline and don't have the same effect. If you ever want a block element to behave … | |
Re: What? Are you asking how to update one column to indicate that a particular task is 'done'? Assuming the task has some ID value associated with it you can use: [code] UPDATE table_name SET column_name = value WHERE id_value = task_id; [/code] Obviously I have used made up names as … | |
Re: Remove the comma after author1. It should read: [code] strsql = "delete book1, author1 from book_Load where Book_ID_no = '" & bkIDnum.Text & "'" [/code] | |
Re: You can use validators on the first page to check some of the values entered (check that something is entered, that it is a number, falls within a certain range, matches a regular expression, etc). These validators fire when a control is clicked (such as the submit button) and if … | |
Re: This means your SQL statement is returning null from the database table. Check your SQL, especially if a where clause is being used, and make sure null isn't being returned. | |
Re: From what I can see here the error is occurring because the line that actually sets your cn variable to the real instance of the connection object is commented out. Without that line your cn variable is null. [code] 'cn = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=TestDataBase.accdb;Persist Security Info=False;") [/code] | |
Re: Hello, You will need a combination of CSS and javascript to do. CSS to display the base image in the right location (i.e. top right but with no text included) and the javascript to accept the number and place it over the image. The easiest solution is probably a single … | |
Re: MySQL can hold massive amounts of data and search it quickly. It is comparable to MSSQL or Oracle in terms of use in large projects (without getting down to the nitty gritty differences). MySQL is used on most web hosts for the simple reason that it is free. | |
Re: There is no CSS file to go with this? And do you really expect us to troll through this looking for where the color is set? I get the feeling you just copied the whole query library into the post. The code from your web page would be far more … | |
Re: It looks like you are correctly accessing the JSON code as the data is appearing in your list view. Is your issue how to pass the data to another form? | |
Re: That error means one of the variables is not set to an object. It will be uninitialised instead. In your case this means that one of the variables in the line: Int32 TTList.IsItemReallyVisible(TTList*, CTreeItem*) : is not set to anything. You will need to check where these variables get their … | |
Re: What error does it give and what exactly do you mean by 'different output'. The connection string you have in your app.config is exactly the same as the one you used in your class? | |
Re: You aren't accessing the database correctly. You normally use a dataAdapter to fill the dataTable. [code] Dim da As new MySqlDataAdapter(cmd) // pass in your command object here da.Fill(dt) // automatically open connection, extract data to dt and close connection [/code] Now you have a dataTable with your data in … | |
Re: Use the HttpUtility.UrlEncode(String) method. It will take the string and turn the special characters into URL compatible code. | |
Re: I think the OP was referring to parsing the user input and using some form of language syntax rules to build an SQL statement from the words entered. This is very difficult to do properly and I would be tempted to use the drop down list method suggested above. Maybe … |
The End.