Monday, December 27, 2010

twitter notifications jquery

No comments:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <title>Jquery</title>
    <style type="text/css">
        #response
        {
            height: 50px;
            background-color: #80E6FF;
            position: absolute;
            width: 100%;
            top: 0px;
            left: 0px;
            text-align: center;
            text-align: center;
            font-style: normal;
            font-size: x-large;
            font-family: "Comic Sans MS";
        }
    </style>
    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
            $('#response').hide();
            $('#response').click(function() {
                $('#response').slideUp('fast');
            });


            $('#show').click(function() {
                $('#response').slideDown('slow');
                $('#response').html('Settings saved successfully!');
            });
        });
    </script>
</head>


<body>
<label id="show">Click to Save settings.</label>
<div id="response"></div>
</body>
</html>

Sunday, December 26, 2010

jquery post sample

3 comments:
Database table:

CREATE TABLE `comments` (
`id` INT( 5 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`name` VARCHAR( 50 ) NOT NULL ,
`comment` VARCHAR( 255 ) NOT NULL ,
`time` INT( 9 ) NOT NULL
)

process.php

<?php
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "";
$dbname = "newdb";

$name=$_POST['name'];
$comment=$_POST['comment'];

$conn=mysql_connect($dbhost,$dbuser,$dbpass) or die(mysql_error);
$select_db=mysql_select_db($dbname) or die("cannot find database!");

$sql= "INSERT INTO comments (`name`,`comment`,`time`) values ('$name','$comment',".time().")";

mysql_query($sql) or die("insert failed.");

echo true;

?>

index.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="jquery-1.4.4.min.js"></script>
<title>Jquery - samples</title>


<style>
#response
{
border: 5px solid #99CCFF;
background: #00CCFF;
}
</style>


<script type="text/javascript">


$(document).ready(function()
{
$("#response").hide();


$("#addComment").click(function()
{
if( $("#name").val()!='' && $("#comment").val()!='')
{
$.post(
"process.php",
{
name:$("#name").val(),
comment:$("#comment").val()
},
function(response)
{
if(response == true )
{
$("#response").fadeIn('normal');
$("#response").html('Comment Added!');
$("#name").val('');
$("#comment").val('');
}
else
{
$("#response").fadeIn('normal');
$("#response").html('Insertion failed!');
}
}
);
}
else
{
$("#response").fadeIn('normal');
$("#response").html('Please enter your name and comment!');
}
return false;
});


$("#response").click(function()
{
$("#response").fadeOut('slow');
});

$("#resetall").click(function()
{
  $("#name").val('');
  $("#comment").val('');
$("#response").hide();
});
});


</script>
</head>


<body>
<form id="commentform">
<table width="100%" border="1">
  <tr>
    <th scope="row">Name</th>
    <td><input name="name" type="text" id="name" size="50"/></td>
  </tr>
  <tr>
    <th scope="row">Comment</th>
    <td><textarea id="comment" name="Comment" cols="50" rows="3" ></textarea></td>
  </tr>
  <tr>
    <th scope="row">&nbsp;</th>
    <td><input name="submit" type="submit" id="addComment" value="Add"/>
      <input name="button" type="button" id="resetall" value="Reset"/></td>
  </tr>
</table>
</form>
<div id="response"></div>
</body>
</html>

Tuesday, December 21, 2010

asp.net and sql server

No comments:
aspx page

<body>
    <form id="form1" runat="server">
    <div>
   
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
   
    </div>
    <asp:DropDownList ID="DropDownList1" runat="server">
    </asp:DropDownList>
    <asp:Button ID="Button2" runat="server" onclick="Button2_Click"
        Text="Load all" />
    </form>
</body>

web.config

<appSettings>
        <add key="localhost" value="dbConnectionString"/>
    </appSettings>
    <connectionStrings>
        <add name="dbConnectionString" connectionString="Data Source=.\SQLEXPRESS; User ID=sa; Password=pswd; Database=testdatas; TimeOut=1 " providerName="System.Data.SqlClient"/>
    </connectionStrings>

aspx page.cs

public partial class _Default : System.Web.UI.Page
{
    SqlConnection sqlcon;
    SqlCommand SqlCmd;
    string ConnectionName = "";
    string ConnectionString = "";

    SqlDataReader SqlDr;
    List<string> LstString;

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Response.Write(DateTime.Now.ToString());
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        ConnectionName = ConfigurationManager.AppSettings["localhost"].ToString();
        ConnectionString = ConfigurationManager.ConnectionStrings[ConnectionName].ToString();
        sqlcon = new SqlConnection();
        SqlCmd = new SqlCommand();
        sqlcon.ConnectionString = ConnectionString;
        SqlCmd.CommandText = "insert into tbone (name) values (@users)";
        SqlCmd.Parameters.AddWithValue("@users",TextBox1.Text);
        SqlCmd.Connection = sqlcon;
        sqlcon.Open();
        SqlCmd.ExecuteNonQuery();
        sqlcon.Close();
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        ConnectionName = ConfigurationManager.AppSettings["localhost"].ToString();
        ConnectionString = ConfigurationManager.ConnectionStrings[ConnectionName].ToString();
        sqlcon = new SqlConnection();
        SqlCmd = new SqlCommand();
        LstString = new List<string>();
        sqlcon.ConnectionString = ConnectionString;
        SqlCmd.CommandText = "select * from tbone";
        SqlCmd.Parameters.AddWithValue("@users", TextBox1.Text);
        SqlCmd.Connection = sqlcon;
        sqlcon.Open();

        SqlDr = SqlCmd.ExecuteReader();
        while (SqlDr.Read())
        {
            LstString.Add(SqlDr["name"].ToString());
        }
        SqlDr.Close();
        sqlcon.Close();

        DropDownList1.DataSource = LstString;
        DropDownList1.DataBind();
    }
}

