How do I Implement Globalization and Localization in ASP.NET - asp.net

Suppose if someone opens my site from India it should show Indian time of if someone opens this site from US it should display their local time.
How can i do it.
Plz help me out
Thanks in advance
cpVariyani

Your question should provide more detail and describe what you have already tried.
The best/easiest way is javascript - good option that leads to what I might guess is a middle ground for you here: How to get client date and time in ASP.NET?
If you don't want to use javascript you can try and determine it from the request headers, but this is less likely to consistently work. Found this in an answer that strangely also linked the first link above: http://weblogs.asp.net/mikebosch/archive/2007/11/15/getting-the-client-browsers-date-and-time-with-asp-net.aspx

Related

detect bot using images - asp.net

I tried to search this on the net but was not able to find a solution. Probably I am not entering the correct search keywords.
I currently have a bot detect mechanism in place for my page but it needs the user to type in an alpha-numeric value given in the image.
This is pretty standard. The below image is what I am currently using.
The problem is it is having its own issues.
Plus there are a host of customers out there who do not want to use their keyboard or have problems with reading these images.
I want a botdetect mechanism which does not involve keyboard.
For example, a 3 X 3 grid of images and asking a user to tick all those images which contain, maybe, "icecream".
It would be better if somebody can suggest a third party tool which I can just consume.
Please help! Thanks in advance!
P.S.: Please pardon me in case I have added a wrong tag
They are called captcha
The one you are referring to as using images and not requiring a keyboard is most likely googles HERE.

Creating a simple report in Omniture

I have a simple site for which I want to create a report in Omniture.
I just have two links which I want to record that how many times they are clicked. Basically something like a completely novice report.
Any idea, how I can start it and how I can implement it?
I have an Omniture account.
Thanks a lot
You can do click tracking pretty simply with a link like this
<a href="#" onclick="s.tl(this,'o','INSERT LINK NAME',null)">
Those values you insert in the link name will show up under Site Content >> Links >> Custom Links
Search the help section for link tracking or read this https://microsite.omniture.com/t2/help/en_US/sc/implement/index.html#Manual_Link_Tracking_Using_Custom_Link_Code
I never knew it'd be so hard to find a simple tutorial for SiteCatalyst (Omniture). One of the most to-the-point is here.
http://webanalyticsland.com/sitecatalyst-implementation/implement-sitecatalyst-in-5-minutes
Please let me know if you found something better.
Thanks.
While searching for the tutorials, the only one which is bit helpful (although old) is:
http://tv.adobe.com/watch/learn-adobe-digital-marketing/sitecatalyst-interface-part-one/

SynchronizerToken In ASP.Net

I was wondering if anyone can help me out. I have an application with several links. One thing I have been noticing is that when a user clicks a link more than once I can get a response multiple times. This may result in a record being committed to a database table multiple times and cannot happen. From what research I've done, it looks like this is an example of when I would use SynchronizerToken's but this is new to me and i have no experience using them. I did find this example: Button doing post back of one user
Is this method the best possible one to use for this scenario? I haven't really seen any other examples out there. Any help would be great.
Thanks
How about disabling the UI element right before postback so multiple clicks are not possible?
I ended up scrapping the idea of tokens and just disabled forms when a post back occurs.

FileUpload.HasFile always remain false(I am using Ajax)

I am writing one simple page in APS.Net with VB.Net as the scripting language. In this page I have two text boxes and relevant buttons to complete the job of taking input from the user.
The form prompts the user to enter an image title, image to upload(using ASP AjaxControlToolkit FileUpload control) and a list of search tags to research this image in the future.
I have researched for more than three hours and tried many different solutions posted online but still I am not able to fix the FileUpload.HasFile = False problem. This condition always remains false even after choosing the file to upload.
I understand that many similar questions have already been posted but I have tried those solutions and still I could not fix it.
It would be really great if someone could please help me with this.
I am using MS SQL database but I haven't done anything related to database in this page as I am not done with the validation and the input yet.
Please download the code files from:
http://www.mediafire.com/?ae1jq33zkj50tt7,olcmd5yct3tz52m,7lm3a9syplfdec6
Please let me know if you need anything else.
What u need is here! Checkout this , you may get some help from here.
mark this as answer if u like it. :)

How to create a dynamic image that updates when requested?

So I'm trying to make my own forum signature generator for some friends, and I've gotten most of the work done. My real issue now is refreshing the information when the image is requested from my server.
I have almost no clue how to even go about it, so I'm sorry if my question is poorly written. Basically, I'm looking for someone to push me in the right direction on how to have the image refresh from the datasource when it gets requested, but only if it has been more than 5 minutes to prevent an overload.
Thank you. I'll post code here, as I try to make it work once I get my start.
You will have to create a new HTTP handler. Check out this msdn post.

Resources