锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲av无码不卡一区二区三区,亚洲神级电影国语版,亚洲AV无码久久精品狠狠爱浪潮http://www.tkk7.com/programmer/category/27875.htmlzh-cnFri, 07 Dec 2007 06:19:37 GMTFri, 07 Dec 2007 06:19:37 GMT60Add javascript to the clienthttp://www.tkk7.com/programmer/archive/2007/08/30/165566.htmlwadewadeThu, 30 Aug 2007 10:34:00 GMThttp://www.tkk7.com/programmer/archive/2007/08/30/165566.htmlhttp://www.tkk7.com/programmer/comments/165566.htmlhttp://www.tkk7.com/programmer/archive/2007/08/30/165566.html#Feedback0http://www.tkk7.com/programmer/comments/commentRss/165566.htmlhttp://www.tkk7.com/programmer/services/trackbacks/165566.html 

Show how to add script to the client in aspx file.

/// <param name="rbl">RadioButtonList to apply script to</param>
/// <param name="page">The Page the script is going to be appended to</param>
/// <param name="script">The script to append</param>
public static void SetRadioButtonListItemScript(RadioButtonList rbl, Page page, string script)
{
for (int idx = 0; idx < rbl.Items.Count; idx++)
{
RegisterClientObjectFunction(page, rbl, idx, script);
}
}

/// <param name="page">The Page the script is going to be appended to</param> /// <param name="rbl">RadioButtonList to apply script to</param> /// <param name="idx">the index of the radio button</param> /// <param name="script">The script to append</param> static private void RegisterClientObjectFunction(Page page, RadioButtonList rbl, int idx, string script)
{
StringBuilder sw = new StringBuilder();
if (!page.IsStartupScriptRegistered(rbl.ClientID + "_" + idx.ToString() + "script"))
{
sw.Append(@"<SCRIPT>");
sw.Append(@"document.getElementById('" + rbl.ClientID + "_" + idx.ToString() + "').onclick=function() {" + script + "return true;}");
sw.Append(@"</SCRIPT>");
page.RegisterStartupScript(rbl.ClientID + "_" + idx.ToString() + "script", sw.ToString());
}
}

static private void RegisterClientObjectFunction(Page page, CheckBox chk, string script)
{
StringBuilder sw = new StringBuilder();
if (!page.IsStartupScriptRegistered(chk + "script"))
{
sw.Append(@"<SCRIPT>");
sw.Append(@"document.getElementById('"+chk.ClientID + "').onclick=function() {" + script + "return true;}");
sw.Append(@"</SCRIPT>");
page.RegisterStartupScript(chk.ClientID + "script", sw.ToString());
}
}

 


wade 2007-08-30 18:34 鍙戣〃璇勮
]]>
Refresh related controls' value when data changed using DataBind in Winformhttp://www.tkk7.com/programmer/archive/2007/08/29/165569.htmlwadewadeWed, 29 Aug 2007 02:31:00 GMThttp://www.tkk7.com/programmer/archive/2007/08/29/165569.htmlhttp://www.tkk7.com/programmer/comments/165569.htmlhttp://www.tkk7.com/programmer/archive/2007/08/29/165569.html#Feedback0http://www.tkk7.com/programmer/comments/commentRss/165569.htmlhttp://www.tkk7.com/programmer/services/trackbacks/165569.htmlGoal:

Use a ComboBox to select an item, and save the selected item's value to some textboxes. each control is using databinding.

Problems:

1. set control's value when comboBox changed, after the comboBox lost focus, the text was lost since the controls reload the data from binding source.

2. set binding source's value, the text will be set only when the comboBox lost focus. but we want to set the text immediately when the comboBox changed.

Solution:

set binding source's value, and call comboBox's writeValue for comboBox. this will write the comboBox's value to datasource, and reload all controls' value.

Test selectedTest = (Test)comboBox1.SelectedItem;

Test test = (Test)bindingSource1.DataSource;
if (selectedTest == null || test == null)
return;