Tuesday, November 30, 2010

Good Comparison - PENCIL & ERASER..

No comments:





Pencil: I'm sorry
Eraser: For what? You didn't do anything wrong.
Pencil: I'm sorry because you get hurt because of me. Whenever I made a mistake, you're always there to erase it. But as you make my mistakes vanish, you lose a part of yourself. You get smaller and smaller each time.
Eraser: That's true. But I don't really mind. You see, I was made to do this. I was made to help you whenever you do something wrong. Even though one day, I know I'll be gone and you'll replace me with a new one, I'm actually happy with my job. So please, stop worrying. I hate seeing you sad.
 
I found this conversation between the pencil and the eraser very inspirational. Parents are like the eraser whereas their children are the pencil. They're always there for their children, cleaning up their mistakes. Sometimes along the way, they get hurt, and become smaller / older, and eventually pass on. Though their children will eventually find someone new (spouse), but parents are still happy with what they do for their children, and will always hate seeing their precious ones worrying, or sad.
 
All my life, I've been the pencil. And it pains me to see the eraser that is my parents getting smaller and smaller each day. For I know that one day, all that I'm left with would be eraser shavings and memories of what I used to have.
 
This is to all the parents out there.

Wednesday, August 18, 2010

GridView for listing download link

No comments:
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" EnableModelValidation="True">
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="url_data_field" DataNavigateUrlFormatString="download_folder/{0}" 
            HeaderText="View" Text="Download" />
        </Columns>
    </asp:GridView>

Friday, July 30, 2010

Make a blogging application

No comments:
--The following query tells you how to make a small blog with comment feature.
--create table articles
CREATE TABLE [dbo].[articles]
(
[id] [int] IDENTITY(1,1) NOT
NULL,
[title] [varchar](100) NOT
NULL,
[article] [text] NOT
NULL,
)
--create table comments
CREATE TABLE [dbo].[comments]
(
[id] [int] IDENTITY(1,1) NOT
NULL,
[article_id] [int]
NULL,
[title] [varchar](50)
NULL,
[comment] [text]
NULL,
)
--to see an article with all its comment
select 'articles' as
rowtype
, articles.
id
, articles.
title
, articles.
article
from
articles
where articles.id =
1
union all
select
'comments' as
rowtype
, comments.
id
, comments.
title
, comments.
comment
from
articles
inner
join
comments
on comments.article_id = articles.
id
where articles.id =
1
order
by
rowtype

