How could I know where is the page calling from?



I’m making an application which get the gmt time from the users. But I don’t know how much hours should I add or deduct, because I don’t know where the page is calling from.

How could I know where is the page calling from?

As Heinlein said "specialization is for insects" explore beyond the universe.
12/6/2006 2:17:46 AM 398 articles. 0 followers. Follow

7 Replies

Similar Articles

[PageSpeed] 4

and why u just don''t use yr server time for this?
Guennadi Vanine - Gennady Vanin - Геннадий Ванин
12/6/2006 5:28:34 AM

I know what you mean, but the application would only get the time from the server, that my site is hosted, which I could see how much the difference from the GMT is and fix it. But I would like to know can I access the time which their provider are from, that not be the user’s time, which could be wrong.

As Heinlein said "specialization is for insects" explore beyond the universe.
12/6/2006 11:51:21 PM

Now I realized that I'm expressing very wrong, the server which the user access is the same errrrrrrr....., so I would get the same difference, but my question still opened, because if I want that user see with GMT from his country?

As Heinlein said "specialization is for insects" explore beyond the universe.
12/7/2006 12:23:59 AM
Do u want to see the time from PC of user? even if it is wrong? it may be any time he put in system
Guennadi Vanine - Gennady Vanin - Геннадий Ванин
12/7/2006 6:10:34 AM
for ex., my company servers have the time of headquarter (3 hr difference), the person may be in train, biz trip
Guennadi Vanine - Gennady Vanin - Геннадий Ванин
12/7/2006 6:16:08 AM

yea, per example: in an forum the post are added in a database, which records also the time in gmt, I could just show to user the gmt time, but I don't want it, I want show them that time in their time zone.

As Heinlein said "specialization is for insects" explore beyond the universe.
12/11/2006 8:13:06 PM
of course, without consulting the time in their machines, which could be wrong.
As Heinlein said "specialization is for insects" explore beyond the universe.
12/11/2006 8:15:21 PM

Similar Artilces:

how to know the calling page from called page.
hi, i need to know how to get the calling page from the called page even there is no post back has been done. Look at the ServerVariables, in particular the Referer i am having the linkbutton in the previous page called page1. while clicking the button the page is redirect to the current page called page2. now i want to know the name or url of the page1. how can i do???? As I already said.... HttpContext.Current.Request.ServerVariables("HTTP_REFERER") Thank You so much... it works very well.......

How to know in a cutom Base Page class if page is in design time?
I have created a custom base page class and would like to know in my base page class, it is in design mode or runtime mode. How can I check this in my custom base page class?sun21170 This should take care of it for you. if(this.Site.DesignMode) { //If this.Site.DesignMode is true - your are in the VS Designer } else { //Runtime }  Hope this helps.  Andrew L. Van

Time Tracker Kit
I am trying to customize the app and I want the category to have a size of 20 not the default 4. I changed it in the database and in the code for the custom validation, so I am able to add it to the project details grid.  When i hit the save button(2) which is on the ProjectDetails.aspx page it does save it to the database but with a size of 5 and There is no codebehind the save_button(2) click event so I have no idea where it is getting saved and how it is defaulting back to a size of 5   HELP :) Check out the stored procedure which is saving the category size. May be possibl...

