Hi all,
On one of our web applications, an image is created dynamically. On this image the user can hover the mouse over some parts of the picture to get certain information, and can then click on these same annotations to edit them. In order to do this, I create an image map along with the...
Emma,
Check out this post on .Net 247:
http://www.dotnet247.com/247reference/msgs/18/90330.aspx
It seems that he had the same problem that you have and was able to fix it. It is basically the same fix as I gave you, but he uses a bit different way to get the XML (uses an IOStream)
Just...
Is your datagrid in a panel that has its visible property set to false? If so, each time you access the panel, it can reset its visible property to false. Then, when you run your code and set the panel's visible property to true, the datagrid is still hidden.
I may be assuming too much, but I...
Since the array is now "nothing" then you can not try to access the array without getting an error.
Simply check to see if it is nothing:
if myArray is nothing then
'Array has been cleared
else
'Array has not been cleard
end if
HTH!
Kevin B.
.Net Programmer [thumbsup]
Hmmm. . . okay, too bad it wasn't the simple solution. . . . those are always more fun!
The error you are getting is a product of the ds.ReadXML(url) statement. The XML you are trying to read probably has some sort of weird character in it. Try using a XMLTextReader to read in the XML first...
The request.form should work. . . why do you have a semi-colon in that line of code? If you take it out, it will probably work.
If not, what error is it giving?
Kevin B.
.Net Programmer [thumbsup]
Probably because the string is empty. . . you just need to surround it with an if statement:
For i = 0 to 48
For k = 1 to 4
if not proparray(i, k) = "" then
proparray(i, k) = left(proparray(i, k), len(proparray(i, k)) - 1)
proparray(i, k) += " "...
Try this:
For i = 0 to 48
For k = 1 to 4
proparray(i, k) = left(proparray(i, k), len(proparray(i, k)) - 1)
proparray(i, k) += " "
Next k
Next i
(explaination: It stores the every character but the last one in proparray(i, k), and then adds a...
You must declare the bounds of your array. For example, instead of having:
Dim proparray(,) as string
You could have:
Dim proparray(5, 100) as string
Or:
Dim Dimension1Size as integer = 5
Dim Dimension2Size as integer = 100
Dim proparray(,) as string
Redim proparray(Dimension1Size...
When do you call the code that does the databinding? If it is called from "Page_Load", then it will rebind the data before the "txtVCP_SelectedIndexChanged" code is run, which will cause the value to always be A.
If it is called from the Page_Load function, you may need to...
In order to print graphics to a browser, you cannot simply print them to the page (unfortunately). You must use the graphics tools to create a graphics file, and associate that with an image.
I wish I could find the URL of the site that got me started so I could give it to you, but I cannot...
gagz,
You were very close! You already had all the code you need on the page :)
Use the same context reference for session as you do for request:
System.Web.httpContext.Current.Session("userid") = System.Web.httpContext.Current.Request.etc.etc.etc...
HTH,
Kevin B.
.Net...
Your quotes are misplaced on your update command. It should look like this:
cmHits.CommandText = "UPDATE tbl_hits SET hits = '" & incHits & "'"
Note that the only single quotes that are used are around the value that is being inserted (in this case, incHits).
As a side...
Just use listA.ClearSelection. This should do what you want it to do! (I don't know why you can't manually do it. . . one of the great mysteries of the universe :-D)
HTH Kevin B.
.Net Programmer [thumbsup]
Chad,
If you are storing the login with a session variable, then it is possible that user that cannot log in has his browser set to disallow cookies. You can fix this by changing the server to allow cookie-less sessions, or by having a script that checks to see if the browser does not allow...
You are trying to access the wrong data. The cell(n).text field will not have changed, but the data in the textbox field will have changed (remember that when you go into edit mode, the cell text is merely hidden and replaced with a textbox).
For example, if the field you are updating is in...
You'll usually get this error if you have already declared this variable earlier in your function. Make sure you haven't already dim'ed it earlier!
HTH Kevin B.
.Net Programmer [thumbsup]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.