Geeks With Blogs
Ben Adler's Development Posting solutions as I find them
If you are using jsorter with compatibility mode enabled, you may receive a "member not found" error. I'm not entirely sure what causes this error, but it seems with some poking around online, I was able to fix this by changing the jquery.min.js code. For reference, I am using jquery version 1.11.3.There's a piece of code: Normal 0 false false false ......

I had a form view where I was binding two different objects to. These two objects were slightly different, and I didn't want to create a separate form view for both objects.Here is what I did: Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 <%# Container.DataItem.GetType(... != null ? DataBinder.Eval(Container.D... ......

Here is a handy method that accepts an XElement and an object. It loops through each attribute in the XML element and sets the matching property on the object: public static object SetProperties(object obj, XElement xelement) { foreach (var attribute in xelement.Attributes()) //loop through attributes of element { PropertyInfo propertyInfo = obj.GetType().GetProperty(a... ......

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 Often times sites will have horizontal menus created with tables. You can easily sort the cells by the containing links using jquery: Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; ......

One of my clients had users downloading a word document to edit and print out. Some of these fields in the Word Document can be pre-populated with data.There is a dll called DocX available here: http://docx.codeplex.com/Keep in mind, this only works with .docx, not .doc file formatesSample code:private void GetDocument() { //Get parameters string FirstName ......

MSChart disappears on postback. The easiest fix is to simply enable viewstate, which is turned off by default: Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; ......

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; ......

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; ......

I was working with the built in ajaxtooljit HTMLEditor and for some odd reason, the color picker was showing off the screen. I noticed that the "TextEditorDivContainer" class of the control had position absolute. To solve this problem, I had to wrap the editor in a div with a class named "EditorWrapper" and change the position of the "TextEditorDivContainer" ......

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; ......

Copyright © BenAdler | Powered by: GeeksWithBlogs.net | Join free