1,576 Posted Topics

Member Avatar for discovery-power

&lt and &gt is normally used in HTML to replace < and >but not in actual code. Replace those &lt and &gt with < and > in your code and it should work.

Member Avatar for discovery-power
0
225
Member Avatar for davy_yg

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.

Member Avatar for teedoff
0
110
Member Avatar for JustineAubrey

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

Member Avatar for JustineAubrey
0
254
Member Avatar for GAiXz

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 …

Member Avatar for GAiXz
0
152
Member Avatar for Amstarr

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

Member Avatar for M.Waqas Aslam
0
104
Member Avatar for soft_coder

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?

Member Avatar for hericles
0
77
Member Avatar for BrickZ28

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 …

Member Avatar for hericles
0
858
Member Avatar for Bassznapper

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.

Member Avatar for stultuske
0
197
Member Avatar for kothaisaravan
Member Avatar for clipper_soul

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

Member Avatar for clipper_soul
0
421
Member Avatar for evilguyme

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 …

Member Avatar for almostbob
0
142
Member Avatar for showman13

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

Member Avatar for showman13
0
126
Member Avatar for amm038

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 …

Member Avatar for amm038
0
95
Member Avatar for zrony

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]

Member Avatar for hericles
0
50
Member Avatar for ryma

First question, have you debugged the code and checked strLoadSource has the correct information in it?

Member Avatar for hericles
0
131
Member Avatar for PF2G

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.

Member Avatar for PF2G
0
87
Member Avatar for zrony

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 …

Member Avatar for bhartman21
0
259
Member Avatar for PF2G

There is an actual PHP forum on this site where this might get answered better...

Member Avatar for pritaeas
0
152
Member Avatar for wissam.ashkar

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 …

Member Avatar for mani-hellboy
0
202
Member Avatar for vivekanandaan

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 …

Member Avatar for malkit.672
0
197
Member Avatar for shandoosheri

Are you wanting to start a service? Some code that runs in the background with no visual interface?

Member Avatar for NetDeveloper
0
257
Member Avatar for ng5

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 …

Member Avatar for codeorder
0
141
Member Avatar for a1a4a

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.

Member Avatar for princenathan
0
1K
Member Avatar for Karlwakim

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 …

Member Avatar for Karlwakim
0
151
Member Avatar for tapandesai007

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 …

Member Avatar for mani-hellboy
0
266
Member Avatar for kikic

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

Member Avatar for mani-hellboy
0
195
Member Avatar for aldm

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.

Member Avatar for aldm
0
242
Member Avatar for badgerland

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 …

Member Avatar for datakeyword
0
547
Member Avatar for gspeedtech

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 …

Member Avatar for gspeedtech
0
493
Member Avatar for bhagawatshinde

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 …

Member Avatar for bhagawatshinde
0
101
Member Avatar for deceivingrakesh

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?

Member Avatar for Cruize_Invades
0
125
Member Avatar for jasbun

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 = // …

Member Avatar for hericles
0
100
Member Avatar for markdean.expres

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

Member Avatar for hericles
0
63
Member Avatar for tomexlfc

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]

Member Avatar for tomexlfc
0
175
Member Avatar for learning_php

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 …

Member Avatar for learning_php
0
170
Member Avatar for uva1102

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 …

Member Avatar for thines01
0
137
Member Avatar for gerchi152

Remove the comma after author1. It should read: [code] strsql = "delete book1, author1 from book_Load where Book_ID_no = '" & bkIDnum.Text & "'" [/code]

Member Avatar for M.Waqas Aslam
0
77
Member Avatar for Balasubramaniam
Member Avatar for revjim44

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 …

Member Avatar for mani-hellboy
0
260
Member Avatar for mastanasp

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.

Member Avatar for mani-hellboy
-1
93
Member Avatar for applebule5

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]

Member Avatar for hericles
0
168
Member Avatar for Vanquish39

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 …

Member Avatar for Commando112
0
113
Member Avatar for javaAddict

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.

Member Avatar for javaAddict
0
270
Member Avatar for Q8iEnG

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 …

Member Avatar for Q8iEnG
0
268
Member Avatar for dashawk

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?

Member Avatar for dashawk
0
263
Member Avatar for Tonino48

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 …

Member Avatar for mani-hellboy
0
194
Member Avatar for Jigs28

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?

Member Avatar for mani-hellboy
0
274
Member Avatar for PF2G

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 …

Member Avatar for jbutardo
0
116
Member Avatar for fawadkhalil

Use the HttpUtility.UrlEncode(String) method. It will take the string and turn the special characters into URL compatible code.

Member Avatar for hericles
0
50
Member Avatar for arunpgs

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 …

Member Avatar for kamilacbe
0
129

The End.