//save the selected value to the binding source test.Name = selectedTest.Name; test.Value = selectedTest.Value; //this will write the comboBox's value to datasource, and reload all controls' value comboBox1.DataBindings["SelectedValue"].WriteValue();

 


wade 2007-08-29 10:31 鍙戣〃璇勮
]]>
Use AbstractTransactionalSpringContextTests to rollback NUnit test case automaticallyhttp://www.tkk7.com/programmer/archive/2007/08/20/165575.htmlwadewadeMon, 20 Aug 2007 08:12:00 GMThttp://www.tkk7.com/programmer/archive/2007/08/20/165575.htmlhttp://www.tkk7.com/programmer/comments/165575.htmlhttp://www.tkk7.com/programmer/archive/2007/08/20/165575.html#Feedback0http://www.tkk7.com/programmer/comments/commentRss/165575.htmlhttp://www.tkk7.com/programmer/services/trackbacks/165575.html闃呰鍏ㄦ枃

Wade 2007-08-20 16:12 鍙戣〃璇勮


wade 2007-08-20 16:12 鍙戣〃璇勮
]]>
Parse and format date in c#http://www.tkk7.com/programmer/archive/2007/08/17/165576.htmlwadewadeFri, 17 Aug 2007 07:18:00 GMThttp://www.tkk7.com/programmer/archive/2007/08/17/165576.htmlhttp://www.tkk7.com/programmer/comments/165576.htmlhttp://www.tkk7.com/programmer/archive/2007/08/17/165576.html#Feedback0http://www.tkk7.com/programmer/comments/commentRss/165576.htmlhttp://www.tkk7.com/programmer/services/trackbacks/165576.html闃呰鍏ㄦ枃

Wade 2007-08-17 15:18 鍙戣〃璇勮


wade 2007-08-17 15:18 鍙戣〃璇勮
]]>
Could not load file or assembly 'ADODB, Version=7.0.3300.0http://www.tkk7.com/programmer/archive/2007/08/16/165577.htmlwadewadeThu, 16 Aug 2007 08:59:00 GMThttp://www.tkk7.com/programmer/archive/2007/08/16/165577.htmlhttp://www.tkk7.com/programmer/comments/165577.htmlhttp://www.tkk7.com/programmer/archive/2007/08/16/165577.html#Feedback0http://www.tkk7.com/programmer/comments/commentRss/165577.htmlhttp://www.tkk7.com/programmer/services/trackbacks/165577.html闃呰鍏ㄦ枃

Wade 2007-08-16 16:59 鍙戣〃璇勮


wade 2007-08-16 16:59 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 人体大胆做受免费视频| 亚洲激情视频网站| 国产综合精品久久亚洲| 亚洲熟女一区二区三区| 亚洲AV成人无码天堂| 自拍偷自拍亚洲精品偷一| a国产成人免费视频| 在线观看成人免费视频不卡| 国产免费AV片无码永久免费| 久久国产精品亚洲综合 | 亚洲天堂视频在线观看| 亚洲男人的天堂久久精品| 3344在线看片免费| 无码乱人伦一区二区亚洲| 19禁啪啪无遮挡免费网站| 久久亚洲AV永久无码精品| 亚洲精品国产suv一区88| 久久久久久影院久久久久免费精品国产小说| 拍拍拍又黄又爽无挡视频免费| 国产AV无码专区亚洲AV毛网站| 亚洲AV无码AV日韩AV网站| 免费观看美女用震蛋喷水的视频| 伊人久久大香线蕉亚洲五月天| 中文字幕久精品免费视频| 亚洲网站在线观看| 成人免费无码大片a毛片软件| 相泽南亚洲一区二区在线播放| 亚洲乱码中文字幕综合234| 亚洲狠狠色丁香婷婷综合| 亚洲国产精品尤物yw在线| 亚洲国产午夜精品理论片在线播放 | 国产成人亚洲精品影院| 美女尿口扒开图片免费| 妞干网免费观看视频| 亚洲一级视频在线观看| 国产免费私拍一区二区三区| 免费网站看av片| 亚洲免费视频在线观看| 午夜视频免费成人| 久久久精品免费国产四虎| 国产亚洲精品成人AA片|