Browsing articles in "ASP.Net"

Improved Alexa Ranking by 1 million positions in 12 hours | Project Nine

Fatal Error: get('adsPerSlot') in Admin Options don't exist (not an array)!

Yesterday early in the morning, at about 2 o’clock I was still up, and spared a few minutes to try out some optimisations on my own site, www.nine.com.mt. In the afternoon I had a great surprise, the optimisations I did improved my Alexa ranking position by much over 1 million positions. I know I’m still far far below but using some simple optimisations, your website can also start ranking higher.

Click here to find out the simple optimisations I did on Project Nine’s website to get this result with your own site…

For Loop with Negative Step | Quickie

Fatal Error: get('adsPerSlot') in Admin Options don't exist (not an array)!

Cannot believe that I’m writing some helpful examples using VB.Net, but that is the language that we’re using at work, so have to adapt now. Next find how to make a loop with a negative step (decreasing step):

Imports System

Public Class MainClass
 Shared Sub Main()
 For intCount As Integer = 10 To 1 Step -1
 'Add the item to the list
 System.Console.WriteLine(intCount)
 Next
 End Sub
End Class

Add AutoNumber to GridView showing the RowNumber | Quickie

Fatal Error: get('adsPerSlot') in Admin Options don't exist (not an array)!
The code below will add a column showing an incremental number near each row, which ultimately is the row number
<asp:TemplateField>
  <ItemTemplate>
    <%# Container.DataItemIndex + 1 %>
  </ItemTemplate>
</asp:TemplateField>
Hope this helped ;)

Solution | Unable to write output file ‘…pdb’; unspecified error

Fatal Error: get('adsPerSlot') in Admin Options don't exist (not an array)!

Visual Studio 2005 / 2008

During this weekend, I started having a problem when building a solution in Visual Studio. It would load the following error:

Unable to write to output file Solution_Name.pdb

This Visual Studio solution has 8 projects, and a lot of files and folders. I tried several solutions that I found on the net, which worked for others, but none worked for my case including:

  • Delete the .pdb file from the solution – Didn’t Work
  • Delete the Debug folder – Still Didn’t work
  • Delete the whole obj Folder – Nothing Continue reading »

Get data from an SQLDataSource to a DataTable and Bind Grid

Fatal Error: get('adsPerSlot') in Admin Options don't exist (not an array)!

This week, I needed to bind a gridview to and SQLDataSource. The only problem is that I need to include extra rows. How to do this? First I removed the binding code to bind the grid directly from HTML (in gridview remove the DataSourceID attribute).

Then I wanted to get the data from the SQL Data source and convert to a data table to insert and update the table as needed. Next is the code to get the data… Continue reading »

ASP.Net 4.0 Validate Request

Fatal Error: get('adsPerSlot') in Admin Options don't exist (not an array)!

When creating a CMS sometimes you need to allow certain tags pass through the ASP.Net Validation. To allow tags be posted, in v2.0, you had to include the following tag in the page directive:

ValidateRequest="false"

But in .Net 4.0, this is not enough. You also need to include the next tag (httpRuntime) in the web.config file under <system.web>:

<system.web>
<compilation debug="true" targetFramework="4.0" />
<httpRuntime requestValidationMode="2.0" />
</system.web>

There is also other information on Error validation in .Net 4.0 here

Resources: here

ASP.Net | Read Values from Javascript

Fatal Error: get('adsPerSlot') in Admin Options don't exist (not an array)!

Today I started checking out some videos about Windows CardSpace and ASP.Net for logging in and I saw how he used javascript to get client side input and use it in ASP.Net in the C# code.

First you need to create a HiddenField on your webForm and name it TokenField (any name would actually do)

<asp:HiddenField ID=”TokenField” runat=”server” />

To set the Hidden Field value in JavaScript use the following code: Continue reading »

Create your favicon.ico easily

Fatal Error: get('adsPerSlot') in Admin Options don't exist (not an array)!

Project NINE | Logo | FavIcon.ico

To easily create a favicon.ico to be used on a website, you can use the following website. Here you can either enter the URL of the image or upload the png logo you want to use; then a download link is created where you can download the ico:

http://www.convertico.com/

Some tips for you favicon image. Continue reading »

URLRewriter Submit Button Error | Intelligencia

Fatal Error: get('adsPerSlot') in Admin Options don't exist (not an array)!

Today I was using Intelligencia URLRewriter to use Search Engine Friendly URL’s to improve my site’s SEO.

The Problem?

All was working fine until I inserted a button in the page. When I clicked the button, the URL address showed the original URL and stopped working… the button didn’t even do the postback.

The Solution… Continue reading »

Project NINE | Launching 29th November

Fatal Error: get('adsPerSlot') in Admin Options don't exist (not an array)!

Project NINE Web Design

Finally the day has come, for Malta to experience a new concept in web development on www.nine.com.mt. Today we just made our first advert on the timesofmalta.com as till now is going very good.

Clients will have many features for a small price. Stay tuned as we’re going to reveal more before Monday!

Why the word Project?

We chose the word project instead of concept or design for the simple fact that this website will be always evolving. There are so many things that we have ready for it. And we are the type of persons that listen.

Why Nine?

We chose the number Nine as it is a magic number. It’s amazing what  Try this…

- Multiply any number by nine (be it 10, or 15, or thousands or millions).

- Then repeatedly add the digits of the resulting number until it is just one digit

- You’ll end up with NINE

Next are some examples:

2 × 9 = 18 (1 + 8 = 9)

9 × 9 = 81 (8 + 1 = 9)

234 × 9 = 2106 (2 + 1 + 0 + 6 = 9)

578329 × 9 = 5204961 (5 + 2 + 0 + 4 + 9 + 6 + 1 = 27 (2 + 7 = 9)) Continue reading »

Pages:1234»