|
I created a simple web service that returns a dataset. It works fine when the service is on localhost. It properly accesses the database and returns a list of items. When the service is run on a server it returns nothing, no errors, just an empty dataset.
I have looked at the iis and the folder that contains the service is virtual and it is setup to support applications.
This is what is returned from the 'invoke' button when running the service on the servers:
<?xml version="1.0" encoding="utf-8" ?>
- <DataSet xmlns="http://tempuri.org/">
- <xs:schema id="Order" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xs:element name="Order" msdata:IsDataSet="true">
- <xs:complexType>
<xs:choice maxOccurs="unbounded" />
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1" />
</DataSet>
It should contain the dataset within the xml. Any ideas?
Thanks in advance.
|
|
|
|
|
There is no obvious reason why the dataset would be returned differently just because it is run on a different computer. It is more likely that the dataset actually is empty, and that you should look for the error in the code that fetches the data instead.
---
b { font-weight: normal; }
|
|
|
|
|
It wasn't empty but the was a permission problem running it on the server. I would have expected that an exception would have been thrown but it just returned.
|
|
|
|
|
Yes, an exception should have been a result. This normally results in the exception being returned as a soap exception.
Do you have any code for catching exceptions that might have caught it and ignored it?
---
b { font-weight: normal; }
|
|
|
|
|
Could anyone tell me what do u mean by dynamic web page?????
|
|
|
|
|
Dynamic is a page that changes based on input from the user or information from a database. A normal HTML page is not dynamic. It is considered static because exactly what you write in the code will be displayed on the screen. ASP, PHP, and many other languages allow you to connect to a database and retrieve information based on what the user is looking for and "make up" a page right then. This is dynamic.
|
|
|
|
|
Hi, all
I am writing a script for protecting a website by password. Here are my script, but with some problems:
<SCRIPT LANGUAGE="JavaScript"><br />
<!-- Begin<br />
var password = prompt("Please Enter Password Here:")<br />
if (password == '123456') {<br />
}<br />
else {<br />
self.location = 'WrongPassword.htm'<br />
}<br />
</SCRIPT>
The problems are:
1. When I type in the website in the browser, it already loads all the content before it pops up the prompt to type the password, that means the protection is useless.
2. I have searched on web many different kinds of codes for password security. But, their codes usually divide into 2 parts, the head and the body parts. However, I can only have one column to enter the code. Therefore, I want to know what adjustments I need to make in the above code so that I can tackle the problem 1 stated above.
Thanks.
~~~Landy
|
|
|
|
|
Your password page should redirect to another page when the password test passes. The same as you redirect to WrongPassword.htm if it fails.
However, you're sending the password to the client, which makes the whole thing futile. Your password page should work on the server, should use the database for multiple passwords, and should call a stored procedure so your code does not reveal the layout of your database with regard to password information.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I tried this code in an asp page it works fine i entered the script in the body
|
|
|
|
|
is there a way i can display a image in a webform and have scroll bars to move the image inside the page i tried putting my image control in a panel hopeing that the panel would allow the image control to scroll but it did not work can somebody help me with this
Thanks'
chad
|
|
|
|
|
Your idea is right on track. All that is missing is to tell the browser how to handle that the contents is larger than the panel.
Set the css style overflow:scroll; on the panel.
---
b { font-weight: normal; }
|
|
|
|
|
I haven written modules that generates a series XML files and a report in a number of HTML files which include and index etc. What I am having difficulty with is that we would like to be able to click on the name of one of the XML files in the report and get the browser to pop up the Save As dialog, so that it can be copied to a location other than the default.
This must be possible. I just haven't found out how as yet.
Happy programming!!
|
|
|
|
|
Hi there,
The extension .xml is a known type, so the browser by default will open it when the user clicks on the link pointing to the file. If you want to force the File Download dialog box, you may consider using the Content-Disposition header field. Instead of using the anchor, you basically use a seperate web page which is responsible for reading the content file of the xml and write out to the Reponse object, and you need to add the Content-Disposition field to the header of the response. With this field, you can suggest a filename which is displayed in the File Download dialog box.
|
|
|
|
|
Thanks for you're suggestion. I'll try it out.
Incidentally the file I generate does not use the .xml extension. It doesn't seem to matter what the extension is, for IE anyway, the browser checks that the file contains displable text so it displays it.
Happy programming!!
|
|
|
|
|
I must be doing something wrong as I can't get it to work. Could you suggest how the HTML is supposed to look.
This is not being done via a server.
Happy programming!!
|
|
|
|
|
The markup in the html file looks something like:
<a href="Download.aspx?filename=foo.xml" >foo.xml</a>
So you specify the web page in the href attribute of the anchor element instead of the foo.xml. Also, you might want to add the name of the xml file to query string so that it can be used later in the web page for reading the file content. In the web page, you programmatically add the Content-Disposition field to the header of the reponse.
In addition, you can also statically add the Content-Disposition field to the header in the IIS-snapin (Here, I assume you are using the IIS as your web server).
|
|
|
|
|
Ok, I know what you are thinking. Why was this posted on the web forum? Well, let me explain.
I Have a DHTML text editor that I currently import Microsoft Word documents into via IE. The only problem is only text comes across currently. I came across info on MSDN that said images can be saved out of Word 2003 as bmp files. So far I can open the document, get a handle on each image, and copy them to the clipboard, but for some odd reason, probably my fault , I can't seem to save them to the hard drive.
I've included the code below, perhaps you can assist, especially if you know MS VB.NET and VBScript better than I, which wouldn't be difficult to do. Basically I get the image copied to the clipboard fine but then I don't seem to be saving anything out. Nothing fails, it just doesn't save. Any help would be greatly appreciated.
Sub ImportWordDoc()
On Error Resume Next
Set wApp = CreateObject("Word.Application")
wApp.Activate
wApp.WindowState=0
call wApp.Resize(400, 400)
Set wDoc = wApp.Documents.Open(document.all.FileToOpen.value)
wApp.Visible = true
For index = 1 To wDoc.InlineShapes.Count
inlineShape = ""
Set inlineShape = wApp.ActiveDocument.InlineShapes(index)
inlineShape.Select()
wApp.Selection.CopyAsPicture()
data = ""
Set data = Clipboard.GetDataObject()
If data.GetDataPresent( GetType( System.Drawing.Bitmap )) Then
bmp = ""
bmp = CType(data.GetData(GetType(System.Drawing.Image)), Bitmap)
bmp.Save( "C:\mybitmap" + cstr(index) + ".bmp" )
End If
Next
Call wDoc.Close(True)
call wApp.Quit(True)
End Sub
|
|
|
|
|
I have a DHTML menu that shows on top of the iframes but not over boxes and other elements in the frame. Here is a link to the pages I am talking about.
http://officerjellynutz.com/dhtml/[^]
|
|
|
|
|
Hi there,
AFAIK, people would normally choose to make the boxes invisible, and set them back to normal when the menu is closed.
|
|
|
|
|
Hey, i am a programmer for a software company and am familiar with vb.net and database programming only. I would like to learn how to create web sites and web applications. WHat is the best tool to use (can i use vb.net to write an actual website??) and what are some good resources for begginers???
|
|
|
|
|
Joey Picerno wrote:
can i use vb.net to write an actual website??
Yes, You can use this to create Web Applications and use VB.NET. There are pleny of good resources in this site under the articles section. The best tool I've found is Visual Studio.NET 2003, there are others, but I've had the best usage with VS.NET. Since you already have a programming background you should be able to pick up on the web side of things relatively quick.
Nino
|
|
|
|
|
We are posting some info to a webserver, the content type is using the default(x-www-form-urlencoded). The data is actually XML that is being posted. Is the data being MIMEd for transit? If so can we change the content type to prevent it from being MIMEd? Seems a shame to take perfectly good ASCII chars, bloat it up with MIME, just to de-bloat it at the other end.
Appreciate the input.
Bill asked "How does the bloater drive work?"
Sarge said "Well we turn it on, the ship and it's contents bloat up until the front of the ship reaches the destination. Then we turn off the bloater drive, and de-bloat down to our destination"
Bill the Galactic Hero
|
|
|
|
|
Hello-
Seems like a simple problem but I can't seem to crack it. I'm building a Browser Helper Object that accesses the elements on a web page using the IHTMLElementCollection it gets from the main document. I can navigate the static elements, get and set their properties, etc. EXCEPT that some of the elements on the page are dynamically generated by JScript at page load time and put into a <div> called 'content'.
How do I access the generated elements? When I access 'content' there is nothing inside, i.e. I can only access elements that are static. You'd think something like content.form.xyz would do it but there's nothing in there.
Any help would be greatly appreciated!! Thanks and best regards,
Nicholas
|
|
|
|
|
Hi there,
Are you sure that the dynamically generated elements are added to their containers already before you run the code to access the containers to get the children as an instance of the IHTMLElementCollection type?
|
|
|
|
|
Thanks for your response... that made me check again and that was the problem!! I thought waiting for READYSTATE_COMPLETE would be enough, but I set it up to enumerate the page elements after an externally-fired event and voila! the items are there.
Now the question is... how do I know when the script that creates those items has finished? Or better yet, how do I know when all the scripts on the page have finished running?
Thanks again!
Nicholas
|
|
|
|