紀錄做過的夢-20220913
這天沒睡好,半夜2點多才睡
在將睡要睡時,忽然有種房間有人的感覺
接著感覺到床鋪有動作,似乎有人坐到床沿上
從側睡的姿勢回頭看,看到一個短髮女性的輪廓面向我這邊,臉像是黑霧一般看不清楚
那種感覺像是家人坐在床邊看著你或是要幫你蓋被子時的感覺
不過我知道房子裡只有我一個人,於是我不管他,轉回來埋頭繼續睡...
紀錄做過的夢-20220913
這天沒睡好,半夜2點多才睡
在將睡要睡時,忽然有種房間有人的感覺
接著感覺到床鋪有動作,似乎有人坐到床沿上
從側睡的姿勢回頭看,看到一個短髮女性的輪廓面向我這邊,臉像是黑霧一般看不清楚
那種感覺像是家人坐在床邊看著你或是要幫你蓋被子時的感覺
不過我知道房子裡只有我一個人,於是我不管他,轉回來埋頭繼續睡...
淚眼朦朧 窗外明月是那樣的溫柔
彷彿是你用溫暖的雙手 哦 將我輕輕碰
四處飄泊 我用情一生卻換來寂寞
而歲月不知不覺地走過 問我留下些什麼
出現在夢中 終於明白對你的愛依舊
是折磨 還躲在傷心絕望的角落
與你再相逢 是我日夜期待已久的夢
又錯過 原來情緣早已消散風中
淚眼朦朧 窗外明月是那樣的溫柔
彷彿是你用溫暖的雙手 哦 將我輕輕碰
四處飄泊 我用情一生卻換來寂寞
而歲月不知不覺地走過 問我留下些什麼
與君一席酒 飲畢話別休
燃燭又見瘦 夢醒孤鵲樓
此情難長久 曲畢又三秋
憐影還拂袖 不忍上心頭
窗外懸一輪明月 映落在澄鏡湖面 微風切
切過那垂柳河邊 斑剝鳴咽
我聽見 我無言 還想著分手那夜
望著你消失不見 我的心痛徹撕裂
想起你哭泣的臉 又燃起無盡思念
這些年 你不在我的身邊 是否如願
我站在河堤邊 斷橋上望著秋月
遠方的飄落殘葉隨風層疊 說離別
繁華散盡 落葉飄
徒然一身幽居嘆寂寥
迎風身影燈火照 但求醉臥在今宵
不知何時才能 與你再相逢 也許是多年以後
此情忘不了 深藏在心中 但願你會記得我
如果不能與你長相守 只願我能化成飛煙隨你走
就在夢中一笑別離後 淚珠滑落臉龐 更心痛
如果不能與你長相守 只願我能化成飛煙隨你走
多年以後往事再回首 笑我一生孤獨 全成空
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:RadioButtonList ID="rbl1" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"
OnSelectedIndexChanged="rbl1_SelectedIndexChanged" AutoPostBack="true">
<asp:ListItem>Car</asp:ListItem>
<asp:ListItem>Motocycle</asp:ListItem>
<asp:ListItem>Bicycle</asp:ListItem>
</asp:RadioButtonList>
<br />
<br />
<asp:RadioButtonList ID="rbl2" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"
OnSelectedIndexChanged="rbl2_SelectedIndexChanged" AutoPostBack="true">
<asp:ListItem>Apple</asp:ListItem>
<asp:ListItem>Mango</asp:ListItem>
<asp:ListItem>Pineapple</asp:ListItem>
</asp:RadioButtonList>
<br />
<br />
<asp:RadioButtonList ID="rbl3" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"
OnSelectedIndexChanged="rbl3_SelectedIndexChanged" AutoPostBack="true">
<asp:ListItem>Frog</asp:ListItem>
<asp:ListItem>Cat</asp:ListItem>
<asp:ListItem>Dog</asp:ListItem>
</asp:RadioButtonList>
</ContentTemplate>
</asp:UpdatePanel>
</form>
然後這是 aspx.csprotected void rbl1_SelectedIndexChanged(object sender, EventArgs e)
{
RadioButtonList radioButtonList = sender as RadioButtonList;
if (radioButtonList.SelectedIndex > -1)
{
rbl2.SelectedIndex = -1;
rbl3.SelectedIndex = -1;
}
}
protected void rbl2_SelectedIndexChanged(object sender, EventArgs e)
{
RadioButtonList radioButtonList = sender as RadioButtonList;
if (radioButtonList.SelectedIndex > -1)
{
rbl1.SelectedIndex = -1;
rbl3.SelectedIndex = -1;
}
}
protected void rbl3_SelectedIndexChanged(object sender, EventArgs e)
{
RadioButtonList radioButtonList = sender as RadioButtonList;
if (radioButtonList.SelectedIndex > -1)
{
rbl2.SelectedIndex = -1;
rbl1.SelectedIndex = -1;
}
}
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="TestRadioButtonListExclusive.WebForm1" %>
<!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 runat="server">
<title>用 jquery</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript">
//註冊所有 radio 的 click 事件
$(document).ready(function(){
var containers=["<%=rbl1.ClientID %>","<%=rbl2.ClientID %>","<%=rbl3.ClientID %>"];
for(var i=0;i<containers.length;i++){
$("#"+containers[i]+" :radio").each(function(){
$(this).click(function(event){
SetOtherRadioButtonListUncheck(this);
});
});
}
});
function SetOtherRadioButtonListUncheck(rObj){
var containers=["<%=rbl1.ClientID %>","<%=rbl2.ClientID %>","<%=rbl3.ClientID %>"];
//抓上層容器, RepeatLayout=Flow的話抓最近的span, RepeatLayout=Flow的話抓最近的table
//var parentObj=$(rObj).closest("span"); //RepeatLayout=Flow
var parentObj=$(rObj).closest("table"); //RepeatLayout=Table
var parentId=parentObj.get(0).id;
for(var i=0;i<containers.length;i++){
//若不是觸發事件的容器, 則將該容器裡的radio uncheck
if(containers[i]!=parentId){
$("#"+containers[i]).find(":radio").each(function(){
this.checked=false;
});
}
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:RadioButtonList ID="rbl1" runat="server" RepeatDirection="Horizontal" RepeatLayout="Table">
<asp:ListItem>Car</asp:ListItem>
<asp:ListItem>Motocycle</asp:ListItem>
<asp:ListItem>Bicycle</asp:ListItem>
</asp:RadioButtonList>
<br />
<br />
<asp:RadioButtonList ID="rbl2" runat="server" RepeatDirection="Horizontal" RepeatLayout="Table">
<asp:ListItem>Apple</asp:ListItem>
<asp:ListItem>Mango</asp:ListItem>
<asp:ListItem>Pineapple</asp:ListItem>
</asp:RadioButtonList>
<br />
<br />
<asp:RadioButtonList ID="rbl3" runat="server" RepeatDirection="Horizontal" RepeatLayout="Table">
<asp:ListItem>Frog</asp:ListItem>
<asp:ListItem>Cat</asp:ListItem>
<asp:ListItem>Dog</asp:ListItem>
</asp:RadioButtonList>
</form>
</body>
</html>
var v = from product in dtNorthwindProduct.AsEnumerable()
where product.Field<int>("SupplierID") == 1
select new
{
pid = product.Field<int>("ProductID"),
//以匿名方法重新計算價格
price = () =>{ return product.Field<decimal>("UnitPrice") * 1.1M }
};.NET很乾脆地給我錯誤...var v = from product in dtNorthwindProduct.AsEnumerable()
where product.Field<int>("SupplierID") == 1
select new
{
pid = product.Field<int>("ProductID"),
//以匿名方法重新計算價格
price = new Func<decimal>(() => { return product.Field<decimal>("UnitPrice") * 1.1M; }).Invoke()
};就可以了...