|
Hi,
I've got an issue with Page.ResolveUrl and an ISA reverse proxy.
We've got an internal webserver that hosts multiple webapplications. The are therefore configured as applications.
Let's say we have:
http://internalserver/applicationX
By using an ISA2006 server this adres is being reverseproxy'd to:
https://subdomain.myorg.com
If i put this in my page
<script src="<%= Page.ResolveUrl("~/MicrosoftAjax.js") %>" ></script>
it wil stil resolve into
https://subdomain.myorg.com/applicationX/MicrosoftAjax.js
Is there a way to make .NET aware that it a reverse proxy is changing the path?
Or should the reverse-proxy solve this?
Kind regards,
Sebastiaan
|
|
|
|
|
Hi
I want to a certain task every one hour in server in my ASP .NET 4 project, I was wondering where should i put my codes to execute.
Thank you guys
|
|
|
|
|
For starters, don't put repetitive server code in a web application because then you will need something to trigger the process anyway.
Why not investigate using a Windows Service or an application that is setup to be run by the Windows Task Scheduler.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
thank you so much for your answer
but i only have a shared hosting plan not a dedicated server and i definitely don't have access to those kinds of resources.
|
|
|
|
|
The best way to do this is by writing a windows service and run it on the server. this windows service can be written in such a way that it will do some particular task every hour.
Every now and then say, "What the Elephant." "What the Elephant" gives you freedom. Freedom brings opportunity. Opportunity makes your future.
|
|
|
|
|
thank you so much for your answer
but i only have a shared hosting plan not a dedicated server and i definitely don't have access to those kinds of resources.
|
|
|
|
|
In that case, I will have to suggest a very very dirty workaround for tackling this problem.
1. Have a page that will do the required task. do the required task only when a specific query string is present. This way you will ensure that only you know this actual link that will perform this operation.
2. Now whenever you access this page with this specific query string this task will run. you can do it manually but you can still automate it. lets see how:
3. create a simple winform application with webbrowser control in it and navigate it to the required page with the specific querystring . all hard coded in the page_load . so when application opens up your task is done. close this app in webbrowser navigated event.
4. Now configure a windows service on your PC that will run this application on a specified time.
P.S. all this assuming that the task you need to perform is not time consuming otherwise you will get timeout problem.
Note: I am not recommending this approach. it is very very bad. but in desperate times such workarounds do work.
Every now and then say, "What the Elephant." "What the Elephant" gives you freedom. Freedom brings opportunity. Opportunity makes your future.
|
|
|
|
|
Put ur code as console appln. Use server task-scheduler to trigger that .exe file every hour...
|
|
|
|
|
Is this a task SQL server based?
maybe you could write a SQL job and have it scheduled. (if your hosting agreement allows it)
Just a thought.
|
|
|
|
|
As you are using shared hosting, it is not possible to connect to windows service as this will not be allowed.
Create a web page which will do the task (as per your requirement - say adding some data or sending mail etc). Use query string to specify your parameters. Don't forget to encrypt the querystring value for security concern.
Now the interesting thing, create a windows service in your local machine which calls the above mentioned aspx page with querystring value.
Thus the page is fired in background and the code behind of the page will do the rest.
Thanks,
Sandip
|
|
|
|
|
hi can you use timer control and set timer interval to hours to milisecod
|
|
|
|
|
Hi All,
I have an ASP.Net application and a WCF Service running on the same machine in IIS7. My machine name is "mmmmmmm250D" my user name is "uuuuuuu250". When I am running my applications(asp.net and wcf service), I am seeing that these applications are running under the user account "<domainname>\<machinename>$". This is taken automatically. This account is assigned when ApplicationPoolIdentity is "LocalSystem" and "NetworkService" in both the cases.
Is there any way that I can make these applications to run under my user account as I am admin for this machine where IIS is installed. The applications should run under account looks like "<domainname>\uuuuuuu250". Please help me I am struggling with this for a while.
Thanks in advance.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Hi,
I am using an asp image control.
I want to display an image inside the image control from : Image image
is that possible or all images must be shown from physical files?
|
|
|
|
|
Do you mean something like this[^]?
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
what I want is the following:
I am using the QRCodeEncoder from here.
in WinForm, I am doing this to display the QR Code:
Image image;
String data = textEdit1.Text;
image = qrCodeEncoder.Encode(data);
pictureEdit1.Image = image;
I want to do the same for asp:Image so QR Image will automatically created for the current URL?
|
|
|
|
|
Hi,
I want to display some fairly simple graphs and charts. For example, horizontal bar chart with 25 bars.
Then, I want a user to have the ability to resort the bars and upon completion (click event on button or something) write the results back to a database.
Here's an example: List 10 car companies in a bar chart (horizontal) from 1 to 10. User thinks that the car company at 8 should be ranked #3. They move the bar to the #3 spot and the bar at #3 goes to #8. User is done and clicks "Submit". Now create a unique id for this session and write to a database.
Can anyone tell me what tools/languages would work well with this?
Thanks for your responses!
|
|
|
|
|
Hi All,
I want to develop a dynamic slider in jquery for that i need that jquery must get all images file names from the folder dynamically not static can any one help me out???????
|
|
|
|
|
jquery cannt do that without the help by http server
|
|
|
|
|
I don't know who downvoted this, but I have voted you back up. Whoever it was their rep was small, so my upvote will more than counter.
First, jquery alone can't do this for you, it needs to get the information from the server (assuming the files are on the server). You'll need to do some googling as a full solution will take time but:
- On the server you need to create a JSON result with the paths of the files
- On the client side you need to use jQuery's ajax/[^] function to get the information
As you are using AJAX I'd suggest the server responds with the next Image url (don't forget loops round at the end). This means the Client needs to send the current url (or some identifier) so the server knows where the client is in the list. If an empty or unknown url is passed to the server, return the first element, that way the slideshow can bootstrap itself easily. If you are using MVC3/4 the server component is easy, these can return a JSON result directly. With ASP.NET webforms, it is a little harder (see http://stackoverflow.com/questions/2422983/returning-json-object-from-an-asp-net-page[^]) but not very hard.
There is a reasonable amount of work in all this, it might be worth getting one of the many on-line sliders and taking them apart to see how they work (or just using them if one fits!).
|
|
|
|
|
|
Hi,
I am using the following code to sign out from my web application:
Session.Abandon();
Session.Clear(); at the same time I want while signing out to remove all pages related to my website from browser history?
how can I do this?
|
|
|
|
|
There seems to be a trick with javascript, see http://forums.asp.net/p/1132444/1806386.aspx[^].
But I'd also mark the cookies expired, and check for valid cookies on every page. Also use no-cache and expires directives for every page.
|
|
|
|
|
Response.ExpiresAbsolute = DateTime.UtcNow.AddDays(-1d);
Response.Expires = -1500;
Response.CacheControl = "no-cache";
May this will help u.....
|
|
|
|
|
1 its a BS structure. ASP.NET(C#).
2 when the record on the server database is updated, how to inform the client this changes?
3 the effect is just like a new EMAIL is arrived,then client pop a small window or play a informed sound.
in my opinion, it is Ajax!
in javascript, use a setinterval function. in this function use XMLHTTP to read database eriodically. if the record is updated then give the client some message.
I want to know is there any other better solutions?
|
|
|
|
|
wangerpang wrote: in my opinion, it is Ajax!
Correct. Do you have a timestamp-field? If yes, you can use ASP to generate an RSS-feed that contains the timestamp of the last modification. You can poll that using Ajax as you already suggested.
It would OTOH be a bad idea to update each client on each database-change; that way lies madness.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|