Beginning Google Android Development for .NET Developers
4 Comments - 07 Jan 2012
So you’re interested in building applications for the Google Android mobile platform, but you’re a .NET developer.  What a perfect opportunity to dive head-first into – gasp – Java development!  Fear not – if you’ve never taken the plunge into anything outside of the warm, cozy Microsoft development platform, it’s not nearly as painf...

More Link
Read and write Excel File in Asp.net
0 Comments - 11 May 2011
Tweet In this article, we will see how to display data from an Excel spreadsheet using ASP.NET. We will connect to a Microsoft Excel workbook using the OLEDB.NET data provider, extract data and then display the data in a GridView. Let us get started.Step 1: Open Visual Studio > File > New >Website > Under Templates, click ASP.NE...

More Link

May 1, 2010

Java Script Alert for ASP.net 2.0





Hi All,
I come across people were asking about, how to display alert messagebox after callback.
Im not sure this have been posted before or not, but i thought this is good to be share.
Below is the example:
C#

protected void Button1_Click(object sender, EventArgs e)
{
// Alert with messagebox after callback
// Your process here e.g. add/edit/delete from database and etc
// Assume your process take 5 second to complete
System.Threading.Thread.Sleep(5000);
// Build your alert script
StringBuilder sbScript = new StringBuilder();
sbScript.Append("");
// Make use ScriptManager to register the script
ScriptManager.RegisterStartupScript(this, this.GetType(), "@@@@MyCallBackAlertScript", sbScript.ToString(), false);
}
VB

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs)
' Alert with messagebox after callback
' Your process here e.g. add/edit/delete from database and etc
' Assume your process take 5 second to complete
System.Threading.Thread.Sleep(5000)

' Build your alert script
Dim sbScript As New StringBuilder()
sbScript.Append("")

' Make use ScriptManager to register the script
ScriptManager.RegisterStartupScript(Me, Me.[GetType](), "@@@@MyCallBackAlertScript", sbScript.ToString(), False)
End Sub

1 comments:

berlstone said...

Good Tips Thanks

Post a Comment