vijay

welcome Netizen

welcome Netizen
Hi folks this site Share Basic Knowledge in .NET, DotNet, C#,DOT NET CODE, ASP.NET, VB.NET, DOT NET TRICKS,Dotnetcode,Android and Latest Technology Articles in VB,Android and ASP.NET

Monday, April 15, 2013

How to get the client side user time in ASP.Net



Here I would like to share easy code to get client side time. In many case we need to show the client side time.
Take scenario you host your website on UK server, but the user accessing your site from India, and he try post some content on your website. Here you have to show the client side posting time. If you get the time from server it will show UK time, which means its wrong time because of time difference between two countries.
So to overcome above problem you can easily solved by using JavaScript.

<script type="text/javascript">
        function getTime()
        {
            TimeFd = document.getElementById("ClientTime");
            clientDate = new Date();
            // return hours and minutes so we don't have to
            // worry about 12/24 hour settings.
            TimeFd.value = clientDate.getHours() + ":" + clientDate.getMinutes();
        }
    </script>

On body tag you should call the JavaScript function on which page loads its will call the function to display client side time.
<body onload="getTime();">
  <asp:HiddenField ID="ClientTime" runat="server" />
    </form>
</body>

That’s it .By using the above method you can easily store the client side time value.
Post your Comments Here

AIRTEL Easy Recharge Options in TamilNadu



AIRTEL Easy Recharge Options