In a web page(c#), I want to call another page and come back to next instruction of calling page
In a web page(c#), I want to call another page and come back to next instruction of calling page. Called page have no web item , it has only c# codes. after executing of this page (by IExplore), I want the remaining lines of calling page to be executed. How can I do that? What are you trying to do? What is the second page accomplishing? Will the first page stay open and the second page closes? You might be able to use WebRequest and WebResponse to do what you want. Hey bro, since you say that the called page has no web items, why dont you put the code in the called pa...

Passing data from the called page(IFRAME) to the calling page
Hi, I am calling an HTML page in a <IFRAME> control "Src" attribute. How can I pass some data from that page to the calling page?   Thanks, Siddharth       As long as they are on the same domain (meaning, if your "calling page" is from and your IFrame page points to you can do nothing because that's Cross-Site Scripting)... anyway, as long as they are on the same domain you can do this in the child page: <script type="text/javascript"> parent.document.getElementById("...

Which page has called a page
Hello, Is a page able to know which page has called it ? If Page_A and Page_B can call Page_C, I would want to know during Page_Load of Page_C if it is Page_A or Page_B which is the calling page ? Thank's Alain You could try using Request.UrlReferrer. This will give you the complete url, type: http://localhost/NetSamples/Employees.aspx To strip away everything unecessary like Querystrings etc. you could use something like this: Dim strReferrer As String = Request.UrlReferrer.ToString Dim intStart As Int32 = strReferrer.LastIndexOf("/") + 1 ...

Kindly help, dont know How to display the doctor detail ( in another page call DocProfile.aspx), while the related doctor name been selected(in FindDoctor.aspx page)?
  Hi Sir  I am new guy in ASP.NET 2.0, here I got the problem call the doctor detail from a page call FindDoctor.aspx. In the FindDoctor.aspx I user dropdownList and SqlDataSource Command to retrived Doc_Name. (Kindly see below) <asp:SqlDataSource ID="SqlDataSource1ChooseDoc" runat="server" ConnectionString="<%$ ConnectionStrings:db1ConnectionStringDocter1 %>" SelectCommand="SELECT [Doc_Name], [Doc_ID] FROM [Doc_Table2]"></asp:SqlDataSource> ...

time tracker starter kit
i dowloaded the time tracker starter kit, created new project in visual web developer express and if i press CTRL+F5 it goes into the website login page no problem, if i try and load the website without being in the web developer application, it loads the welcome page which tells you all about the website and how to login, but when i press CTRL+F5 it does nothing.???? how can i get it too load into the browser. ??   cheers Open your browser and type in the address of the web server you installed it on. JeffPlease: Don't forget to click "Mark as Answer" on the post t...

Calling pages multiple times
Hi I have 3 pages. From page2, I need to go to page1 two more times and to page3 after that. I created a private variable in page2 which is initialized to zero. I then increment it and check if it less than 3 and then depending on that it goes to page1 or page3. But every time the page2 is loaded the value of variable is initialized to zero and hence it never reaches page3. Thankx in advance You have to persist your variable. Session is one way to do it.Leon LangleybenMCSD, ASP.NET MVPBlog...

how to know how many times page been entered?
 I have page A.aspx , B.aspx , C.aspx . D.aspxand I just create a page to show how many times each table been enteredthe layout like belowPage       TimesA.aspx       2B.aspx       4C.aspx       6D.aspx       1 I just think I may wirte code in Page_loadPage_Load{ I write code here to update the "count" column }  Table ID      Page      Count1       A.aspx      22       B.aspx   &n...

Time Tracker Stater Kit Documentation
I need a complete documentation on ASP.Net Time Tracker Stater Kit which i have downloaded form the internet. I ma having problem understanding the code. I am useing .net framework 2.0.  There was a great thread I found that had a lot of great time tracker fixes.  See it here: SarodeSoftware Engineer,Approva Systems Pvt Ltd,Pune, India. There is no such documnetataion availble on site.  The link what I provide to you, wheter it is helpful to you Post it on forumChetan SarodeSoftware Engineer,Approva Sy...

how know when my page is loaded two times
I use session variables, but I that just a instance of my page is opened. for example the client open login.aspx and open one second page login.aspx in his browser, how detect this for source. There's a Postback under System.Web.UI.Something.Request, it's a simple referred based class. For more safety, you could store the user state in a global variable, in SQL or something, in case the client is being nasty and uses Disappearing Cookies, Disappearing Referrer. I'm sure the forum has plenty of old posts on this :) Wang Daniel...

know what url make call the page
There is a way to know what url o domain name make the call to my web site???  ThanksAdolfo FoliacoBack to XP You can look at the referrer url.  This is easiest achieved using Request.ServerVariable["HTTP_REFERER"]John StocktonRIA Developer at AscentiumCo-Author of Silverlight 2 in Actionblog Yup, or use the shorthand property Request.UrlReferrer (it's the same). Keep in mind that this is a value sent by the browser, as it sees fit. There is no guarantee that it's sent or that it's accurate. Quite a few firewalls will also strip this information from the ...

Implementing Time Tracker in to MS Sharepoint
At my company we have just created a new MS Sharepoint server and are currently in the process of migrating all work request (web requests) to the Sharepoint app. Our team is 100% billable and we need an easy way to track project hours. Would it be possible to implement the Time Tracker app in to Sharepoint to coordinate the projects and use Sharepoints User info stored in the SQL database? Nobody but me is considering this or aware of the possibility, its a project implementation I want to picth to my boss and he wants to help our team keep track of project hours easier than writing down...

Web resources about - How could I know where is the page calling from? -

Calling Dr. Death - Wikipedia, the free encyclopedia
Calling Dr. Death (1943) is the first of the Universal Pictures Inner Sanctum mystery films . The "Inner Sanctum" franchise originated with a ...

List of country calling codes - Wikipedia, the free encyclopedia
This is a list of country calling codes defined by ITU-T recommendations E.123 and E.164 , also called IDD ( International Direct Dialling ) ...

Calling Batman: Bane Takes Over Ecko Unlimited Facebook Page
Bane, the villain in upcoming Batman feature film The Dark Knight Rises , turned his criminal mind toward the Ecko Unlimited Facebook page , ...

Facebook Video Calling - Facebook
Bring your conversations to life on Facebook. With face-to-face video calling, now you can watch your friends smile, wink and LOL. To get started, ...

Facebook’s Talktime program in India pays new mobile users in calling credit
... Facebook has launched its Talktime program in India which gives every new user who signs up with a mobile device 50 Rupees (almost $1) in calling ...

Berlin Calling (@neuraum) on Twitter
Sign in Sign up To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content, tailor ...

Calling all foodies: Here comes @TwitterFood
There are many thousands of food-related Tweets people send on Twitter each day – Tweets about meals, ingredients, favorites, recipes and dining ...

Rounds Video Calling + Chat for iPhone 4, iPhone 4S, iPhone 5, iPhone 5c, iPhone 5s, iPad 2 Wi-Fi, iPad ...
Get Rounds Video Calling + Chat on the App Store. See screenshots and ratings, and read customer reviews.

Elon Musk responds to Bloomberg's story on self-driving tech, calling it 'inaccurate'
On Wednesday, Bloomberg published a story about 26-year-old George Hotz, a hacker who built a self-driving car in his garage in just about a ...

Resources last updated: 12/25/2015 8:47:57 PM