Content feed Comments Feed

The Official ASATO Site

Hi, welcome to my blog. ASP,asp.net,Health,Javascript,JQUERY

Archive for March, 2009

Secret of age in the eyes

Posted by admin On March - 30 - 2009

flowers 

Want to look younger or less tired? Focus on the area around your eyes, a new study suggests, because that’s where people get visual clues about your age and level of fatigue.

When asked to estimate the age of people in photographs, participants in a study looked at the eye region almost half the time, researchers found. The number was about the same when the participants tried to figure out how tired people in the photographs were.

The findings might seem obvious, but the study’s lead author, a plastic surgeon, said they’re important because cosmetic-surgery patients don’t always get treatment where they need it.

Wrong treatment
“They want to look younger and less tired, but if you look to see what they’re being offered, it’s often not things around the eyes,” said Dr Peter A. D. Rubin, a US plastic surgeon and an associate professor of ophthalmology at the University of Tennessee Health Science Centre.

Rubin and his colleagues launched the study to figure out how people gauge age and fatigue. “What better way than to see where people are actually looking when they’re making these judgments?” he said.

The researchers recruited 47 college students – 15 men, 32 women – and told them to look at photographs of 48 older people on a computer monitor. The monitor analysed reflections from the eye to determine where the study participants were looking. The participants then rated either the age or the fatigue level of the people in the photos.

When gauging the age of people, the students looked at the eye region 46% of the time, followed by the nose (19%), forehead (13%) and the area between the eyebrows (11%).

The numbers were similar when the students were trying to figure out how tired the people in the photos appeared.

The study findings were published in the journal Ophthalmology.

Why eyes reveal so much?
The eye region makes up just 21% of the face, according to the study authors. So why does it seem to reveal so much?

“There is a lot going on around the eyes,” Rubin said. For one thing, eyelids are the thinnest skin on the body, making swelling more prominent. Also, he said, the eye region undergoes many changes during ageing and suffers from significant sun damage.

“Beauty is not only in the eye of the beholder,” Rubin said. “It’s also in the eye of the beholdee.”

Timothy J. Slattery, a postdoctoral fellow in psychology at the University of California, US, said the study findings reflect those of other research that has found that people fixate on the eyes when they look at photos of faces. – (Randy Dotinga/HealthDay News, February 2009)

How to Bind DataTable to a Repeater control!?

Posted by admin On March - 30 - 2009

    /// exec sql get DataTable
    /// </summary>
    /// <param name=”SqlStr”>SQl: for example: “SELECT * FROM customers” </param>
    /// <returns>DataTable</returns>
    public static DataTable OleDBDataDataTable(string SqlStr)
    {
        string connectionString=New OleDbConnection(“Provider=Microsoft.Jet.OLEDB.4.0;data source=” & server.mappath(“/db/northwind.mdb”))
        SqlConnection CN = new SqlConnection(connectionString);
        DataSet ds = new DataSet();
        try
        {

 


            CN.Open();
            SqlDataAdapter da = new SqlDataAdapter(SqlStr, connectionString);
            da.Fill(ds);
            CN.Close();
            return ds.Tables[0];
        }
        catch (Exception ex)
        { return ds.Tables[0]; }
    }

.CS:
customers.DataSource=OleDBDataDataTable(“SELECT * FROM customers”)
customers.DataBind()

.aspx:

<html>
<body>

<form runat=”server”>
<asp:Repeater id=”customers” runat=”server”>

<HeaderTemplate>
<table border=”1″ width=”100%”>
<tr bgcolor=”#b0c4de”>
<th>Companyname</th>
<th>Contactname</th>
<th>Address</th>
<th>City</th>
</tr>
</HeaderTemplate>

<ItemTemplate>
<tr bgcolor=”#f0f0f0″>
<td><%#Container.DataItem(“companyname”)%> </td>
<td><%#Container.DataItem(“contactname”)%> </td>
<td><%#Container.DataItem(“address”)%> </td>
<td><%#Container.DataItem(“city”)%> </td>
</tr>
</ItemTemplate>