Denomination
Range (Rs)
TalkTime
Range Value (Rs)
Processing
Fee(Rs)
Service Tax
Validity
Category
5
30 MB (2G)
NA
NA
Till mid night 12pm
2G internet recharge
6
Tariff-1.5p/s for all calls, FTT on RC35,50,75,100
5.34
0.66
90 days
discounted tariff recharge
8
30mins of 3G Data
7.12
0.88
1 day
3G internet recharge
10
7.9
1
1.1
Unlimited
top up recharge
14
Gulf @12p/sec
12.46
1.54
4 Weeks
discounted tariff recharge
16
500 local SMS
14.51
1.49
7 Days
SMS recharge
17
110 MB (2G)
15.41
1.59
3 Days
2G internet recharge
18
2000 Local or National A2A SMS
16.32
1.68
30 Days - Auto Renewal
SMS recharge
20
15.8
3
2.2
Unlimited
top up recharge
24
ISD Pack- US/Canada/UK(F)@50p/min + more*
21.36
2.64
4 Weeks
discounted tariff recharge
25
150 MB [GPRS]
-
-
6 Days
2G internet recharge
26
2250 Local SMS ( 75 SMS / day )
23.57
2.43
30 days.Auto renewal pack.
SMS recharge
27
STD 35p/min to Andhra Pradesh, Karnataka, Kerala
24.03
2.97
4 Weeks
discounted tariff recharge
29
Local Mobile @30p/min (except 6-10pm @1.2p/sec)
25.81
3.19
4 Weeks
discounted tariff recharge
30
23.7
3
3.3
Unlimited
top up recharge
36
100 Local or National SMS/day
32.64
3.36
30 Days.Auto renewal pack.
SMS recharge
39
All STD calls @35p/min
34.71
4.29
4 Weeks
discounted tariff recharge
41
Rs.41 Talk Time, STD SMS @Re1/SMS
36.49
4.51
4 Days
others
44
ISD Pack***
39.16
4.84
4 Weeks
discounted tariff recharge
45
150MB [3G]
-
-
7DAYS
3G internet recharge
46
All STD calls @ 1.4p/2sec
40.94
5.06
4 Weeks
discounted tariff recharge
50
41.5
3
5.5
Unlimited
top up recharge
54
15 ISD Mins to 31 Countries**
48.06
5.94
7 Days
discounted tariff recharge
55
45.95
3
6.05
Unlimited
top up recharge
58
Local A2A @10p/min (except 6-10pm @1.2p/sec)
51.62
6.38
4 Weeks
discounted tariff recharge
59
50 talktime, 60MB 2G data
NA
NA
2 days (talktime unlimited)
2G internet recharge
60
Rs 55
0
6.6
Unlimited
discounted tariff recharge
61
5000 Local/National SMS (Max 100 SMS /day)
54.29
6.71
60 Days.Auto renewal pack.
SMS recharge
63
65MB of 3G data, validity 3 days
57.12
5.88
3 days
3G internet recharge
66
Rs.66 Talk Time, STD SMS @Re1/SMS
58.74
7.26
7 days
top up recharge
69
Local mobile @ 30p/min
61.41
7.59
4 Weeks
discounted tariff recharge
70
59.3
3
7.7
Unlimited
top up recharge
75
Rs.60 Talk Time, Local Mobile @30p/min
66.75
8.25
5 Days
top up recharge
77
10 Minutes to Nepal
68.53
8.47
10 Days
discounted tariff recharge
89
Local/STD Mobile Calls @30p, Landline@90p
79.21
9.79
4 Weeks
discounted tariff recharge
94
Loc A2A@1p/3s,Loc A2M@1p/2s,STD@2p/3sec,LL@2p/s
83.66
10.34
4 Weeks
discounted tariff recharge
95
35 ISD Mins to 31 Countries**
84.55
10.45
15 days
discounted tariff recharge
97
Local A2A@10p/min
86.33
10.67
4 Weeks
discounted tariff recharge
98
650 MB (2G)
88.85
9.15
21 Days
2G internet recharge
100
86
3
9.34
unlimited
top up recharge
101
300MB [3G]
-
-
30 days
3G internet recharge
109
All STD @35p + ISD Benefits
97
12
12 Weeks
discounted tariff recharge
110
100
0
12.1
Unlimited
top up recharge
111
Rs.111 Talk Time, STD SMS @Re1/SMS
98.79
12.21
14 Days
top up recharge
125
Local A2A @10p/min, Local A2M @30p/min
111.25
13.75
4 Weeks
discounted tariff recharge
126
1GB (2G)
NA
NA
30 Days
2G internet recharge
135
20 Minutes to Nepal
120.15
14.85
30 Days
discounted tariff recharge
147
Local A2A @10p/min (except 6-10pm @1.2p/sec)
130.83
16.17
12 Weeks
discounted tariff recharge
148
500 MB [3G] + 500 MB [GPRS]
-
-
30 Days
3G internet recharge
150
130.5
3
16.5
Unlimited
top up recharge
152
60 ISD Mins**
135.28
16.72
15 days
discounted tariff recharge
169
All Local Mobile @30p/min
150.41
18.59
12 Weeks
discounted tariff recharge
195
Local A2A 1p/4s, Other Loc&STD 1.5p/s & LL 2p/s
173.55
21.45
12 Weeks
discounted tariff recharge
199
2GB, Post 2GB Unlimited @ 40kbps
-
-
30 days
2G internet recharge
200
175
3
22
Unlimited
top up recharge
235
Local A2A@10p/min + ISD Benefits
209.15
25.85
12 Weeks
discounted tariff recharge
255
1GB [3G]
223.48
31.51
30 days
3G internet recharge
300
300
0
-
Unlimited
top up recharge
325
Local A2A @10p/min, Local A2M @30p/min
289.25
35.75
12 Weeks
discounted tariff recharge
350
350
0
-
Unlimited
top up recharge
375
3GB
NA
NA
90 Days
2G internet recharge
390
390
0
-
Unlimited
top up recharge
451
2 GB [3G]
-
-
30 days
3G internet recharge
500
500
0
-
Unlimited
top up recharge
560
560
0
0
Unlimited
top up recharge
751
Unlimited FUP, 4 GB [3G]
-
-
30 days
3G internet recharge
770
770
0
-
Unlimited
top up recharge
855
Unlimited FUP, 5 GB
NA
NA
30 Days
3G internet recharge
955
6 GB [3G], Post 6 GB --- Unlimited @128 kbps
836.9
118
30 Days
3G internet recharge
1255
Unlimited FUP, 9 GB
NA
NA
30 Days
3G internet recharge
1255
Unlimited FUP, 9 GB
NA
NA
30 Days
3G internet recharge
1298
6GB
NA
NA
60 Days
3G internet recharge
1505
10GB [3G]
1318.98
186.01
30DAYS
3G internet recharge
1555
Unlimited FUP, 12 GB
NA
NA
30 Days
3G internet recharge
2251
12GB
NA
NA
90 Days
3G internet recharge