All Things DotNet - Page 8 of 32 - All Things DotNet Discussed - Winforms/ASP.Net/SharePoint/WPFAll Things DotNet
  • Subscribe to this RSS feed
  • Receive updates as soon as they are posted.

I looked for a long time to try to find a way to hide the toolbar in an RDL file which I was surfacing in a pageviewer URL. Over and over, I found references to adding this parameter to the URL:

&rc:Toolbar=false

However, that did not work for me. But finally I found the answer.
Read the rest of this entry »

I have a Content Query Web Part that was giving me fits. My situation presented itself as a permissions problem (or though it seemed). Certain people (with higher/better permissions) could see the content. Some people saw the error message.

I tried several things, including make sure the Publishing feature was enabled and deactivating it, and reactivating, just in case it was corrupted.
Read the rest of this entry »

July 27 , 2013 | | In: ASP.Net, ASP.Net Tips, C#

IIF Equivalent in C#

For those of us who came from a VB background, we know how great the immediate if is (iif).

To do this in C#, it’s not so straightforward it seems, at least at first, but it’s just as easy and useful. Here’s how it’s the framework is done in C#:

yourBool ? "true" : "false";

That’s all there is to it!

This is a list of things that need to happen/occur to get Ratings working in you SharePoint 2010 list. It is actually a compilation of items I’ve found on the internet which tell you how to do this, but usually, if it’s not working, you need at least most of the items below.
Read the rest of this entry »

In SharePoint 2010, I had a situation in which I needed to immediately redirect users to another page if landing on the first page. I knew about Meta Refresh in HTML and I knew about response.redirect in basic ASP.Net, so I was wondering how I could accomplish this.
Read the rest of this entry »

It’s so easy to enable wildcard searching in 2010 it’s really strange why it wasn’t done by default.
Read the rest of this entry »

June 5 , 2013 | | In: MVC, MVC3

TextBoxFor – Default to Current Date (Razor)

Let’s say you have a TextBoxFor in your page to display a date (based on DateTime in the model):

@Html.TextBoxFor(model => model.dateFrom)

But, since it just displays something like “1/1/0001 12:00:00 AM“, you probably don’t like that.
Read the rest of this entry »

June 5 , 2013 | | In: MVC3

EditorFor vs. TextBoxFor Part 1

You’ve probably wondered, along the way using MVC, what the advantages or differences are between the Editorfor HTML Helper and the TextBoxFor HTML Helper.
Read the rest of this entry »

May 1 , 2013 | | In: ASP.Net, JQuery, MVC3

JQuery – Characters Left – TextArea

As a web designer, somewhere along the way, you have come to a site with a TextArea, and even though it notes the maximum number of characters for the textbox you’re about to type in, you never really know how many characters are left as you type, because there’s nothing visual showing you. I’ve used something like this in WebForms, so I assume it will also work for MVC, as well as pure HTML.
Read the rest of this entry »

In SharePoint, if you have an Excel Worksheet in a Library, you can set it up so that it opens in the browser. When you do this, there is a link you can click which says “Open in Excel”.

Sometimes, you might get this error when clicking that button:
“To open this workbook, your computer must have a version of Microsoft Excel installed and your Web browser must support opening files directly from Excel in the browser”
Read the rest of this entry »


 



All Things DotNet Discussed – Winforms/ASP.Net/SharePoint/WPF


If you find this site helpful,
please donate to help keep it online and free





Code 'n' Sprox   DreamTemplate - Web Templates

Follow us on Twitter

Follow AllThingsDotNet on Twitter


Test - The Name: 6936