Pages

Monday, October 15, 2012

Samsung extends lead over Apple in smartphone race: Reuters Poll

Monday, August 27, 2012

Collection of Free Microsoft eBooks

Large collection of Free Microsoft eBooks for you, including: SharePoint, Visual Studio, Windows Phone, Windows 8, SQL Server 2010 / 2012, Azure, and more.

Thursday, April 26, 2012

Google Drive. Keep everything. Share anything.

Google Drive is everywhere you are – on the web, in your home, at the office and on the go. So wherever you are, your stuff is just...there. Ready to go, ready to share. Get started with 5 GB free.

Google Drive is available for:

PC and Mac
iPhone and iPad (coming soon)
Android devices

Things happen. Your phone goes for a swim. Your laptop takes an infinite snooze. No matter what happens to your devices, your files are safely stored in Google Drive.




Google Drive lets you do more than just store your files. Share files with exactly who you want and edit them together, from any device.

Google Drive gives you instant access to Google Docs, a suite of editing tools that makes working together better – even when your teammates are miles away.

Get started with 5 GB of free space. Upgrade to 25 GB for less than $2.50 a month and you can store practically everything for next to nothing.

Friday, February 24, 2012

Microsoft Visual Studio Light Switch 2011

Overview
Microsoft Visual Studio LightSwitch 2011 makes it simple for users of all skill levels to quickly build and deploy polished, user-friendly business applications that look like they were created by a professional designer.

Familiar and professional applications, coding optional
You can download one or more of the extensible, pre-built application shells—called starter kits—to help you give your application the look and feel of popular Microsoft software, like Office and Windows, without starting from scratch.

Desktop, web, or cloud—you choose
Create one application and deploy it to ensure the highest adoption and use by your users. LightSwitch lets you decide on a deployment method after your application is built, then writes the code to make it happen.

Build your first LightSwitch Application

Wednesday, January 11, 2012

Multiple Files Uploading using JQuery in ASP.NET

In this article, i tried to explain that how to upload multiple files using JQuery in as asp.net page. Also, you can check the file size and file size during the upload process and restrict the user.

Follow the below steps:

Step No. 1

You have to have the following files in and create the reference of these files in your header section of your page.

<head runat='server' ID='head1'>
    <title>Multiple Files Uploading</title>   
    <script src='Scripts/jquery-1.3.2.js' type='text/javascript'></script>
    <script src='Scripts/jquery.MultiFile.js' type='text/javascript'></script>
</head>

jquery.MultiFile.js can be download from here.


Step No. 2

Add a HTML file uploader control in your body section.

<input type='file' id='fluFile' runat='server' class='multi' accept='gif|jpg|png|bmp|jpeg' maxlength='5' />

<asp:Button ID='btnUpload' runat='server' Text='Upload All' />

class='multi' is shows that the user can select multiple files.
maxlength='5' is shows that the user can not select more than 5 files.
accept is shows that the mentioned file formats are allowed to upload.

Step No. 3

Place the following code on the button click event

Dim hfc As HttpFileCollection = Request.Files

            For i As Integer = 0 To hfc.Count - 1
                Dim hpf As HttpPostedFile = hfc(i)
                If hpf.ContentLength > 0 Then
                    If hfc.Item(i).ContentLength > 524288 Then
                        Throw New Exception('File size should not be more than 512KB')
                    Else
                        hpf.SaveAs(Server.MapPath('Files') & '\' & hpf.FileName)
                    End If
                End If
            Next

lblmsg.text = 'File(s) uploaded successfully'

The above code can be more precize and expandable as per your requirements like you can put up your own code to get file extensions and vaildate the file type and size during the uploading process.

Hope, it will work for you!

Monday, December 26, 2011

Free eBooks

The website that is gonna share with you is not allow to store any files on their server. They only indexes and links to the content provided by other sites.

You are now just a click a way to get your free eBooks.

Tuesday, October 26, 2010

Create Programmatically GridView Paging Style

Today, I am here to share with you a very useful technique of gridview paging style programmatically using vb.net shown below:

Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs)

If e.Row.RowType = DataControlRowType.Pager Then
Dim tRow As TableRow = TryCast(e.Row.Controls(0).Controls(0).Controls(0), TableRow)
For Each tCell As TableCell In tRow.Cells
Dim ctrl As Control = tCell.Controls(0)
If TypeOf ctrl Is LinkButton Then
Dim lb As LinkButton = CType(ctrl, LinkButton)
lb.Width = Unit.Pixel(15)
lb.BackColor = System.Drawing.Color.DarkGray
lb.ForeColor = System.Drawing.Color.White
lb.Attributes.Add("onmouseover", "this.style.backgroundColor='#4f6b72';")
lb.Attributes.Add("onmouseout", "this.style.backgroundColor='darkgray';")
End If
Next tCell
End If

