LearnVisualStudio.Net Forum

Category : Asp.Net, Website Development

Just registered as a member and for a lifetime subscriber I get to ask and hopefully will get answered.

Just like anything else, when starting out new stuff, I need to have an overview about this whole forum structures and how it works. Then only I can maximize from it. Most of the time, the things that we want to ask, has already been asked by someone else. That’s always the case for me in life.

So I need to be patient, take it slowly and try to digest as fast as I could.

Now let’s get started!! let’s go through and see which forum category that fits with my current project.

Video Questions
Ask video related questions here.Please make sure to include the video file name so we know which video you are talking about.


VB.NET 2.0 / 3.5
If you have any questions about ASP.NET using VB.NET 2.0, this is the place to post. Beginner and advanced questions are welcome here.

General ASP.NET Questions
If you have any general ASP.NET questions that may apply to any .NET language, then this is the place to post. Beginner and advanced questions are welcome.
Membership & Roles
If you have questions regarding membership and roles in ASP.NET 2.0, post them here.

General Web Development Questions
If you have any questions regarding HTML, XHTML, CSS, XML, or other general web development related issues, then this is the place to post them. Beginner and advanced questions are welcome here.

IIS Administration and Configuration
If you have any questions regarding how to configure IIS 5.x, IIS 6.0 and above, then this is the place to post. Beginner and advanced questions are welcome.

General .NET Questions

.NET Questions
If you have any questions about the .NET framework or other general “how do I do this in .NET” questions, then this is the place to post. Beginner and advanced questions are welcome here.

If you have any questions about ADO.NET (Database access, DataSets, DataTables etc..), then this is the place to post. Beginner and advanced questions are welcome here.

General VB.NET 2.0 / 3.5
Have general quesitons about VB.NET? Post them here

Visual Studio

Visual Studio 2008
This forum is used to discussed items relevant to Visual Studio 2008’s functionality.

So these are the categories that I will focus on first. You don’t need to know everything. You just need to know what you need to know 🙂

Example: The Magic Square Calculator On the Web

Category : Matlab Builder NE

To create the Magic Square Calculator using .NET, you must create:

  1. The MATLAB Builder NE DLL file that is generated by compiling M-code using MATLAB, MATLAB Compiler, and MATLAB Builder NE.
  2. The DataTable implementation that converts the magic square output into something that an ObjectDataSource can use in a GridView Control.
  3. The ASPX page and the code behind it. This page is responsible for taking in user input, displaying the controls, and handling page events.

1. create .net package

project name: Examples.prj

class name: MagicCalc

m files included: getMagic.m and get MagicWebFigure.m

2. create a c# project

3.create DataTable implementation. to do this create a .cs file and save it under /App_Code as MagicSquare.cs

save the source code and place it on the cs file

4.Create the code for the ASPX page – copy the source code

on this page I removed some of the codes..3 lines, some weird codes that give errors

5. Create the code behind the ASPX page – copy the source code

6. don’t forget to add references:  examples.dll, mwarray.dll

here’s a successful one:

Links on MATLAB Builder NE

Category : Matlab Builder NE


Deploying Applications with MATLAB

Using MATLAB Builder NE

Deployment of a Soundcard Audio Analysis Application


Deploying MATLAB Applications to the Web – Calculation Services .Net

Deploying MATLAB Components to C/C++, Java, .NET, and Excel

Documentation – Matlab Compiler


– Calculation Services .Net

Working on getMagicWebFigure example

Category : Matlab Builder NE

The examples doesn’t really show exactly how to do it. There’s some missing files. Isuppose they want us to figure out ourselves. Anyway as usual, lots of errors and warning as I trying to figure out the whole thing

Here’s one of them:

Validation (XHTML 1.0 Transitional): Attribute values must be enclosed in quotation marks.


solution-add “” ->media=”all”


Sharing Components Across Distributed Applications Using .NET Remoting

Category : Matlab Builder NE

Now I’m trying to figure out the example in this section. As always, there’s always obstacle. I wonder why does the examples doesn’t work. You always need to to adjust something.

Here’s an error

Warning 1 ‘System.Runtime.Remoting.RemotingConfiguration.Configure(string)’ is obsolete: ‘Use System.Runtime.Remoting.RemotingConfiguration.Configure(string fileName, bool ensureSecurity) instead.’ D:\MagicRemoteExample\MWArrayAPI\MagicSquareServer\MagicSquareServer.cs 10 11 MagicSquareMWServer

So I did some Googling..but heck couldn’t understand



After looking at the explanation i’ve changed

static void Main(string[] args)
Console.WriteLine(“Magic Square Server started…”);

