•November 6, 2009 •
Leave a Comment
There are many ways to call a popup window from aspx. I only post the ones I have used. If you have used other ways. Please feel free to contribute. Thanks.
Sorry for the lack of explanations, as I am still learning myself.
Dim PopUpScript As String
PopUpScript = “javascript: window.open(‘Popup.aspx?’,'popupage’,’scrollbars=yes,width=790,height=510,resizable=no,left=10′)”
ScriptManager.RegisterStartupScript(Me, Me.GetType(), “PopUpScript”, PopUpScript, True)
To pass a variable ID to the next page, I use:
PopUpScript = “javascript: window.open(‘Popup.aspx?ID=1′,’popupage’,’scrollbars=yes,width=790,height=510,resizable=no,left=10′)”
2nd Method
Protected Sub lnkbutton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lnkbutton.Click
lnkbutton.Attributes.Add(“onclick”, “window.open(‘http://www.yahoo.com’,'null’,'height=768, width=1024,status= no, resizable=yes, scrollbars=yes, toolbar=no,location=no,menubar=no ‘);”)
End Sub
Posted in asp.net
Tags: asp.net, aspx, popup, Windows
•October 20, 2009 •
Leave a Comment
| DateTime.Now; |
10/20/2009 6:33:57 PM |
| DateTime.Now.ToString(); |
10/20/2009 6:33:57 PM |
| DateTime.Now.ToShortTimeString() |
6:33 PM |
| DateTime.Now.ToShortDateString() |
10/20/2009 |
| DateTime.Now.ToLongTimeString() |
6:33:57 PM |
| DateTime.Now.ToLongDateString() |
Tuesday, October 20, 2009 |
| DateTime.Now.ToString(“d”) |
10/20/2009 |
| DateTime.Now.ToString(“D”) |
Tuesday, October 20, 2009 |
| DateTime.Now.ToString(“f”) |
Tuesday, October 20, 2009 6:33 PM |
| DateTime.Now.ToString(“F”) |
Tuesday, October 20, 2009 6:33:57 PM |
| DateTime.Now.ToString(“g”) |
10/20/2009 6:33 PM |
| DateTime.Now.ToString(“G”) |
10/20/2009 6:33:57 PM |
| DateTime.Now.ToString(“m”) |
October 20 |
| DateTime.Now.ToString(“r”) |
Tue, 20 Oct 2009 18:33:57 GMT |
| DateTime.Now.ToString(“s”) |
2009-10-20T18:33:57 |
| DateTime.Now.ToString(“t”) |
6:33 PM |
| DateTime.Now.ToString(“T”) |
6:33:57 PM |
| DateTime.Now.ToString(“u”) |
2009-10-20 18:33:57Z |
| DateTime.Now.ToString(“U”) |
Tuesday, October 20, 2009 10:33:57 PM |
| DateTime.Now.ToString(“y”) |
October, 2009 |
| DateTime.Now.ToString(“dddd, MMMM dd yyyy”) |
Tuesday, October 20 2009 |
| DateTime.Now.ToString(“ddd, MMM d “‘”yy”) |
Tue, Oct 20 ‘09 |
| DateTime.Now.ToString(“dddd, MMMM dd”) |
Tuesday, October 20 |
| DateTime.Now.ToString(“M/yy”) |
10/09 |
| DateTime.Now.ToString(“dd-MM-yy”) |
20-10-09 |
Source: csharpfriends
Posted in asp.net
Tags: asp.net, aspx, datetime
•October 9, 2009 •
2 Comments
I stumbleupon OpenDNS.com and decided to give a try. Sign-up is necessary if you want to track your history. Three simple steps to get you up and running. Now, I have it setup on my home-network. Below shows a bit of my my settings and statistics.
I like how easy it is to filter contents and view the history with graphs. OpenDNS even allows you filter out individual website. Shortcut is another cool feature, which is like a safety net for when you are typing in the dark and you misspell .com to .cmo. In the case you misspell, OpenDNS will still redirect you to the right site but you must have the entries in there to correct your common mistakes.
- Change the DNS in your router
208.67.222.222
208.67.220.220
- Sign-up for an account (Optional)
- Login to manage your account (Optional)
Content Filtering

Categories

Statistics

Create Shortcuts

Posted in Thoughts
Tags: dns, OpenDNS
•October 6, 2009 •
Leave a Comment

With the Flexi-Drive S2S we introduce a flexible adjustable memory solution.
Simply insert the desired number of SDHC cards (max. 6) into the Flexi-Drive’s slots. The card’s individual memory capacities merge into one and are available as a single drive then.
Benefit from this flexible, convenient memory solution that can be used as a normal 2.5″ SATA HDD providing the advantages of a SSD: no noise emission, low power consumption and shock resistance.
Features:
• Fast modular SSD storage solution
• Memory size flexibly adaptable via SDHC memory cards (SLC/MLC)
• SATA interface (SATA I and II)
• 2.5″ format
• Zero noise emission, low power consumption, shock resistance
• No drivers or software required
Specifications:
• Use up to 6 SDHC cards as RAID0
• 6 slots for SDHC cards (4-32 GB)
• Supports SDHC cards only
• Flexible memory capacity
• Dimensions: 70 mm x 100 mm x 9 mm (W x L x H)
product page
Posted in Thoughts
Tags: DIY, SSD, storage
•October 3, 2009 •
Leave a Comment
•October 3, 2009 •
Leave a Comment
•October 2, 2009 •
Leave a Comment
Using Ubuntu PPA
First you need edit /etc/apt/sources.list file
sudo gedit /etc/apt/sources.list
Add the following two lines
deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main
save and exit the file
Now add the GPG key using the following command
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5
Update source list
sudo apt-get update
Install chromium browser using the following command
sudo apt-get install chromium-browser
This will complete the installation
If you want to open chromium go to Applications->CrossOver Chromium->Chromium
Chromium web browser in action
Source
Posted in Tips & Tricks
Tags: 9.04, chrome, google, janty, Ubuntu
•October 2, 2009 •
Leave a Comment
Dim bc As HttpBrowserCapabilities = Request.Browser
Response.Write(“<p>Browser Capabilities:</p>”)
Response.Write(“Type = ” & bc.Type & “<br>”)
Response.Write(“Name = ” & bc.Browser & “<br>”)
Response.Write(“Version = ” & bc.Version & “<br>”)
Response.Write(“Major Version = ” & bc.MajorVersion & “<br>”)
Response.Write(“Minor Version = ” & bc.MinorVersion & “<br>”)
Response.Write(“Platform = ” & bc.Platform & “<br>”)
Response.Write(“Is Beta = ” & bc.Beta & “<br>”)
Response.Write(“Is Crawler = ” & bc.Crawler & “<br>”)
Response.Write(“Is AOL = ” & bc.AOL & “<br>”)
Response.Write(“Is Win16 = ” & bc.Win16 & “<br>”)
Response.Write(“Is Win32 = ” & bc.Win32 & “<br>”)
Response.Write(“Supports Frames = ” & bc.Frames & “<br>”)
Response.Write(“Supports Tables = ” & bc.Tables & “<br>”)
Response.Write(“Supports Cookies = ” & bc.Cookies & “<br>”)
Response.Write(“Supports VB Script = ” & bc.VBScript & “<br>”)
Response.Write(“Supports JavaScript = ” & bc.JavaScript & “<br>”)
Response.Write(“Supports Java Applets = ” & bc.JavaApplets & “<br>”)
Response.Write(“Supports ActiveX Controls = ” & bc.ActiveXControls & “<br>”)
Response.Write(“CDF = ” & bc.CDF & “<br>”)
Results
Browser Capabilities:
Type = Firefox3.5.3
Name = Firefox
Version = 3.5.3
Major Version = 3
Minor Version = 0.5
Platform = WinNT
Is Beta = False
Is Crawler = False
Is AOL = False
Is Win16 = False
Is Win32 = True
Supports Frames = True
Supports Tables = True
Supports Cookies = True
Supports VB Script = False
Supports JavaScript = True
Supports Java Applets = True
Supports ActiveX Controls = False
CDF = False
Source
Posted in asp.net
Tags: aspx, browser, chrome, firefox, IE, safari