Thursday, January 28, 2010

check .net version installed in your computer

to do this, simply create a html page and copy the content.
<Html>
<body>
<script>
alert(navigator.userAgent)
</script>
</body>
</html>
Then open the page on IE, it will prompt the .NET version.

Reference: here

Tuesday, January 5, 2010

ASP.NET Dropdown SelectedValue does not change?

Problem:
My dropdown selected value does not change.
It will always return the initialized value.

Solution:
Check if you put the initialization within the page.ispostback criteria.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
ddl.SelectedValue = "1"
End If
End Sub