<FooterTemplate>
</table>
</FooterTemplate>

</asp:Repeater>
</form>

</body>
</html>

 

 

Uisng Jquery select DataGrid CheckBox Multiple Rows Column

Posted by admin On March - 30 - 2009

Multiple Rows selection in a web is a requirement. and in asp.net web you can using checkbox(runnet-server) control,A checkbox column must of course be accompanied with a CheckAll / UnCheckAll functionality.

we can ussing Jquery select CheckBox Multiple Rows Column.
here is the code:

<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script><script type="text/javascript">
<!--
    $(function(){
      $("#chk").click(function(){

                if($(this).attr(“checked”)==true){
                    $(“input[name='chk_list']“).each(function(){
                        $(this).attr(“checked”,true);
                    });
                }
                else{
                   $(“input[name='chk_list']“).each(function(){
                        $(this).attr(“checked”,false);
                    });
                }
            });
        });
     });
// –></script>


<asp:TemplateColumn>
          <HeaderTemplate>
                    <input type=checkbox id="chk" />check all
                </HeaderTemplate>
       <HeaderStyle Width="10%" CssClass="zi1B" BackColor="#EFEFEF" Height="22"></HeaderStyle>
       <ItemTemplate>
        <asp:CheckBox  id="chk_list" name="chk_list" Runat="server"  value='<%# DataBinder.Eval(Container.DataItem, "SchemeID") %>'></asp:CheckBox>
       </ItemTemplate>
       <ItemStyle HorizontalAlign="Center" />
      </asp:TemplateColumn>

you must pay attention the red color words.

Find a good website:Over 60 Free Controls from DevExpress

Posted by admin On March - 30 - 2009

it is a good website.

here:http://devexpress.com/Products/Free/WebRegistration60/

The New York Times on Gossip Girl

Posted by admin On March - 28 - 2009

The New York Times on Gossip Girl

For adults, romances are variable, and friendship is the constant.

Privileged Youth reverses the equation: Love affairs are constant, and it’s the friendships that vary. And matter most.

That is the essence of Gossip Girl, the semi-satirical portrait of power and privilege in the private schools and penthouses of New York’s ultra rich, the New York Times says in a think piece.

It’s often said that Hollywood is “high school with money.” On this glossy, glamour-soaked CW series, high school is better than Hollywood.

Gossip Girl, which had its Season 1 finale this past Monday, explores the un-navigability of friendships. Female bonding is punctuated by the joy and disappointments of dating, but the ruling passion is power.

The pride that comes with connecting with one’s ilk and asserting control, as well as the scorching pain of rejection and ridicule.

Sex is easy; it’s the cliques that take time and solicitude.

“You can tell us anything,” Blair Waldorf coos to a distraught Serena van der Woodsen, hung over and harboring a shameful secret.

“We’ve seen you with vomit in your hair, making out with investment bankers in the men’s room at P. J. Clarke’s.”

In a culture obsessed with youth, money and appearance, 16 is the new 30, and teenage girls’ discontent about boys and clothes and one another has resonance even for older audiences.

Parents fret that youngsters grow up too fast; children complain that grown-ups refuse to grow old.

Gossip Girl goes further than most shows in depicting the excesses of the rich and underage (in this fantasy teenagers are never carded), but most of all it represents the next evolutionary stage of girl power TV after Sex and the City.

That pioneering HBO series, and the movie version that comes out later this month, celebrates girlish women who joined forces — “Us against the world” — in the pursuit of success and happiness.

Gossip Girl focuses on worldly little girls who join forces against one another. The series, along with such like-minded shows as the MTV semi-reality show The Hills and a cautionary senior edition, The Real Housewives of New York City are focused on friends, and most of all on frenemies.

