|
Hi.
I'm thinking about doing a component that calls a webservice to get xml, applies a XSL to it and renders out HTML.
I have an example now that works. not too hard really.
Now I want to be able to let the user provide a xsl to use. This also works fine.
To make it truly reusable i also want to let the use enter the url of a webservice to call and the webservice method to use.
Now, how the h... do I accomplish this? I really have no idea...
|
|
|
|
|
found a solution here:
http://www.c-sharpcorner.com/Code/2004/Feb/GenericWebServiceProxy.asp
|
|
|
|
|
Hello Freinds,
I need to know about availablity of MS XML Parser. I'm developing a 3-tier web application using ASP.NET & C#. This web application is targetted to run on MS platforms. To achieve high reusability i've choosen to use XML strings as communication medium between presentation and business layer. I've written javascript code which parses and renders XML Data to screen. For this purpose i need MS XML Parser at every client machine.
Query 1: MS IE 5.0 and greater can render XML. Can i expect that every client machine running MS IE and greater will have MS XML parser installed irrespective of which MS OS the machine is running ??
Query 2: Is there any other optimal solution ??
Thanks in advance,
Regards,
Hatim Ali.
|
|
|
|
|
1) I think that is a valid assumption
2) Do the parsing of XML into HTML at the server, where you know what is installed. Use CSS to control the layout of the pages.
As a fun project for exploring what can be done with XML and JavaScript, what you have done is great. I'm even impressed with what you were able to do with Javascript.
However, if a member of my programming team presented this structure to me as a valid way of doing things for an actual application, I would send them back to the drawing board.
(The .aspx page is designed to be the presentation. The code-behind the ASP.NET page is for tying your presentation to your business logic. JavaScript is for working around the limitations of HTML and CSS. Web browsers are designed to handle HTML, and anything else will only work some of the time on some of the browsers).
my blog
|
|
|
|
|
Thanks Steve.
Lets say i want to avoid excess server calls by embedding client side scripts into .aspx pages. Obviously for this purpose i've to fetch data, redner it on screen (client side code), moniter the changes made by user(client side code) and then posting data back for making the changes persistant.
Do you know how to achieve this if i choose to adhere to your suggestion.
Regards,
Hatim Ali.
|
|
|
|
|
You should definitely take a look at caching in ASP.NET in the .NET Framework SDK. You could, for example, "embed" an ASP.NET UserControl (.ascx) in each ASP.NET Page (.aspx) that contains the javascript you want to render directly into the resultant HTML that the browser gets. You can cache this dynamically generate set of scripts on a per-client basis, for example, using a variety of means; or you could even cache the generated scripts on a parameter or custom basis so that any access of this page using a particular parameter value (for example, if that's how you customized the javascript) would return the cached information.
This can greatly improve performance in ASP.NET applications.
If you take this into account and use the Xml Web Control you don't have to worry about excess strain (only that which is required) on the server nor whether certain requirements are met by the client browser.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hello,
I have developed an application using VBScript, as ASP pages which firstly uploads some files from the form, and then gets the other input fields to make a process on them. But the problem is that after uploading the files needed, then I want to get the other fields from the form, such as text fields, values from select input field, and so on. But how is that done? I mean how can i get the values of the fields from the same page of the form? because it shows an error saying: object required. cause I still don't have values in the fields.
Regards
Sam
|
|
|
|
|
what component do you use for the upload process ?
you can't use request.Form after using BinaryRead which is used by the upload components..
ASPUpload for example provides a collection to let you reference other fields post to the server with the file.
|
|
|
|
|
Hi, I know that if a parent window launches a child window that opens a different domain than the parent, then the parent window will get a "permission denied" message when it tries to access properties of the child window.
Say my child window is childWindow1. How would I check the url of this window without getting that dreaded permission error? I thought about doing:
if ( typeof( childWindow1 ) == "undefined" )
{
}
but this didn't work, because I guess childWindow1 is still defined. I'm pretty sure using 'null' won't help either. But how do I check that it's a valid object to use before I start doing stuff like: "childWindow1.location.href"?
Please help!
|
|
|
|
|
Hi,
Put a try/catch block around the code, e.g.
href = "";
try
{
href = childWindow1.location.href;
}
catch(e)
{
alert(e.description);
}
In the catch I've simply put the error in an alert message box (This will say 'Permission Denied') but you can do whatever you need to do.
Hope this helps,
Andy
|
|
|
|
|
Thanks a lot, I got it to work!!
|
|
|
|
|
I have an ethernet connection with a shared connection. My gateway uses NAT for translating ip addresses. Hence i have a local ip address and my gateway having a global ip. Is there any way by which i can host web pages on my server and enable others to see them over the internet?
..._ _........o.
I ( V ) MY INDIA
\ /
v
|
|
|
|
|
I think you might be able to use "port-forwarding."
That is to say - create a rule on your router to direct any requests to port 80 on your external IP to your web server.
I think it depends on what kind of router you have, and it would make your NAT network less secure.
It might be better to go to a NoNAT configuration on the gateway, and have a Local NAT Zone and a DMZ for the webserver.
Sorry I can't be more specific on the port forwarding thing - but hopefully it might help you a little.
Best Wishes
Steven
let the stormy clouds chase everyone from the place
|
|
|
|
|
Hi,
I have both AOL and IE browsers in my system. We are developing one chat application .I have to detect the AOL browser. To detect the AOL I used "Request.Browser.AOL" .But it's always returns false even when I’m using AOL browser also. How can I detect the AOL?
I'm using xml Dom to display the messages. When I’m trying to run the chat using AOL messages are displaying frequently it's taking few minutes to refresh. But I’m not having problems with IE.
Thanks in advance
Satya
|
|
|
|
|
|
Perhaps check this out:
How do I prompt a "Save As" dialog for an accepted mime type?
http://www.aspfaq.com/show.asp?id=2161
J. Paul Schmidt, Freelance ASP Web Designer
www.Bullschmidt.com
ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
|
|
|
|
|
thanx for the help, now I know how to do it
|
|
|
|
|
Sorry is this is the wrong place to ask this question but no category seems to fit
Has anyone got the IElementBehaviorLayout inteface to be executed properly. I have created a simple behavior which needs to draw itself and therefore needs to specify its size to the IE layout engine. The GetLayoutInfo() method is called but no other unless I set the width/height in style. I can set them to 0, any value will do. It also works by setting position to absolute but I don't want this. Setting the style values programatically in the behavior init method also works. None of the MS samples show usage of the IElementBehaviorLayout interface.
If anyone has any clues I would be most grateful
Andy H
|
|
|
|
|
How To REgister MTS in My Personal PC it's referance is not comming in the VB.
My OS is win 2000 and IIS Server is also installed in it.
Pls. Send me reply ASAP.....
thanks
This is naresh
|
|
|
|
|
naresh in 2000 its com+ and not mts, hence generally its already provided and u have to look into reference com+ in vb (project-reference) if u do not find it there as com+ services, check for file comsvcs.dll in system32 directory and try registering it.
vikash
|
|
|
|
|
I would like to resize an iframe to the offsetWidth and offsetHeight of the contents in the iframe. However, It requires me to set a timeout so that the offset sizes can be determined. If I dont set a timeout, it seems that IE has not fully deteremined the offset sizes and therefore the iframe gets sized to be too small. Especially when there are images in the contents of the iframe.
But if I wait one second, IE has by then rendered everything and it knows the actual offset sizes of the contents of the iframe.
This seems like a horrible way to achieve this functionality. Is there any javascript event that fires once the actual layout has been determined?
function ResizePage(WaitASec)
{
if (window.frameElement)
{
if (WaitASec)
{
window.setTimeout("ResizePage(false);", 1000);
return;
}
window.frameElement.style.height = document.getElementsByTagName('div')[0].offsetHeight;
window.frameElement.style.width = document.getElementsByTagName('div')[0].offsetWidth;
}
}
|
|
|
|
|
iframes are inline elements so u cant "redraw" them after the page has drawn ... they are drawn inline period afaik
thats why iframes can be tricky to work with
"there is no spoon" biz stuff about me
|
|
|
|
|
I have a form with two input text boxes and two buttons. Each button performs a different action, and uses one of the corresponding input text boxes as an input parameter. Example: enter text in box 1, click button 1, get a result. enter text in box 2, click button 2, something else happens.
A frequent request of users is "I want to type something in box 1 and just click Enter to perform action 1" or "type something in box 2 and click Enter to perform action 2".
How can this be accomplished? I'm assuming there is some DHTML tactics I need to use, but I don't know where to start.
- Mike
-------------------------
"No human being would stack books like that." - Dr. Venkman
|
|
|
|
|
Assuming you can use client side javascript, one way to do this is to add a handler for the document.onkeyup event. Within your function, check to see if the enter key was hit. If so, look at the contents of text box 1 and if it is not empty, call button 1. Do the same for text box 2.
document.onkeyup = MyHandler;
function MyHandler()
{
if (window.event.keyCode == 13) // enter key pressed...
{
// add your logic here
}
}
|
|
|
|
|
I'm at my wits' end trying to write a Calendar as part of an online booking system for a client, he wants two little buttons on it to step forward and back a month. I have written a javascript to write the current month calendar into a html document highlighting the current day etc etc but can't figure how to implement these buttons. My Calendar script allows for the forward and back thing but I've tried writing the buttons in as part of the script and they don't work (as in rewriting the whole page). Essentially I want a table I guess, button in top row, Calendar in merged cell underneath or even frames but I can't figure how to do it. Any bright ideas or suggestions gladly accepted, if this doesn't make any sense please ask questions :P
|
|
|
|