Month: February 2012

Viewing uploaded file!!!

Here we go small ASP.NET/C#.NET snippet to view the uploaded file!

Demo.aspx

<form id="form1" runat="server" enctype="multipart/form-data">
    <div>
        <asp:FileUpload runat="server" ID="fileUpload" />
        <asp:Button runat="server" Text="Upload" OnClick="FileUpload_Click" />
        <asp:HyperLink  runat="server" ID="lnkButton" Text="View File" />
    </div>
    </form>

Demo.aspx.cs

protected void FileUpload_Click(object sender, EventArgs e)
       {
           if (fileUpload.HasFile)
           {
               string strPath = Request.PhysicalApplicationPath + "Upload\\" + fileUpload.FileName;
               fileUpload.SaveAs(strPath);
               lnkButton.NavigateUrl = "~/Upload/" + fileUpload.FileName;
           }
       }
Happy Coding!!!

Tools available from BlackBerry for Web Development

BlackBerry Plugin 2.5 for VS 2008 is now depreciated! You no longer can use it and RIM doesn’t support it.

Moreover they updated the tool set and emulators at one place!

https://bdsc.webapps.blackberry.com/html5/

Now you can take advantage of HTML 5, to develop Web & Native apps for BlackBerry devices!

You can download the tools from the below link –

https://bdsc.webapps.blackberry.com/html5/download

Documentation – https://bdsc.webapps.blackberry.com/html5/documentation

API Reference – https://bdsc.webapps.blackberry.com/html5/api

You can take advantage of Ripple emulator to test you apps – both Web & Native.

Happy Coding!