They are so post-femininist that they circle back not just to Mean Girls, but to the pre-Friedan era of Clare Boothe Luce and Rona Jaffe.

It’s not actually a step backward of course; it’s more of a mischievous sidestep, a zig after many years of networks’ zagging to catch up with Sex and the City.

That series’ selling point was not just sex and clothes. It offered the charisma of four stylish, sexy women taking on Manhattan like D’Artagnan and the Three Musketeers.

None of the imitations, including Cashmere Mafia, a flop on ABC, and NBC’s slightly more successful version, Lipstick Jungle adequately captured the tone of the original.

Israeli Bond Girl: It’s Like the Real Thing

Posted by admin On March - 28 - 2009

Israeli Bond Girl: It’s Like the Real Thing
Hunt for Israeli Bond girl is on

Producers of the next Bond movie are coming to Israel to search for a dark-skinned beauty

Amir Kaminer, Yoav Birenberg

The producers of the next Bond film are now looking for the next Bond girl to star in the 22nd film in the series. This time around, their search has also brought them to Israel.

The lucky girl will star alongside Daniel Craig, the current 007.

Unfortunately, the character of the new girl in the script will not be Israeli but Spanish, yet according to the producers a dark-skinned Israeli girl could also fit the role.

The hunt for the right girl is spanning the entire Mediterranean basin, and producers of the series are now asking Israeli casting agents to send photographs and resumes of Israeli beauties with good acting skills. Another requirement is perfect command of the English language.

The veteran casting director Bruria Elback will be in charge of Israeli casting, which is set to commence shortly. “Auditions for the James Bond movie are being held in many countries and to my delight, we too are now part of it,” Elbeck said.

According to Elback the “candidates for the part have to be of international standard, stunning and dark- skinned. They are definitely not looking for blonds here, but for a Latin look.”

The film which still lacks a final name will primarily be shot on location in Italy, and will be directed by Mark Forrester. Paul Haggis who wrote the script for “Casino Royale”, which enjoyed the highest box office sales, is also among the film makers.

The producers of the 22nd Bond film will soon be arriving in Israel. Since Ursula Andress emerged from the water in a white bikini and a hunting knife in “Dr. No” (1964), the first film in the series, the Bond girls have a place of honor in the Bond ritual. Another well-known Bond girl is Halle Berry.

Israeli actresses Ayelet Zorer, Sarai Givati and other Israeli stars should get prepared.

Posted by admin On March - 27 - 2009
Twilight

Twilight

 Stephenie Meyer’s vampires are not your parents’ vampires. They walk around in daylight. They sparkle like diamonds in the sunlight. And they love baseball. Meyer’s young love vampire series of novels became a veritable pop phenomenon among teen girls (and their mothers), and the very faithful screen adaptation was an unqualified hit with the fans. Kristen Stewart is the human damsel Bella Swan, who is uncommonly, instinctively, irrationally attracted to the brooding Edward Cullen (Robert Pattinson), a pale, aloof high school dreamboat in a reclusive vampire family that has vowed to live in harmony with humans. Director Catherine Hardwicke celebrates the swoony emotional intensity of romantic delirium – this is one heroine who is literally swept off her feet – and delivers the goods when the feral vampire hunters (led by Cam Gigandet) target Bella to rouse the Cullens into battle.

Features an amiable but lazy commentary by Hardwicke, Pattinson and Stewart, who have a tendency to go on about little stories from the set and behind-the-scenes vignettes, as if struggling for something to say. Also features five extended scenes and five deleted scenes (with introductions by the director), and the 54-minute documentary “The Adventure Begins: The Journey From Page to Screen,” which isn’t all that well organized but does feature a lot of behind-the-scenes footage and numerous interview clips with Meyer (in addition to the cast and crew). Also includes three music videos and a short featurette from the cast’s appearance at Comic-Con, notable mostly for the nonstop screaming by the fans.