Geeks With Blogs
Ben Adler's Development Posting solutions as I find them
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; ......

I was working locally and trying to restore a database backup from the server for development purposes. I was receiving this error when I tried to restore and overwrite an existing database: The tail of the log for the database "%ls" has not been backed up. Use BACKUP LOG WITH NORECOVERY to back up the log if it contains work that you do not want to ......

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