Monday, July 26, 2010

WISE DOCTOR:::::::::::

2 comments:
A Wise Doctor

What an interesting way to put it!

A worried woman went to her gynecologist and said:
'Doctor, I have a serious problem and desperately need your help!
My baby is not even 1 yr. old and I'm pregnant again.
I don't want kids so close together.'

So the doctor said: 'Ok, and what do you want me to do?'

She said: 'I want you to end my pregnancy, and I'm counting on your help with this.'

The doctor thought for a little, and after some silence he said to the lady:
'I think I have a better solution for your problem. It's less dangerous for you, too.'

She smiled, thinking that the doctor was going to accept her request.
Then he continued:
'You see, in order for you not to have to take care of 2 babies at the same time, let's kill the one in your arms. This way, you could rest some before the other one is born. If we're going to kill one of them, it doesn't matter which one it is. There would be no risk for your body if you chose the one in your arms.

The lady was horrified and said: 'No doctor! How terrible! It's a crime to kill a child! 'I agree', the doctor replied. 'But you seemed to be ok with it, so I thought maybe that was the best solution. The doctor smiled, realizing that he had made his point. He convinced the mom that there is no difference in killing a child that's already been born and one that's still in the womb.

The crime is the same!

Monday, July 19, 2010

Historic photographs

No comments:
Please don't forget to read the letter in the end
Just read what INDIA was as per LORD MACAULAY on his statement on 2nd February 1835, in the last snap.  That would really shock us Old Photographs from Indian History.  Please Read the last Article Carefully……
The daughter of an Indian maharajah seated on a panther she shot, sometime during 1920s. 
ATT00003
A British man gets a pedicure from an Indian servant.
ATT00005
The Grand Trunk Road , built by Sher Shah Suri, was the main trade route from Calcutta to Kabul .
ATT00009
A group of Dancing or notch girls began performing with their elaborate costumes and jewelry.
ATT00008
A rare view of the President's palace and the Parliament building in New Delhi .
ATT00001
Women gather at a party in Mumbai ( Bombay ) in 1910.
ATT00007
A group from Vaishnava, a sect founded by a Hindu mystic. His followers are called Gosvami-maharajahs
ATT00006
An aerial view of Jama Masjid mosque in Delhi , built between 1650 and 1658.
ATT00004
The Imperial Airways 'Hanno' Hadley Page passenger airplane carries the England to India air mail, stopping in Sharjah to refuel.
ATT00010



See what the India was at 1835.......
ATT00002

Wednesday, July 14, 2010

Advanced SQL Query ...................

No comments:

Wedding Query........ ........ (SQL Style)

HUSBANDS QUERY
CREATE PROCEDURE MyMarriage (
BrideGroom Male (25) ,
Bride Female(20) )AS
BEGIN


SELECT 
Bride FROM india_ Brides
WHERE
 FatherInLaw = 'Millionaire'

AND Count(Car) > 20 AND HouseStatus ='ThreeStoreyed'
AND 
BrideEduStatus IN (B.TECH ,BE ,Degree ,MCA ,MBA) AND Having Brothers= Null AND Sisters =Yes
J



SELECT
Gold ,Cash,Car,BankBalance

FROM FatherInLaw

UPDATE MyBankAccout

SETMyBal = MyBal + FatherInLawBal


UPDATE
MyLocker 

SET MyLockerContents = MyLockerContents + FatherInLawGold


INSERT INTO
 MyCarShed VALUES('BMW')
END
GO 

wife writes the below query:
DROP HUSBAND;
Commit;
J

  


--
With Warm Regards,
Jerome Jackson Rodrigues
http://rodriguesjax.blogspot.com
https://twitter.com/rodriguesjax

Searching 4 an Answer!!!

No comments:

if u got it already..read once more...


         *Don't miss even a single word...** **Too good** *

An atheist professor of philosophy speaks to his class on the problem
science has with God, The Almighty.
He asks one of his new students to stand and.....

Prof:
So you believe in God?

Student:

Absolutely, sir.

Prof

: Is God good?

Student:

Sure.

Prof:

Is God all-powerful?

Student