End Sub

Saturday, September 4, 2010

Checking out jQuery Intellisense in Visual Studio 2008 with SP1

Assuming you have installed the hotfix , downloaded the jQuery library and the jQuery VS 2008 IntelliSense documentation, follow these steps to move ahead.

Open Visual Studio 2008 > File > New > Website > Choose ‘ASP.NET 3.5 website’ from the templates > Choose your language (C# or VB) > Enter the location > Ok. In the Solution Explorer, right click your project > New Folder > rename the folder as ‘Scripts’.

Right click the Scripts folder > Add Existing Item > Browse to the path where you downloaded the jQuery library (jquery-1.2.6.js) and the intellisense documentation (jquery-1.2.6-vsdoc.js) > Select the files and click Add. The structure will look similar to the following:














Now drag and drop the jquery-1.2.6.js file from the Solution Explorer on to your page to create a reference as shown below
:








Since you have applied the hotfix, you do not have to manually add a reference to the jquery-1.2.6-vsdoc.js file in your page. Once the reference to the runtime library has been added, Visual Studio automatically searches for the ‘vsdoc’ file and loads it. You just need to keep both the runtime library and the documentation file next to each other.

Monday, July 26, 2010

CMS Made Simple

CMS Made Simple is an open source ( GPL) package, built using PHP that provides website developers with a simple, easy to use utility to allow building small-ish (dozens to hundreds of pages), semi-static websites. Typically our tool is used for corporate websites, or the website promoting a team or organization, etc. This is where we shine. There are other content management packages that specialize in building portals, or blogs, or article based content, etc. CMS Made Simple can do much of this, but it is not our area of focus.

CMS Made Simple provides a mechanism for the website administrator to create and manage "pages", their layout, and their content. CMS Made simple is unobtrusive.... You can create a table based layout, or a fully validating XHTML/CSS layout.

Click here for more .....

Tuesday, June 22, 2010

Export GridView with Images to Word, Excel and PDF Formats

Export to Word Format

Private Sub Word_Export()

Response.Clear()
Response.Buffer = True
Response.AddHeader("content-disposition", "attachment;filename=GridViewExport.doc")

Response.Charset = ""
Response.ContentType = "application/vnd.ms-word "

Dim sw As New StringWriter()
Dim hw As New HtmlTextWriter(sw)

GridView1.AllowPaging = False
GridView1.DataBind()
GridView1.RenderControl(hw)

Response.Output.Write(sw.ToString())
Response.Flush()
Response.End()

End Sub



Export to Excel Format

Private Sub Excel_Export()

Response.Clear()
Response.Buffer = True
Response.AddHeader("content-disposition", "attachment;filename=GridViewExport.xls")

Response.Charset = ""
Response.ContentType = "application/vnd.ms-excel"

Dim sw As New StringWriter()
Dim hw As New HtmlTextWriter(sw)

GridView1.AllowPaging = False
GridView1.DataBind()

For i As Integer = 0 To GridView1.Rows.Count - 1
Dim row As GridViewRow = GridView1.Rows(i)
'Apply text style to each Row
row.Attributes.Add("class", "textmode")
Next

GridView1.RenderControl(hw)

'style to format numbers to string

Dim style As String = ""

Response.Write(style)
Response.Output.Write(sw.ToString())
Response.Flush()
Response.End()

End Sub


Export to PDF Format

Private Sub PDF_Export()

Response.ContentType = "application/pdf"
Response.AddHeader("content-disposition","attachment;filename=GridViewExport.pdf")
Response.Cache.SetCacheability(HttpCacheability.NoCache)

Dim sw As New StringWriter()
Dim hw As New HtmlTextWriter(sw)

GridView1.AllowPaging = False
GridView1.DataBind()
GridView1.RenderControl(hw)

Dim sr As New StringReader(sw.ToString())
Dim pdfDoc As New Document(PageSize.A4, 10.0F, 10.0F, 10.0F, 0.0F)
Dim htmlparser As New HTMLWorker(pdfDoc)

PdfWriter.GetInstance(pdfDoc, Response.OutputStream)

pdfDoc.Open()
htmlparser.Parse(sr)
pdfDoc.Close()
Response.Write(pdfDoc)
Response.End()

End Sub