Skip to main content

ASP.NET code model

Normally visual studio support in two code models when coding a web page.
1. Inline code
2. Code-behind

Inline code
This is the common model in use in traditional ASP and when develop a simple web application. Under this model all coding and HTML stuff pack in signal .aspx file. This model become to handy because it keep every thing in place.

Code-behind
In this model there are two file behind one web page. The .aspx file is included HTML markup and control tags when included all code (C#, C++, J#) in a.cs (if programming language is C# ).

In visual studio we have freedom to select one of these two option when we create a webpage.
File->New



Comments

Popular posts from this blog

How to add a new column to vtiger existing table

When we add a new column to existing vtiger table, we need do more than just adding a column to selected vtiger table. If you do so, you may unable to do some DB operation like insert update and deleted. This is the way how we can do this. 1. Add a new column to selected table as normal 2. Add a new row to "vtiger_field" table as fallow "insert into vtiger_field values (tabid, fieldid, columnname, tablename, generatedtype, uitype, fieldname, fieldlabel, readonly, presence, selected,maximumlength, sequence, block, displaytype, typeofdata, quickcreate,quickcreatesequence, info_type)" When you set a value to "presence" field be make sure to select 0 or 2. Otherwise your selected field not populated with vtiger field list.

Updating Vtiger Email module for sending Fax and SMS

Most of the time vtiger users searching modules for sending Fax and some time SMS to their customers. Actually writing a separate module for sending Fax may be a time consuming work. So that here I am going to explain how extend possibility of vtiger Email module to send Fax. If you good enough to understand this process, you can update this module to send SMS also. For sending emails we are normally using our own SMTP server. But we have to use some commercial API to send FAX and SMS. In here lets we select two commonly use APIs like "Interfax" and "clickatell" to send Fax and SMS. These APIs are providing email supported APIs to send Fax and SMS. That is why we can use vtiger Email module to send Fax and SMS. From this post I am not going to explain step by step who to hack Email module to send Fax and SMS because it is not a stride forward process. Actually I want to explain that we can use Vtiger Email module to send Fax and SMS other than sending emails aft...

Understanding Joomla URLs and Itemids

One of the most? frequently asked questions on the Joomla forums is "What is the Itemid and what does it do?". Its something that frustrates even experienced developers ... witness the post called " Damn you, infernal item IDs!!! " on WhyJoomla.com . I thought a quick tutorial would be useful and along the way we can break down other aspects of Joomla URLs. An Example Joomla URL and Itemid Let's use a news item called "Joomla Weekly News Magazine Issue 10" written by Brian Teeman. If you navigate to this news item via Joomla.org, you can see this URL in the browser bar: http://www.joomla.org/content/view/2985/33/ You see this because inside the administrator section of Joomla.org, Search Engine Friendly URLs have been turned on (Site => Global Configuration => SEO => Search Engine Friendly URLs = Yes) . Its a shorter version of the real URL produced by Joomla: http://joomla.org/index.php?option=com_content&task=view&id=2985&Itemid...