Tag Archives: Br

Data Binding in Android – Using Observables (BaseObservable) to Update UI automatically

By | January 20, 2017

In the last example, you may have got an idea of what DataBinding is. If not please check my tutorial here… Simple DataBinding in Android Example. Updating Objects using Observables. In the last tutorial you may have noticed, if you update the object which is data binded, the change is not reflected in the UI right. Our requirement… Read More »

How to upload files to server using the new FileUpload control in C#/C-Sharp ?

By | June 6, 2012

Hi, For uploading files to server using the new FileUpload control in C#, [c] <%@ Page Language="C#"%> <script runat="server"> protected void Button1_Click(object sender, EventArgs e) { if (FileUpload1.HasFile) try { FileUpload1.SaveAs("C:\\Uploads\\" + FileUpload1.FileName); Label1.Text = "File name: " + FileUpload1.PostedFile.FileName + "<br>" + FileUpload1.PostedFile.ContentLength + " kb<br>" + "Content type: " + FileUpload1.PostedFile.ContentType; } catch (Exception ex) {… Read More »

Uploading Files to Server in C#/C-Sharp

By | June 6, 2012

Hi, For uploading files to server in C#/C Sharp, [c] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="UploadFile" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <asp:FileUpload ID="Uploader" runat="server" Height="24px" Width="472px" />&nbsp; <asp:Button ID="cmdUpload" runat="server" Height="24px" OnClick="cmdUpload_Click" Text="Upload" Width="88px" /><br /> <br /> <asp:Label ID="lblInfo" runat="server" EnableViewState="False"… Read More »

TextView with link in ANDROID…….

By | May 10, 2011

Hi all……. All of you may be familiar with TextViews in ANDROID. But how many of you know that we have have html as text in a textView. This post is a simple example to show this. Create a fresh project and copy this code to the main java file. [java] package com.coderzheaven; import android.app.Activity; import android.os.Bundle; import… Read More »