: Yes.

Prof:
My brother died of cancer even though he prayed to God to heal him.
Most of us would attempt to help others who are ill. But God didn't. How is
this God good then? Hmm?

(Student is silent.)

Prof:
You can't answer, can you? Let's start again, young fella. Is God good?

Student:

Yes.

Prof:

Is Satan good?

Student

: No.

Prof:
Where does Satan come from?

Student:

From...God...

Prof:
That's right. Tell me son, is there evil in this world?

Student:

Yes.

Prof:
Evil is everywhere, isn't it? And God did make everything. Correct?

Student:

Yes.

Prof:

So who created evil?

(Student does not answer.)

Prof:
Is there sickness? Immorality? Hatred? Ugliness? All these terrible things
exist in the world, don't they?

Student:

Yes, sir.

Prof:

So, who created them?

(Student has no answer.)

Prof:
Science says you have 5 senses you use to identify and observe the world
around you.
Tell me, son...Have you ever

seen God?

Student:

No, sir.

Prof:
Tell us if you have ever heard your God?

Student:

No, sir.

Prof:
Have you ever felt your God, tasted your God, smelt your God? Have you ever
had any sensory perception of God for that matter?

Student:
No, sir. I'm afraid I haven't.

Prof:
Yet you still believe in Him?

Student:

Yes.

Prof:
According to empirical, testable, demonstrable protocol, science says your
GOD doesn't exist.
What do you say to that, son?

Student:
Nothing. I only have my faith.

Prof:
Yes. Faith. And that is the problem science has.

Student:
Professor, is there such a thing as heat?

Prof:

Yes.

Student:
And is there such a thing as cold?

Prof:

Yes.

Student:
No sir. There isn't.
(The lecture theatre becomes very quiet with this turn of events.)

Student
: Sir, you can have lots of heat, even more heat, superheat, mega heat,
white heat, a little heat or no heat.
But we don't have anything called cold. We can hit 458 degrees below zero
which is no heat, but we can't go

any further after that.
There is no such thing as cold . Cold is only a word we use to describe the
absence of

heat
. We cannot measure cold. Heat is energy . Cold is not the opposite of heat,
sir, just the absence of it .
(There is pin-drop silence in the lecture theatre.)

Student:
What about darkness, Professor? Is there such a thing as darkness?

Prof:
Yes. What is night if there isn't darkness?

Student :
You're wrong again, sir. Darkness is the absence of something. You can have
low light, normal light, bright
light, flashing light....But if
you have no light constantly, you have nothing and it's called darkness,
isn't it? In
reality, darkness isn't. If it were you would be able to make
darkness darker, wouldn't you?

Prof:
So what is the point you are making, young man?

Student:
Sir, my point is your philosophical premise is flawed.

Prof:
Flawed? Can you explain how?

Student:
Sir, you are working on the premise of duality. You argue there is life and
then there is death, a good God and a bad God. You are viewing the concept
of God as something finite, something we can measure. Sir, science can't
even explain a thought. It uses electricity and magnetism, but has never
seen, much less fully understood either one.To view death as the opposite of
life is to be ignorant of the fact that death cannot exist as a substantive
thing. Death is not the opposite of life: just the absence of it.
Now tell me, Professor.Do you teach your students that they evolved from a
monkey?

Prof:
If you are referring to the natural evolutionary process, yes, of course, I
do.

Student:
Have you ever observed evolution with your own eyes, sir?
(The Professor shakes his head with a smile, beginning to realize where the
argument is going.)

Student:
Since no one has ever observed the process of evolution at work and cannot
even prove that this process is an on-going endeavor, are you not teaching
your opinion, sir? Are you not a scientist but a preacher? (The class is in
uproar.)

Student:
Is there anyone in the class who has ever seen the Professor's brain?
(The class breaks out into laughter.)

Student
: Is there anyone here who has ever heard the Professor's brain, felt it,
touched or smelt it? No one appears to have done so. So, according to the
established rules of empirical, stable, demonstrable protocol, science says
that you have no brain,sir.
With all due respect, sir, how do we then trust your lectures, sir?
(The room is silent. The professor stares at the student, his face
unfathomable.)