static void Main(string[] args)        {          RemotingConfiguration.Configure(@”..\..\..\..\MagicSquareServer.exe.config”);
Console.WriteLine(“Magic Square Server started…”);
Console.ReadLine();        }


public static void Configure(string MagicSquareServer,bool ensureSecurity)


Console.WriteLine(“Magic Square Server started…”);



Now the error that comes out

Error 1 Program ‘D:\MagicRemoteExample\MWArrayAPI\MagicSquareServer\obj\Debug\MagicSquareServer.exe’ does not contain a static ‘Main’ method suitable for an entry point MagicSquareMWServer

Webfigures works!!!

Category : Matlab Builder NE

Alhamdulillah..I managed to figure out the whole thing..

Patient is a virtue

Matlab Builder NE -Sample Applications

Category : Matlab Builder NE

Yesterday I completed some sample on Matlab Builder NE:

1. Magic Square Example – The Magic Square example shows you how to create a .NET component named MagicSquareComp, which contains the magic class and other files needed to deploy your application. (1m-file 1 class)

This example demonstrates how to use MATLAB Builder NE to build a simple ‘ component returning a magic square and how to convert MWNumericArray types’ to native .NET types.

2. Create Plot Example – Use the MATLAB Builder NE product to convert a MATLAB function (drawgraph) to a method of a .NET class (Plotter) and wrap the class in a .NET component (PlotComp). (1m-file 1 class)

The program does the following:

  • Creates two arrays of double values.
  • Creates a Plotter object.
  • Calls the drawgraph method to plot the equation using the MATLAB plot function.
  • Uses MWNumericArray to handle the data needed by the drawgraph method to plot the equation.
  • Uses a try-catch block to catch and handle any exceptions
This example demonstrates how to use MATLAB Builder NE to build a component that displays a MATLAB figure window.

This application demonstrates plotting x-y data by graphing a simple parabola into a MATLAB figure window.

3. Variable Arguments Example – (2 m-files 1 class)

Project Name: VarArgComp

Class Name: Plotter

M-Files: drawgraph.m, extractcoords.m

function [xyCoords] = DrawGraph(colorSpec, varargin),

function [varargout] = ExtractCoords(coords)
coords = plotter.extractcoords(5, data),
data = CType(plotter.drawgraph(colorSpec, coords), MWNumericArray)

The purpose of the example is to show you the following:

  • How to use the builder to convert a MATLAB function, drawgraph, which takes a variable number of arguments, to a method of a .NET class (Plotter) and wrap the class in a .NET component (VarArgComp). The drawgraph function (which can be called as a method of the Plotter class) displays a plot of the input parameters.
  • How to access the component in a C# application (VarArgApp.cs) by instantiating the Plotter class and using MWArray to represent data.
  • How to build and run the VarArgDemoApp application, using the Visual Studio .NET development environment.

DRAWGRAPH Draws a graph using the specified color and connecting a variable number of  input coordinates. Returns a single two column data array containing the input coordinates.XYCOORDS= DRAWGRAPH(COLORSPEC, VARARGIN) Connect coordinates using a line of the specified color.

EXTRACTCOORDS Extracts a variable number of two element x and y coordinate vectors from a two column array [VARARGOUT] = EXTRACTCOORDS(COORDS) Extracts x,y coordinates from a two column array

The program does the following:

  • Initializes three arrays (colorSpec, data, and coords) using the MWArray class library
  • Creates a Plotter object
  • Calls the extracoords and drawgraph methods
  • Uses MWNumericArray to represent the data needed by the methods
  • Uses a try-catch block to catch and handle any exceptions

This example demonstrates how to use MATLAB Builder NE to build a component with a variable number of input and output arguments.

This application demonstrates how to call components having methods with varargin/vargout arguments.

4. Spectral Analysis Example – (2 class, 1m-file each)

Project Name: SpectraComp

