|
I have a website create in Visual Studio 2005 (so asp.net 2.0). This site includes a Temporary folder where files are written by this site only for temporary storage. On my computer, I used IIS to give myself rights to read/write to this temporary folder. However, when I publish my website to the company's servers those rights do not transfer and must be manually set on each server. I'd read once that you can put a web.config in any directory to configure it differently from the rest of your website, but I haven't found anything specific. How do I grant read/write permissions to a specific folder? (I'd rather not use a virtual directory in this case)
Any help would be greatly appreciated.
|
|
|
|
|
My xml contains something like this
<intersectionx>street1
<intersectionx>street2
<intersectionx>street3
<intersectionx>street4
<intersectionx>street3
<intersectionx>street1
In my javascript i have stored the street names in an array using Dom.GetElementByTags() method.
in this case my array (lets call it list[]) will have the following content:
list[0]=street1
list[1]=street2
list[2]=street3
list[3]=street4
list[4]=street3
list[5]=street1
is there a good way in JS to make it so that the array contains only a set? (i.e. remove dupicates)
|
|
|
|
|
Hi,
This may be a very common task that many websites carry out, but I dont seem to find a proper solution for the same. Pls help me out
I have a webpage with a datagrid and stuff and 3 buttons. On the click of 2 out of those 3 buttons, I know that the processing time taken at backend is longer, so I need to change the mouse pointer to Hourglass so that none of the buttons are clickable, whereas when the processing is over and screen is updated with new data, I need to show default mouse pointer to the user.
The basic problem what I see here, is that, Because the Client side page rendering doesn't start before server side code is run through, how do you set 2 different cursors at the start of event and then at the end of that event.
Pls Guide me.. I am totally confused, whether this is even possible.
Thanks.. Waiting for ur scholarly reply.
Omkar
|
|
|
|
|
I do not know what language you are using. But one way you could change the cursor is, in the style sheet for your button (if none then make one), add this:
cursor: wait;
|
|
|
|
|
Have a look at AJAX, or if you're using .Net 2.0 you can check Microsoft's Atlas.
Sorry I don't have time to show you the code, but basically you may need Javascript and XMLHTTP to achieve that.
*Ok, just found an article I read in CP before. This article[^] (PleaseWaitButton) is what you need.
"A democracy is nothing more than mob rule, where fifty-one percent of the people may take away the rights of the other forty-nine." - Thomas Jefferson
"Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." - Benjamin Franklin
Edbert
Sydney, Australia
|
|
|
|
|
I have two web pages. The main page contains several VML rectangles that have their "onclick" events set to javascript code. The second page is opened by the first page when a particular link is clicked. What I want to do is change the onclick event of a <v:rect> element on the main page from the 2nd page.
So far I am able to retrieve the reference to the object and view it's initial onclick event:
<br />
var rectelem = window.opener.document.getElementById('event2_2372');<br />
alert(rectelem.onclick);
rectelem.onclick = 'alert(\'This is the new onclick event!\');' ;<br />
alert(rectelem.onclick);
When I switch back to the main page and click on the object though, the initial onclick behavior is gone but the new behavior does not take place. Nothing happens and I get no script error to look at. I've tried moving the new onclick behavior to a function and then setting the object's onclick to the address of that function:
<br />
rectelem.onclick = test;<br />
<br />
function test()<br />
{<br />
alert('This is the test function!');<br />
}<br />
This approach has had the same result so far Any ideas on what I'm doing wrong or how to change this events behavior at runtime?
|
|
|
|
|
I have since been able to get the second approach to work by putting the function test() on the main page and then setting the onclick event = to window.opener.test. This still leaves me with the underlying problem though which is that I need to change what test() does during runtime which I'm not sure how to do.
|
|
|
|
|
Try to put the function object in the event instead of in the page:
rectelem.removed = function() { alert('This is the test function!'); }
---
b { font-weight: normal; }
|
|
|
|
|
This only works if that element is on the same page as the function. My element and function that I want to be used for the element's onclick event, reside on the main page but I need to modify that function's code from the popup page.
|
|
|
|
|
Yes, I did some testing, and it appears that the anonymous function still belongs to the page where it is created, although the function is not declared in the page.
---
b { font-weight: normal; }
|
|
|
|
|
I came up with the following solution:
On the main page I have a function that takes a string and then executes that string as code using the eval function:
<br />
function execCode(codestring)<br />
{<br />
eval(codestring);<br />
}<br />
Then on the popup page I do the following to change the onclick event's code:
<br />
window.opener.execCode("window.document.getElementById('event2_2372').onclick = function() { alert('Modified event code!'); };");<br />
This allows the "function()" assignment to take place in the address space of the main page thus giving it a valid entry point to the function.
If anyone has any tweaks or a better way to do this, please let me know. Thanks!
|
|
|
|
|
I am making a web site that I wish to be viewable by both a normal everyday PC and mobile devices(WM5, CE ect.)
The only way I know how to do it is to detect the browser type and go off that. Is there a way to do this without the wasted page?
Thanks in advance!
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
I've created a web service with an .asmx file that contains many <WebMethod()> functions that I can consume in other projects just fine. Is it possible to somehow share classes belonging to the web service that are not inside the .asmx file?
On the consuming end I would like to be able to declare and use the classes belonging to the web service e.g.
Dim Bleh as new ReferenceName.service.SomeClassBelongingToTheWebService
Bleh.ExecuteSomeFunction()
Bleh.SetSomeProperties = "SomeString"
Is this possible? I currently don't have access to any of the classes belonging to the web service and I have to place all functions inside of the service.asmx file. If I could access the classes belonging to the web service then I could use it to pass strong typed collections and keep my functions grouped accordingly. Thanks so much!
- Paul Anderson
|
|
|
|
|
Hi below is my hyperlink description in a datagrid
<<asp:hyperlink runat="server" text="<%#Container.DataItem("field1")%>" navigateurl="<%# "results.aspx?Param1=" & Server.UrlEncode(Container.DataItem("field1")) & "&Param2=" & Server.UrlEncode(Container.DataItem("field2"))%>">
Please note all the parameters are strings and i am displaying it in Results page so user can be cleaver and handcode the url parameter and print the value in the page.
how can i avoid user from doing this
please help
|
|
|
|
|
uglyeyes wrote: how can i avoid user from doing this
Simple, to avoid it you must not use it.
Use button instead to handle where you need to redirect the user from the server side.
"A democracy is nothing more than mob rule, where fifty-one percent of the people may take away the rights of the other forty-nine." - Thomas Jefferson
"Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." - Benjamin Franklin
Edbert
Sydney, Australia
|
|
|
|
|
I've written a code that creates a receives the request, sent by the web browser(I use FireFox), and then it parses the request and set the headers of a WebRequest object and if it finds any information after the empty line, it writes the information in the WebRequest object, then I get a WebResponse object out of the WebRequest object and creates 2 byte arrays, then it reads the WebResponse stream and puts the data in the first byte array and then puts the Header information of the WebResponse in the second array using the ToByteArray method of the WebResponse's Header propety.
Then I have tried to methods for sending data to the web browser:
1)I have sent the Header array first in a separated Send method and then the Data array in a separated Send method after that, that makes the browser report the "Done" status and shows nothing!
2)I have added the data to the end of the header and sent them az a single Send method, that makes the browser show the html and css and jscript information but it leaves the places of the pictures empty!
Does anyone know, what should I do to fix this problem?
Should I send the header just if the data is in html/text format?
Or the Gip/Png/Jpg of Application data formats also need the header?
If they need, how to make the browser show the images and flashes?
Please help!
Sojaner!
|
|
|
|
|
Try checking your syntax.
|
|
|
|
|
Thats the help you supply? I'm sure you helped him very much.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
The response that you send back to the browser already has a header. If you want the header from the request that you got, you have to replace the current header, or extract the information from your header and add to the current header.
When the browser displays the page, all the addresses of the images are wrong, as the address of the page is not the same as the address where you fetched the page. If you want the browser to find the images, you have to parse the page to find the image tags, and put adjusted or absolute URLs in them. Any other external files that the page might use also has to be corrected, like CSS, Javascript, Flash files, et.c.
---
b { font-weight: normal; }
|
|
|
|
|
But the page shows the tables and other elements using the styles from the css files, I have even saved the page after loading it, and found out that the css files and even the small images are loaded, the only problem is with the bigger files. In fact I want to write 2 programs the are client and server, the server is on my website host and the client on is on my pc and I want these 2 to do the "Tunneling Job" for me!
I want the server to fetch the response of the web resources and send them to my PC hidden from my ISP!
If you know how to write a set of client and server programs can do the Tunneling task, please guide my through this!
I really need to do this!
Sojaner!
|
|
|
|
|
Let's say I have a specific margin set to the body of my HTML page. I do it through CSS like so:
body {
margin-left: 50px;
margin-right: 50px;
margin-top: 20px;
margin-bottom: 20px;
}
When this HTML gets printed, the margins seem to affect the print-out. Is there a way to fix this through CSS?
|
|
|
|
|
You could specify for which media you declare your CSS for.
Have a look at this[^] specification.
"A democracy is nothing more than mob rule, where fifty-one percent of the people may take away the rights of the other forty-nine." - Thomas Jefferson
"Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." - Benjamin Franklin
Edbert
Sydney, Australia
|
|
|
|
|
First of all, I admit freely that I have little knowledge in internet technology.
I want to read in parts of a website using C++/MFC. Using CHttpFile.functions I'm already able to read the webpage into a file. BUT: The problem is, I have to type in my nickname and passwort to reach the data in my account on this website. Can somebody tell me what to do? Or give me a hint what book/article/tutorial to read?
thanks, Veikko.
Additional info:
I analysed the html-code the website returns and I think I found the piece of code that submits the data:
...
I guess that this calls a script on the server to have the subroutine "checkLogin()" executed. checkLogin() is a html-routine that is also available in the website's sourcecode; it reads the values from the edit boxes.
My problem is now: 1. how do I set the value of the edit box to my password and 2. how do I trigger that server-script from my C++ program?
|
|
|
|
|
Hi all,
Iam developing web application in C#.Net, VS 2005. In this, I want to use Print dialog box, to take the print out. Is there any facility available as in the case of Windows Form( drag and drop Dialog Controls from the tool box).
If source code is available, then it would be much helpful for me.
Kannapiran S
|
|
|
|
|
I want 2 disable "save as" option in file menu using javascript.
Do good and have good.
|
|
|
|