Prof:
I guess you'll have to take them on faith, son.

Student:
That is it sir... *The link between man & god is FAITH *. That is all that
keeps things moving & alive.

NB: I believe you have enjoyed the conversation...and if so...you'll
probably want your friends/colleagues to enjoy the same...won't you?....
this is a true story, and the

*student was none other than......... *

..

.

.

..

.

.

.

.

..

.
*APJ Abdul Kalam**, *the former president of India.
orwardSourceID:NT0000767E
ForwardSourceID:NT00006736
ForwardSourceID:NT000025


--
" When U fall, don't see the place where U fell, instead see the place from
where U slipped. Life is about Correcting Mistakes ".

--
With Warm Regards,
Jerome Jackson Rodrigues
http://rodriguesjax.blogspot.com
https://twitter.com/rodriguesjax

Tuesday, June 22, 2010

I liked todays Manorama Metro ...

1 comment:
I was wondering why there is no reports on the road condition in Ernakulam. Wonder why no one is interested in a public issue like this. I have posted this issue in Facebook and Google Buzz. But everybody is interested in chat and all...
The road condition in the city is very pathetic. This is not supposed to be happen in this Gods Own Country. The concerned officials are keeping their eyes shut and its already too late to wake up. And the thing which should be noted is that it has been hardly one year since these roads were tarred..
In this rainy reasons these roads are a real threat to our lives. There is a good chance we will get painted in brown. These things show the corruption, lack of planning, wastage of resource and money in the concerned authority. I have a lot to say, now stopping here...
Wrote his post because i have seen these important things in front of us seems not be unimportant thing for us..

connect silverlight with ms sql server

No comments:
1. File->New Silverlight Application  and name, say “silverlight_wcf_sql”
2. Check the checkbox to host the silverlight application in a new web application “silverlight_wcf_sql.Web”
3. Silverlight page design
xaml_design
4. Add a new WCF Service and name it sql_wcf.svc
5. Add a method say “GetName()” like

[OperationContract]
public string GetName()
{
//refer attached file
}

OperationContract attribute above the method name indicates that this method can be called from a WCF client.
  • Refer the sample project attached.
6. Right click the Silverlight Application “silverlight_wcf_sql” and add Service Reference. Add “sql_wcf.svc” as Service Reference and name it “Silverlight_wcf_service_reference”
7. Go to MainPage.xaml and double click the button to generate BtnClickMe_Click event and type the code

private void BtnClickMe_Click(object sender, RoutedEventArgs e)
{
BtnClickMe.IsEnabled = false;
Silverlight_wcf_service_reference.sql_wcfClient myclient = new Silverlight_wcf_service_reference.sql_wcfClient();
myclient.GetNameCompleted += new EventHandler(myclient_GetNameCompleted);
myclient.GetNameAsync();
txtBlkSQL.Text = "Receiving data...";
LbMessage.Content = "http://www.rodriguesjax.blogspot.com";
}


void myclient_GetNameCompleted(object sender, Silverlight_wcf_service_reference.GetNameCompletedEventArgs e)
{
txtBlkSQL.Text = (string)e.Result;
BtnClickMe.IsEnabled = true;
}


Click here to download silverlight_wcf_sql.rar
use visual studio 2010

Sunday, June 20, 2010

Global hotkeys for windows media player

No comments:

Use media player just like Winamp.. use global hotkeys to control media player even when it is no longer in focus or it is minimized.

Install the plug-ins ‘Wmpkeys’. To customize go to options->Plug-ins and select the category Background. Then click Properties button to customizing its settings.

Hide windows live messenger icon or windows live mail icon to system notification

1 comment:

Hi, its easy to send the task bar icon of windows live mail or windows messenger to system notification area..

  1. Right click the program shortcut icon in All programs in start menu.
  2. Click Properties –> Compatibility tab
  3. use Compatibility mode for ‘Windows Vista (Service Pack 2) and click OK.
  4. Now open the program as usual and right click the icon in notification area.
  5. Check the option ‘Hide window when minimized’ and for messenger the there is no need of step 5.
  • Now you can see the program running in background just like in Windows Vista.