Class Name: 1.Plotter > plotftt.m & 2.SignalAnalyzer>computeftt.m

  • How to use the MATLAB Builder NE product to create a component (SpectraComp) containing more than one class
    • How to access the component in a C# application (SpectraApp.cs), including use of the MWArray class hierarchy to represent data
    • How to build and run the application, using the Visual Studio .NET development environment

    The program does the following:

    • Constructs an input array with values representing a random signal with two sinusoids at 15 and 40 Hz embedded inside of it
    • Creates an MWNumericArray array that contains the data
    • Instantiates a SignalAnalyzer object
    • Calls the computefft method, which computes the FFT, frequency, and the spectral density
    • Instantiates a Plotter object
    • Calls the plotfft method, which plots the data
    • Uses a try/catch block to handle exceptions

    This application computes and plots the power spectral density of an input signal.

    5. Matrix Math Example – How to assign more than one MATLAB function to a component class (3 m-file 1 class)

  • How to assign more than one MATLAB function to a component class
  • How to manually handle native memory management by disabling the default memory manager for MWArray
    • How to access the component in a C# application (MatrixMathApp.cs) by instantiating Factor and using the MWArray class library to handle data conversion
    • How to build and run the MatrixMathApp application, using the Visual Studio .NET development environment

    Project Name: MatrixMathComp

    Class Name: factor M-Files: cholesky.m, ludecomp.m, and qrdecomp.m

    function [L] = Cholesky(A)
    function [L,U] = LUDecomp(A)
    function [Q,R] = QRDecomp(A)

    This application computes cholesky, LU, and QR factorizations of a finite difference matrix of order N. The order is passed into the application on the command line.

    6. Phonebook Example – (1class, 1mfile) The makephone function takes a structure array as an input, modifies it, and supplies the modified array as an output.

    Project Name:PhoneBookComp

    Class Name: phonebook>makephone.m

    getphone class demonstrates the use of the MWStructArray class

    The program does the following:

    • Creates a structure array, using MWStructArray to represent the example phonebook data.
    • Instantiates the plotter class as thePhonebook object, as shown:
      thePhonebook = new phonebook();
    • Calls the makephone method to create a modified copy of the structure by adding an additional field, as shown:
      result = thePhonebook.makephone(1, friends);

    Review on Asp.net

    Category : Website Development

    I always remind myself and my students that if you want to master a subject, you must increase your vocabulary and understanding on that particular subject. Knowing that, and the fact that I am new to Asp.net, there’s no shortcut but to digest every possible thing that come across. But there’s a danger that I might get information overloaded. So it’s crucial to know what is it that you want then only find the best solutions. But the problem is my vocab in asp.net is weak, so I’ll just have to dig almost everything and hopefully I could find what I need.

    So I’m gonna review all the videos on asp.net website. Patient is a must virtue.

    Fundamentals of ASP.NET Web Forms

    ASP.NET 4 and VS 2010




    Deploying and Running Websites

    How Do I?

    1st phase

    Utilize Web Parts and Personalization

    Secure my Site using Membership and Roles

    Create a Full-Featured Customer Login Portalwatched on 100427.  Use Control k+d to to format the alignment. Create table from database. change themes using css. Create masterpages. create secure_Admin and secure_member folder so we can set authentication. To do that we need to go to asp.net config and create role for the particular folder. Create login using login control. Use login view for user status, login for the input, login status for the login/logout usually placed at masterpages. Learn how to create new  user account using Create User Wizard for new members only (secure_members). Learn to easily create sitemap. add the links on the code. then on the mastergaes, drop the treeview control. then associate it with a database; sitemap. add breadcrumb control. Learn how to show certain links for correct authentication. before login you will see different set of links, members login will see certain set of links when login while admin will see a different set. Create user profile page and earn how user can change their profile.

    Use Master Pages and Site Navigation

    Create Data-Driven Web Sitescreate new table. open sql server management studio to import data from an existing to database to the new database. Learn how to deploy the table. You can drag the table as shown in video Create Full Featured.. or use dataset (add New Item>Dataset on the App_Code folder (dataset1.xsd)). On the Dataset, create the table for Authors and create the table States for Dropdownlist. on the default.aspx page, insert the dropdownlist and bind it with a datasource, object to show the list of states. Then under data drop the GridView to display the Authors table. The dropdownlist acts as a filter. Now we want to know details for each set of profile. We create details.aspx. add query on the dataset1.xsd. on details.aspx page insert gridview and bind it with the datasorce for the details.

    Implement an HttpModule

    Set Up the SQL Membership Provider

    Handle Application Events using an HttpModule

    Create a Custom Membership Provider?

    Create a Custom Profile Provider

    Use Validation Controls in ASP.NET

    Create a Custom User Control in ASP.NET

    Work with Master Pages Declaratively and Programmatically

    Handle Events in Master and Content Pages

    Deploy a Web Site Using the Copy Web Site Tool

    Use Roles to Segment Functionality

    Create Standard Content Layouts with Nested Master Pages

    Pass Info From One Page to Another Using a Query String

    Implement a Cross Page PostBack in ASP.NET

    Add Controls to an ASP.NET Web Page Programmatically

    Use a Hidden Field to Store & Manipulate Client-Side Info

    Implement Command Buttons for Individual Items

    Use a Web Site or a Web Application Project?

    Precompile an ASP.NET Website

    Synchronize Data in User Controls Based On User Selections

    Persist the State of a User Control During a Postback

    2nd phase

    Learn the Tips and Tricks of Experts

    Create a Multi-Lingual Site with Localization

    Make Use of Caching

    Make Greater use of Caching

    Customize My Site with Profiles and Themes

    Create a “Contact Us” Page

    Implement URL Rewriting

    Utilize the CSS Friendly Control Adapters

    Use Cascading Style Sheets for Web Page Layout

    Implement Site Navigation in ASP.NET

    Implement Health Monitoring for an ASP.NET Application

    Implement Tracing in an ASP.NET Web Site

    Event Handlers in ASP.NET Web Pages and Controls

    Implement a Custom Health Monitoring Event

    Use Control State to Persist Information for a Custom Server Control

    Read, Write, and Delete Cookies in ASP.NET

    Save & Load View State for a Custom Server Control

    Create and Use Application Level Events in ASP.NET

    Simple File Uploads in ASP.NET

    Multiple File Uploads in ASP.NET 2

    Multiple File Uploads in ASP.NET 1

    File Uploads with an AJAX Style Interface

    Use the ObjectDataSource

    Create User Selectable Themes for a Web Site

    Share Data Between Client & Server Code Using a Hidden Field

    Add JavaScript to An ASP.NET Page

    Add JavaScript Event Handlers to ASP.NET Server Controls

    Create and Call a Simple Web Service in ASP.NET

    Create & Use a Custom Config Section

    Configure an ASP.NET Web Site for a .NET Framework Version

    Use the ASP.NET IIS Registration Tool to Configure ASP.NET

    Extend & Customize a Server Control

    Create Groups with the ListView Control for Different Data

    Make HTML Elements Accessible from Server Side Code

    Detect Browser Capabilities in ASP.NET Web Pages

    Map a Server Control to the Adaptor Used to Render It

    Use aspnet_merge.exe to Merge Assemblies

    Using Fixednames with the Compiler Utility

    Use Skins with CSS for Flexibility and Maintainability

    Write Web Events to a Database Using the SqlWebEventProvider

    Use ASP.NET to Send Email from a Web Site

    Configure Email Notification for Health Monitoring

    Use a Visual Studio 2008 Web Deployment Project

    Send Templated Emails for Health Monitoring Events

    Send Email Asynchronously with ASP.NET

    Embed an Image in an Email with ASP.NET

    Implement Error Handling when Sending Email

    Create a Provider for Logging Health Monitoring Events

    Create a Component for Sending Email to a Distribution List

    Create a FTP Connection to a FTP Server

    Export Data to a Comma Delimited (CSV) File

    Use Response.Filter to Replace HTML

    Use OutputCache to Cache an ASP.NET Page

    Cache Portions of an ASP.NET Page

    Cache a Page Based Upon Information in the HTTP Header

    Use the ASP.NET Cache Object to Cache App Info

    Add Client Script Event Handlers Controls on a Page

    Understand and Defend Against Script Injection Attacks

    ASP.NET Data Access Technologies, an Introduction to LINQ

    Create and Use Classes in JavaScript

    or Implementing CSS Styles

    Referenced assembly ‘MWArray.dll’ targets a different processor

    Category : Matlab Builder NE

    Stumble with theis problem:

    Possible problem detected while building assembly
    ‘MagicSquareVBApp’: Referenced assembly ‘MWArray.dll’
    targets a different processor

    Did a google search on “Referenced assembly ‘MWArray.dll’ targets a different processor”

    Here’s some of the results



    I did some trial and error, and here’s the solution that I got. The problem rise because of the platform setting between your local machine i.e. cpu and visual studio conflict with each other. My local machine is x86 while VS is x64 by default.

    So you need to change it at Build>Configuration Manager and at your project file, go to property and change it to the type your local machine is.

    Review on Learn Arabic with TellMeMore.com

    Category : Website Development

    Details taken from http://www.tellmemore.com/consumers/arabic_individuals

    About Us video:




    Product Description

    TELL ME MORE Arabic (Beginner-Intermediate-Advanced)

    TELL ME MORE® Arabic introduces the standard Arabic used in newspapers, television broadcasts and between Arabic speakers of different nationalities. At the same time, an introduction to dialects such as Algerian, Egyptian, Moroccan, and Yemenite is also given. This package includes levels Beginner, Intermediate and Advanced.


    Interactive Dialogues and Cultural Videos
    Use your computer to practice speaking in an interactive manner and to perfect your pronunciation, with over 2,200 sentences and 30,000 words related to themes taken from daily life. The dialogues are designed to help students expand their knowledge with regard to different Arab cultures while simultaneously strengthening their vocabulary skills.
    More than 5,800 Arabic exercises
    Engaging activities such as Word Association, Fill-in-the-Blanks, Dictation, Grammar Practice, Crossword Puzzles, Sentence Practice, Phonetics Exercises …
    Grammar and Vocabulary
    Consult 280 key grammar and conjugation points presented in a clear and concise manner and enrich your Arabic vocabulary with an audio glossary containing more than 2,000 words.
    Arabic writing workbook
    Improve your Arabic writing with the workbook included


    Two distinct lesson modes provide a simple learning method for everyone.
    The Free-To-Roam Mode allows you to select the activities and exercises of your choice, giving you the freedom to create your own lessons.
    The Guided Mode offers a predefined lesson plan. You can follow your progress using the Progress Chart.
    Learn more about Arabic and Arab culture.
    Numerous dialogues and videos make learning easier and more enjoyable. The cultural diversity of the Arabic-speaking world is illustrated using situations taken from traditional and everyday life.


    Speech Recognition
    Using speech recognition technology, TELL ME MORE® is able to recognize what you say, evaluate your pronunciation and correct your mistakes. With the help of the voice graph and pitch curve, you can improve your pronunciation and intonation.
    Phonetic exercises and 3D animations will also facilitate Arabic learning the correct pronunciation of the 29 Arabic phonemes, including Hamza, Baa’ and Waaw.
    Automatic Detection of Pronunciation Errors: S.E.T.S.®
    TELL ME MORE® points out pronunciation errors within a sentence thanks to its exclusive S.E.T.S.® (Spoken Error Tracking System).
    MPEG Videos
    Improve your listening comprehension and knowledge of Arab culture with full-screen MPEG videos covering a wide variety of topics, excerpted from documentaries.

    Guided Tour: Demos and Download



    TELL ME MORE® interactive language learning

    Auralog’s award winning TELL ME MORE® language training provides greater depth, breadth, and quality than any other language learning solution available today. Based on authentic materials the entire program can be customized to suite your unique class needs and skill levels.

    TELL ME MORE® delivers an engaging learning experience that combines the most innovative content with the latest in learning theory and pedagogy while leveraging state of the art technology. The TELL ME MORE® solution represents over twenty years of research and development investments and is a breakthrough language learning program covering initial language acquisition through mastery. The TELL ME MORE® experience includes:

    • Easy-to-comprehend content created by expert instructional designers
    • 2,000+ hours of dynamic content per language
    • Specialized oral communication content
    • Supplemental Business and Culture specific content
    • Reading, Writing, Speaking, and Listening Workshops
    • 37 different types of learning activities/interactions
    • Speech Recognition with playback and achievement scale
    • Spoken Error Tracking System (SETS®) technology automatically detects and corrects your pronunciation errors
    • Professional voice-overs, videos, 3-D animations, and real-world graphics
    • 10,000 vocabulary words classified by lexical group
    • Anytime, anywhere accessibility

    Pedagogical Approach

    The TELL ME MORE Education method offers different types of activities which correspond to precise pedagogical objectives.

    Exercises for assimilating what has been learned. These exercises help students assimilate grammatical and lexical structures, as well as phonetics.

    • Repetition: Word Pronunciation, Sentence Pronunciation…
    • Substitution or Transformation: Sentence Practice, Grammar Practice…

    Exercises for putting the rules into practice. The aim of these exercises is to make students focus on specific functional components within a language.

    • Reflection on the organization of sentence components: Word Order…
    • The use of vocabulary and grammar in fill-in-the-blanks exercises, which require students to analyze a sentence in its entirety in order to place the correct word: The Right Word, Fill-in-the-Blanks…
    • Vocabulary practice, which consists of associating a word with its antonym, synonym or a related image: Picture/Word Association, Word Association…
    • Reflection on vocabulary or grammar using texts or lexical groups, in which students must identify words belonging to a specific lexical or grammatical group: Words and Functions, Words and Topics…

    Exercises for mastering the language. These exercises are designed to put what has been learned into practice through written expression.

    • Guided expression, focusing on rewriting a text in different contexts: Text Transformation…
    • Semi-guided expression: writing a short essay based on an image or video, or a summary of a given text: Written Expression…

    The TELL ME MORE Trial Area

    Consumer Edition


    K-12 Education

    TELL ME MORE® Education Online Demo

    http://www.tellmemoreeducation.com/Presentation/AME.html – Video

    Corporate and Government Demos