Posts

asp.net - dynamic columns disappears after postback -

i have gridview boundfields , 2 templatefields . in these 2 templatefields , dynamically create usercontrols containing dropdownlist , textbox , users can modify. when try values of controls after postback , values in boundfields still there dynamic controls disappears. can create them again won't user's values... how can these values before they're lost? here's of code: in rowdatabound event: select case type case "booleanbis" e.row.cells(2).controls.clear() dim list1 booleanbislist = new booleanbislist(avant, false) e.row.cells(2).controls.add(list1) e.row.cells(4).controls.clear() dim list2 booleanbislist = new booleanbislist(apres, true) e.row.cells(4).controls.add(list2) case "boolean" e.row.cells(2).controls.clear() dim list3 booleanlist = new booleanlist(avant, false) e.row.cells(2).controls.add(list3) e.row.cells(4).controls.clear() ...

Python - Xlwt more than 256 columns -

i importing text files excel using xlwt module. allows 256 columns stored. there ways solve problem? xlwt supports creation of xls files of kind created excel 97-2003 , read excel 97 onwards. file format limited 256 columns , 65536 rows. no amount of changing 256 other number in xlwt source code change that. you have 3 options, in increasing order of complexity: (1) suggested another, write csv file. (2) openpyxl ... excel 2007+ xlsx/xlsm format (3) win32 com (windows only)

Calling a Javascript/JQuery function on postback for ASP.NET/C# page -

i working jquery plugin called 'tab slide out' link here: http://wpaoli.building58.com/2009/09/jquery-tab-slide-out-plugin/ i trying use feedback technique. on slide out there form, , submit button. when hit submit, of course causes postback, , page loads, feedback window set closed state. want window automatically open on postback. here example of website uses plugin , has working how want work: http://thedemo.ca/ now noticed in there script have on initial page load: jquery('.slide-out-div').tabslideout({ tabhandle: '.handle', pathtotabimage: 'typo3conf/ext/stw_jquery_feedback/images/feedback-btn-right.png', imagewidth: '32px', imageheight: '167px', tablocation: 'right', speed: 300, action: 'click', toppos: '200px', fixedposition: true, onloadslideout: false }); and on postback submit button: jquery('.slide-out-div').tabslideout({ tabhandle: '.handle', pa...

image - WPF Error: Cannot find governing FrameworkElement for target element -

i've got datagrid row has image. image bound trigger state. when state changes want change image. the template set on headerstyle of datagridtemplatecolumn. template has bindings. first binding day shows day , state changes image trigger. these properties set in viewmodel. properties: public class headeritem { public string day { get; set; } public validationstatus state { get; set; } } this.headeritems = new observablecollection<headeritem>(); (int = 1; < 15; i++) { this.headeritems.add(new headeritem() { day = i.tostring(), state = validationstatus.nieuw, }); } datagrid: <datagrid x:name="personeelsprestatiesdatagrid" horizontalalignment="stretch" verticalalignment="stretch" autogeneratecolumns="false" selectionmode="single" itemssource="{binding caregiverperformances}" frozencolu...

flex - Why does Flexmojos produce a different size swf to mxmlc? -

i compiling simple app, main.mxml: <?xml version="1.0" encoding="utf-8"?> <s:application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"> <s:label text="flex"/> </s:application> with mxmlc (sdk 4.0.0.14159): mxmlc -context-root=a -services=.\src\main\webapp\web-inf\flex\services-config.xml src\main\flex\main.mxml -output src\main\webapp\main.swf and flexmojos 3.9 & 4.0-rc2, using sdk 4.0.0.14159: <configuration> <output>src/main/webapp/main.swf</output> <services>src/main/webapp/web-inf/flex/services-config.xml</services> <contextroot>a</contextroot> </configuration> the output both builds creates valid swf file works expected, yet swf file mxmlc smaller flexmojos version: mxmlc main.swf 43k flexmojos main.swf 367k this quite worrying because developing in ec...

html - How to make another tag behave exactly like the pre tag using CSS? -

i want <code> tags behave <pre> tags. problem line break @ beginning of block. how rid of line break? this shows mean ... http://jsfiddle.net/6nmpn/ this appears browser bug. see e.g. this page . sgml (and html) says browser needs remove newline following opening tag, or preceding closing tag. appears browsers (note: not all) adhere requirement on <pre> tag , not on other tags such <code> tag. so, appears there's not can it. possible fix can think of using xhtml strict. that's xml, not sgml. perhaps browsers treat elements equally then. i'm not sure, it's idea.

Why do browsers use so much memory? -

firefox 18 tabs open = 1.34gb of memory (~75mb/tab). got reply on twitter local developer mentioning chrome instance using ~82mb/tab. what causes web browsers consume memory? to make more crash-resistant, chrome spawn many copies of full-fledged processes instead of using multi-threading. eats more memory (less things can shared). chrome puts plugins in separate processes (so crash of flash won't bring down whole browser)... other memory consumed... , on.