Wednesday, June 9, 2010

Getting started silverlight

No comments:
  • Open Visual Studio and Click File->New Project… And Select Silverlight Application in Silverlight Templates. You can give a name to the project say MyFirstApplication and click OK.Add new project
  • This is to select whether you need to add a web application in the solution to host the silverlight file(xap). This is optional depending upon your requirement. This is similar to adding projects to a solution.
Host silverlight in a new project
        • Drag and drop a Button and TextBlock control from the ToolBox in MainPage.xaml. You may adjust the width of TextBlock. Then double click the button to go to the ‘button1_Click’ event in the code file(MainPage.xaml.cs).  You may be able to see other available events for the control in the Events tab in Properties window. Double click a event to go to the particular event.
Add the code in the MainPage.xaml.csType the code below in the button1_Click event assuming Button name is ‘button1’ and TextBox name is textBlock1
private void button1_Click(object sender, RoutedEventArgs e)
{
    textBlock1.Text = "Hello, Welcome to silverlight";
}
  • Press F5 to start debugging the silverlight application.
Press F5 to start debugging the application

Click here to download the sample file

Share it Facebook  Twitter

Friday, May 28, 2010

Google maps across ocean

No comments:

Server address for yahoo IM in Nokia mobiles

No comments:
  • Using yahoo IM in your nokia mobile is very easy…
  1. Goto settings –> Configuration –> Personal config. sett.
  2. Then add ‘Instant messaging’
  • Account name : yahoo! (your choice)
  • server address : http://imps.msg.yahoo.com
  • user ID : <your username>
  • password :<your password>
  • Use pref access pt: Yes (if exists)

Tuesday, May 25, 2010

Free download Ajax Control Toolkit

No comments:
Visit http://www.asp.net/ajax to get the download link..
Extract the downloaded file
Create a new Toolbox tab then click choose items and and pick AjaxControlToolkit.dll in the extracted folder.
Then click ok.

Calendar for asp.net TextBox control using ASP.NET AJAX Calendar Extender

No comments:
CalendarExtender is a asp.net ajax extender that can be used with any textbox. This provides a client side date picker.

Downlaod toolkit from http://ajaxcontroltoolkit.codeplex.com/

code:
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<body>
    <form id="form1" runat="server">
    <div>
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:CalendarExtender ID="CalendarExtender1" runat="server" Format="dd/MM/yyyy" TargetControlID="TextBox1">
        </asp:CalendarExtender>
    </div>
    </form>
</body>
  • In order to get a Calendar with an associated calendar icon image
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<body>
    <form id="form1" runat="server">
    <div>
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Image ID="Image1" runat="server" ImageUrl="~/images/cal.png" />
        <asp:CalendarExtender ID="CalendarExtender1" runat="server" Format="dd/MM/yyyy" TargetControlID="TextBox1" PopupButtonID="Image1">
        </asp:CalendarExtender>
    </div>
    </form>
</body>

Saturday, May 15, 2010

Asp.net MultiView

No comments:

A multiview is useful when data from one page need to be transferred to another page. Example to jump from one page to other in a shopping cart web site. For each page step of shopping each views in MultiView can be used. MultiView control shows only one view at a time. So the same page seems to more than one page depending upon number of views present inside a multiview.

To use a MultiView control just drag and drop a MultiView control from the toolbox. Then add views from the toolbox in the blank area the MultiView control. Add more views by drag and dropping the view control on the grey header of previously added view control.

E.g.:

WebForm1.aspx

<asp:Button ID="Button1" runat="server" Text="General"
            onclick="Button1_Click" />

<asp:MultiView ID="MultiView1" runat="server">
       <asp:View ID="View2" runat="server">
           View Two
       </asp:View>
       <asp:View ID="View1" runat="server">
           View One
       </asp:View>
   </asp:MultiView>

To view the contents inside a view say View1 when Button1 is clicked use the following code.

protected void Button1_Click(object sender, EventArgs e)
{
    MultiView1.SetActiveView(View1);
}

Friday, May 14, 2010

Kubuntu and Kubuntu screenshots

No comments:
Kubuntu 10.04 transparency effects..


 Ubuntu 10.04 some visual effects.. 


