|
I had a similar requirement some tiome back... as far as I know (which isn't saying much...) this can't be done (security don't you know, ooh...), but as it was an acceptable solution for me to save the files within another, different web directory I was able to get around this by:
a) saving the files to the current one;
b) using an FTP class to transfer them to the second directory;
c) deleting the originals;
Maybe not so elegant, but it did the job...
regards
F
|
|
|
|
|
Hi Fred,
thanks a lot for your comments. Everything I've read seems to indicate that it is not possible. One solution that I have come up with (which I don't like) is the following:
a) Select a web directory where all the files will be saved
b) Prepend the path where the file should be saved as the first line in the file.
c) Have a process that polls the directory
d) Have the process read the destination path, remove the first line from the file and move the file.
While, this works fine, I don't like having the process polling all the time. It would be great if the web service could launch a console app that took care of moving the file and then terminated. However, this results in access problems.
Hopefully a better solution will come along soon.
Thanks,
-----------------
Genaro
|
|
|
|
|
Can you not just grant whatever user context the web service is running the rights to the folder where you want to save them?
|
|
|
|
|
Yes, I think you can do that. But I want to be able to save it anywhere (the WS user would specify where to save it).
-----------------
Genaro
|
|
|
|
|
Could you then run your web service under the context of a domain user with read/write rights to whatever folders you want to make available?
|
|
|
|
|
HI,
I have a problem in ASP.net.
i have 2 window one parent that contains a list box. and one add button.
on click of add button i am opening a popup.
the popup window contans
2 list box
1st Available Fields
2nd Selected fields.
and 2 buttons ADD and Remove
Click on Add button will add item from list one to list 2
Click on Remove button Remove item from list 2 to list 1
i want to pass complete list of selected items to parent window listBox.
How it can be done,i will welcome any help or comment.
list of selected items i am able to pass to parent but only string i can paas.i want to populate the list box of parent window without any post back of parent window.
Reply me ASAP.
Vikas
vikas
|
|
|
|
|
Say I have 4000 users who are instructed to go get 100mb file x from http://go-get-it-boys.com/x at the same time.
The server is running IIS, default install, nothing fancy. Now how will IIS handle it? Will it be sequential, i.e. user 2 will be able to start as soon as user 1 finishes, or will it be in parallel? And if in parallel, how parallel, i.e will there be 4000 threads created?
Thanks!!
|
|
|
|
|
HAHAHA Nice domain choice...
Anyway don't do that with only one server. Max you want is probably 40 and IIS will handle that sequentially.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Say I have several machines, there will still need to be one machine (or more, i don't know how those things work) that distributes the load. Wouldn't that machine, the one that distributes the load, also get jammed with so many requests?
Say I am a manager with 1000 employees and everyday I get requests to lick 4000 envelopes. I delegate the work to my 1000 employees, but the job itself of delegating the work might not be something that one manager can handle.
So how do big companies, like MS, able to host a file on one mirror and still handle the load?
|
|
|
|
|
hi
I have a dynamic dropdown listbox.I have written the following code in a loop to load data---
collegecombo.options[$i] = new Option('$school','$schoolname');
collegecombo.options[$i].title = collegecombo.options[$i].value;";
Here the title is displayed in mozila but not in Internet explore.
I am using php. Plz. help me.
Bharat Bhusanam
|
|
|
|
|
I'M HAVING THIS PROBLEM WITH MY WEBSITE, I DEPLOYED IT ON TO TE SERVER AND ON THE SERVER IT WORKS WELL BUT WHEN i TRY TO INSERT DATA WHEN ON CLIENT I GET THIS ERROR:
[COMException (0x80070035): The network path was not found]
System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +705
System.DirectoryServices.DirectoryEntry.Bind() +10
System.DirectoryServices.DirectoryEntry.get_AdsObject() +10
System.DirectoryServices.PropertyValueCollection.PopulateList() +234
System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName) +56
System.DirectoryServices.PropertyCollection.get_Item(String propertyName) +97
Dash_Board.DashBoard.dgis_ItemCommand(Object source, DataGridCommandEventArgs e) in c:\inetpub\wwwroot\dash_board\dashboard.aspx.cs:156
System.Web.UI.WebControls.DataGrid.OnUpdateCommand(DataGridCommandEventArgs e) +109
System.Web.UI.WebControls.DataGrid.OnBubbleEvent(Object source, EventArgs e) +507
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +26
System.Web.UI.WebControls.DataGridItem.OnBubbleEvent(Object source, EventArgs e) +106
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +26
System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +121 System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +115
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138
System.Web.UI.Page.ProcessRequestMain() +1292
Thanks.
|
|
|
|
|
Hi,
I'm sure this is basic, but it's always confused me... (easiy done..)
Cookies set using Jvascript are simple name-value pairs, wheras those set using ASP.NET are name/key-values... how can I set a cookie using a JS function then later on read it back into my code-behind using ASP.NET? And vice versa, how can I set one in code-behind then read it back using JS on the client? Whenever I've tried I get "object not set" kind of errors due, I imagine, to their different structres..
What am I missing (apart from a brain?)
chers
F
|
|
|
|
|
HI, Can i run Asp.Net 1.1 in IIS 6.0 ?? Please let me know what are the limitations ?? Thanks in advance
Thanks and Regards
Venkat
|
|
|
|
|
The answer is that running 64-bit Windows does have an affect on your ability to run ASP.NET 1.1 in IIS 6. ASP.NET 1.1 only supports running in 32-bit mode. Fortunately, IIS 6 on 64-bit Windows can run in either 64-bit mode or 32-bit mode.
The following steps to run IIS 6 in 32-bit mode can be found in our MSDN documentation:
Click Start, click Run, type cmd, and then click OK.
Type the following command to enable the 32-bit mode:
cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1
Type the following command to install the version of ASP.NET 1.1 and to install the script maps at the IIS root and under:
%SYSTEMROOT%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
Make sure that the status of ASP.NET version 1.1.4322 is set to Allowed in the Web service extension list in Internet Information Services Manager.
After following these instructions, the issue still wasn't resolved. In fact, the script maps for the web application were not being properly updated. I had the customer execute the "aspnet_regiis -ua" which would remove all versions of ASP.NET from the machine. To reinstall the ASP.NET 1.1 again, you then need to reissue the "aspnet_regiis -i" command (use "aspnet_regiis -i -enable" if you are using Windows 2003). This should allow you to run ASP.NET 1.1 on IIS 6.
Keep in mind, however, that IIS 6.0 cannot run in both 64-bit mode and 32-bit mode at the same time. By running IIS 6.0 in 32-bit mode on 64-bit Windows, ASP.NET 2.0 applications will also run in 32-bit mode.
Regards,
Satips.
|
|
|
|
|
A while ago a friend of mine was working on a website for the RPG Final Fantasy. He was using html image maps to interlink the maps, outline areas, and place shops/quests/etc. After watching him try out a large number of crappy freeware image mappers and using up the trial periods on a couple better image mappers that costed way too much, I decided to try and write a decent freeware version myself. After a couple weeks of coding and beta-testing I now have a first release version finished.
It's written in C# (requires the .NET Framework 2.0) and I'm releasing it under the terms of the GNU General Public License. I'd appreciate it if you all could check it out, test it, and give me feedback about bugs, improvement suggestions, and (compliments). It is available for download at [url]http://www.c010depunkk.com/?page=ImageMapEditor[/url]. I hope it will be useful for at least a few people, so enjoy.
This is 10% luck, 20% percent skill, 15% concentrated power of will.
5% pleasure, 50% pain, And 100% reason to remember the name!
---> www.c010depunkk.com <---
|
|
|
|
|
Hi,
I am creating a search utility for my ASP.NET web application. There is a page Search.aspx, which accepts the search criteria and sends the search request to web service, which does the processing of that request and sends back the reply as a dataset.
The search page then binds the dataset to the datagrid and is displayed on the page. When I navigate through various pages of datagrid, I can see the results on the same page (Search.aspx)as paging is applied on the grid. But when I click on browser back button, I want the page load event to be executed, which is not being executed. I tried with following code in Page_Load event of Search.aspx
Response.CacheControl = "no-cache"
Response.AddHeader("pragma", "no-cahe")
Response.Expires = -1
But page load event does not occur. Please let me know the solution for this issue. Thanks in advance.
|
|
|
|
|
Hi
I would like to set the style attribute of a div via the use of the code behind.
The div has a id and is runat="server" so I can use it in the code behind
its initial style visibility property is set to hidden, in the code behind I would like to set it as visible given a condition.
Please help
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
Like this:
if (TheConditionThatControlsTheVisibility) {<br />
TheIdOfTheControlToChange.Style["visibility"] = "visible";<br />
}
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanx Works Perfectly
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
hi
i have a control it has a grid and the grid has some buttons(ImageButton)
and each button has it's own OnCommand method but the commands aren't execute clicking will only cause to postback to a another page
i just don't know why it should happen ?
(I am using DotnetNuke)
|
|
|
|
|
This is just a guess, but is sounds like you have a postbackurl on your imagebutton. That is normally why you would be posting back to another page.
Hope that helps.
Ben
|
|
|
|
|
thanks for your replay
but no there was no postbackurl,
there are times that a problem appears without any reason and solves with no reason
the problem solved i don't know how
|
|
|
|
|
How do you create a checkbox like below in ASP? Please excuse my graphics.
O Check this to get an expansion below (ListItems)
O 1st item
O 2nd item
O 3rd item
I was able to get the above. However, I want to hide the items until I check the ListItems checkbox (the circle). Then unchecking the ListItems checkbox, the listed items disappear.
|
|
|
|
|
Hi!
I have a cuestion, i would know about how execute asp pages without server than IIS, PWD, etc. I would can run asp from web navigator directly, as html files but with asp or php code inside, this files every guest will can execute from url in a web browser, but not exist a web server in remote computer, only a shared folder with those files, is possible my idea?, thanks for your replys.
|
|
|
|
|
The answer is Yes - if you want to test your scripts locally, and No - if you want to open these scripts to the outer world. Look here:
Running .PHP, .ASPX, .CGI, or .CFM locally without server software?
And here:
php without server
But, I think, it takes less time to learn how to install Apache+PHP or IIS+ASP that torture yourself without a server.
Hope it helps,
- Dmitry.
-------------------------
Don't worry, be happy )
|
|
|
|