Ubuntu 10.04 transparency effects..

Tuesday, April 27, 2010

Using blogger via Windows Live Writer.

No comments:

hi friends, downloaded windows live writer.. This software can be used as a desktop interface for blogging. This is very cool, easy software with many features… c you latter, Bye

Friday, April 9, 2010

Ubuntu V.S. Kubuntu

No comments:
http://ubuntuforums.org/showthread.php?t=621592

http://www.psychocats.net/ubuntu/kdegnome

http://www.psychocats.net/ubuntu/kde

http://www.psychocats.net/ubuntu/gnome

Post your blogger updates to facebook automatically

1 comment:
Now let your friends know about your latest blog posts in facebook.. Follow the three steps...
1. go to http://www.blogger.com/home .
2. click settings --> Email & Mobile.
3. Add your personal facebook email id(get it from http://www.facebook.com/mobile/) in  Email posts to .

Monday, April 5, 2010

Kerala Google Technology User Group Launch

No comments:
Saturday, April 10, 2010 from 9:30 AM - 4:00 PM (GMT+0530)
Trivandrum, India
http://www.kerala-gtug.org/30/launch-event/

Sunday, April 4, 2010

Post in Blogger via email

No comments:
Go to Email & Mobile Settings and add your  Posting using email. Eg:
username.mysecretword@blogger.com
Click the save button...
Now you can post by sending email to the the posting secret address.
The subject of the email will be the title of the post and email body
will be the post. To add an image attach an image to the email.

Update facebook via mobile sms.

1 comment:
Hi friends, now share your status in facebook via mobile sms.
To start go to facebook settings and go to mobile tab. Sms as per your mobile operator to facebook. You may get a confirmation code as sms. Then associate your mobile number by entering the confirmation code that you get as sms in your mobile in text textbox provided..
Save your mobile settings.
Congrates, your mobile is associated.
To update you status sms text to 9232232665. Get more options by smsing "tips" to the same number.

Tuesday, March 23, 2010

Make your own video page - demo

No comments:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<script type="text/javascript">
fid="31CE2139109B";ftype="stream";
</script>
<script type="text/javascript" src="http://express.freedocast.com/Js/Fc_Embed_Player.js">
</script>


</body>
</html>


Note: save this as my-channel.html

India Vision News Live

1 comment:

Sunday, March 14, 2010

Reading and Updating a mysql table using php

No comments:
<?php
//Establishing connection with database and including functionalities
define('DB_HOST','localhost');
define('DB_NAME','mydb');
define('DB_USER','root');
define('DB_PASS','');
$con=@mysql_connect(DB_HOST,DB_USER,DB_PASS);
$bd=@mysql_select_db(DB_NAME) or die ("Cannot connect to the database".mysql_error());
?>


<?php

if (isset($_POST['Submit']))
{

  $title=$_REQUEST['txtitle'];
$desc=$_REQUEST['txtdesc'];
{
$sql1=@mysql_query("Update `about` Set `title` = '$title' , `desc` = '$desc' where id='1'");
if(!$sql1)
{
@mysql_query("ROLLBACK");
}
}
}

$sql2=@mysql_query("Select * from `about` where id='1'");
if(mysql_num_rows($sql2)>0)
{
$rs=@mysql_fetch_object($sql2);
}

?>

<html>
<body>
<form action="one.php" method="post">
<table width="100%" border="1">
  <tr>
    <th scope="row">Title</th>
    <td><input name="txtitle" type="text" id="textfield" value="<?php echo $rs->title;?>" /></td>
  </tr>
  <tr>
    <th scope="row">Desc</th>
    <td><textarea name="txtdesc" id="txtdesc" cols="45" rows="5"><?php echo $rs->desc;?></textarea></td>
  </tr>
  <tr>
    <th scope="row">&nbsp;</th>
    <td><input type="submit" name="Submit" id="button" value="Send" /></td>
  </tr>
</table>
</form>
</body>
</html>

Tuesday, March 9, 2010

Rss2.0 And Atom1.0 Compared

No comments:

RSS and Atom

People who generate syndication feeds have a choice of feed formats. As of mid-2005, the two most likely candidates will be [WWW]RSS 2.0 and [WWW]Atom 1.0. The purpose of this page is to summarize, as clearly and simply as possible, the differences between the RSS 2.0 and Atom 1.0 syndication languages.


http://www.intertwingly.net/wiki/pie/Rss20AndAtom10Compared

Friday, March 5, 2010

Integrating Twitter Into An ASP.NET Website

No comments:
Integrating Twitter Into An ASP.NET Website: "This article shows how to integrate Twitter with an ASP.NET website using the Twitterizer library, which is a free, open-source .NET library for working with the Twitter API. Specifically, this article shows how to retrieve your latest tweets and how to post a tweet using Twitterizer."

Monday, March 1, 2010

BSNL introduced First WiMax in Kerala

No comments:

Bharat Sanchar Nigam Limited (BSNL) will launch its mobile WiMax (Worldwide Interoperability for Microwave Access), a fourth-generation technology that enables high-speed wireless Internet access  in Kerala.  This is the first launch of  BSNL  WiMax  service in South India.
The  WiMax-based solution is set up and deployed like cellular systems using base stations with coverage over a radius of  several kilometers. The customer premise equipment (CPE) will connect the base station to the customer. WiMax is available in both indoor and outdoor versions.


BSNL is the first telecom operator in the country to have launched the Mobile WiMAX service.
AVIAT – formerly Harris Stratex – has provided the technology for the Mobile WiMAX (Worldwide Interoperability for Microwave Access).
BSNL is deploying the WiMAX technology in Kerala, offering a broadband internet speed of up to 37 mbps, with 900 BTS (Base Transmitting Stations) in order to cover the whole of the state, according to BSNL.
In the first phase, 450 Base Transmitting Stations will be set up to cover all the major cities, all district headquarters as well as important towns in Kerala, with the project costing about Rs 100 crore. Initially, roaming will be available within Kerala.
In the second phase, 450 more Base Transmitting Stations will be installed to cover the remaining towns of Kerala.
The WiMAX technology provides access to broadband internet service at a cost performance ratio which is much better than any other technology, BSNL said.
According to BSNL, the technology offers features such as high-speed broadband connectivity anywhere, anytime for devices such as desktop computers and laptop computers on wireless, national roaming, telemedicine, Web-based commerce, distance-learning, as well as low-cost connectivity to bank ATMs and railway reservation centres
WiMAX, according to BSNL, is considered a cheaper alternative to cable broadband access and digital subscriber lines owing to the minimal cost of installation compared to the wired version of the broadband internet service.
BSNL has 2 tariff plans for the WiMAX service – the Home Plan, with a fixed monthly charge of Rs 999, and the Business Plan, with a fixed monthly charge of Rs 1,999.
In all, 25 Base Transmitting Stations, covering Ernakulam city and the municipalities of Aluva, Kalamassery, Tripunithura and Angamaly, were commissioned on February 27, 2010.
Another 59 Base Transmitting Stations will be commissioned shortly.

Friday, February 19, 2010

File Uploader using asp.net c#

No comments:
web.config
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true"/>
<httpRuntime executionTimeout="90" maxRequestLength="200000" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>


  • Default.aspx.cs File
static string fn1;
protected void BtnUpload_Click(object sender, EventArgs e)
{
try
{
if ((FileUploader.HasFile) && (FileUploader.PostedFile.ContentLength > 0) && FileUploader.PostedFile.ContentLength <= 20000000)
{
fn1 = System.IO.Path.GetFileName(FileUploader.PostedFile.FileName);
string SaveLocation = Server.MapPath("public_files") + "\\" + fn1;FileUploader.PostedFile.SaveAs(SaveLocation);
lbMessage.Text = "Upload successess... Have a nice day...<a href='http://www.twitter.com/rodriguesjax'>Go to Twitter </a><p>Files saved to " + SaveLocation + "</p>";
}
else
{
lbMessage.Text = "please select a file less than 20MB and greater than 0MB.";
}
}
catch (Exception ex)
{
lbMessage.Text = "Sorry. Upload Failed : " + ex.Message;
}
}