How to stop debugger in asp.net?
You can stop debugger in asp.net using below code.
(VB.Net)
System.Diagnostics.Debugger.Break()
You can stop debugger in asp.net using below code.
(VB.Net)
System.Diagnostics.Debugger.Break()
It’s a spec and a set of implementations that allow software running on disparate operating systems, running in different environments to make procedure calls over the Internet.
It’s remote procedure calling using HTTP as the transport and XML as the encoding. XML-RPC is designed to be as simple as possible, while allowing complex data structures to be transmitted, processed and returned.
For more detail click here
One of my friend ask me about difference between TAG and Categories.
I found good definition on wordpress itself.
For example, a post titled “Last Night At Burger King” might be filed under the “Dinner” category, but could have tags like, “burger, chicken fries, chocolate shake, dr. pepper”.
for more details :
http://faq.wordpress.com/2007/09/21/the-difference-between-tags-and-categories/
If you know the meaning of Strip word you will know what does it do. just kidding
The StripHTML function removes all HTML code from a string.
Syntax:
string = StripHTML(string)
Example Usage:
<%
dim a
a = a & “<HTML>” & vbCrLf
a = a & “<HEAD>” & vbCrLf
a = a & “<TITLE>Rana’s Blog</TITLE>” & vbCrLf
a = a & “</HEAD>” & vbCrLf
a = a & “<BODY>” & vbCrLf
a = a & “-Code Project!!!” & vbCrLf
a = a & “<A href=”" mce_href=”"./Rana.asp”"></A>” & vbCrLf
a = a & “</BODY>” & vbCrLf
a = a & “</HTML>” & vbCrLf
response.write StripHTML(a)
%>
Output
Rana’s Blog – Code Project
One of my reader asked me how to do in ASP.NET
In ASP.NET you can strip the HTML using Regex
Dim StrStripped As String
StrStripped = System.Text.RegularExpressions.Regex.Replace(“Input as String”, “Pattern like (.|\n)*?”, String.Empty)
Initializes full-text indexing or removes all full-text catalogs from the current database. By default, all user created databases in Microsoft SQL Server 2005 are enabled for full-text indexing, unless they are created using SQL Server Management Studio. To enable a database for full-text search
Use [DatabaseName]
Go
exec sp_fulltext_database ‘enable’
for more detail click here
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.Parser Error Message: Unrecognized attribute ‘type’.Line 2: <configuration>
Line 3: <configSections>
Line 4: <sectionGroup name=”system.web.extensions” type=”System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″>
Line 5: <sectionGroup name=”scripting” type=”SystemWeb.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″>
Line 6: <section name=”scriptResourceHandler” type=”System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions
Few steps to resolve it. Open IIS
START>>RUN >> INETMGR
Right Click on Default Web Site and select Properties
Under default web site properties ASP.NET and change ASP.NET Version to 2.0 as mentioned in the picture
Regards
Rana
DML
DML is abbreviation of Data Manipulation Language. It is used to retrieve, store, modify, delete, insert and update data in database. Examples: SELECT, UPDATE, INSERT statements
DDL
DDL is abbreviation of Data Definition Language. It is used to create and modify the structure of database objects in database. Examples: CREATE, ALTER, DROP statements
DCL
DCL is abbreviation of Data Control Language. It is used to create roles, permissions, and referential integrity as well it is used to control access to database by securing it. Examples: GRANT, REVOKE statements
TCL
TCL is abbreviation of Transactional Control Language. It is used to manage different transactions occurring within a database.
Thanks to Pinal Dave.
If you wanted to migrate data from Access, Oracle and Sybase to SQL SERVER 2005.
Here is the solution SSMA (SQL Server Migration Assistant) , I consolidated the information from difference sites.
Click here to download these simple steps.
Keep Content Fresh – New content is a great way to keep visitors coming back. Search engines also rank sites with fresh content higher. Keeping an active blog is a great way to keep your site new and fresh.
Keep it Simple – Visitors should be able to easily look around your site. If visitors are frustrated and can’t find what they are looking for, they are likely to leave quickly and never come back or recommend your site to others.
Help Visitors Contact You – Make it simple for visitors to reach you if they want. Include a guestbook or blog where they can post questions. Add a “contact me” form where they can submit questions to you via email.
Use Descriptive File Names – Use descriptive keywords as names for the files (e.g., pictures, videos) on your site. This will help your site appear more with search engines – especially through things like Google Image Search.
Create Links – Getting links to your site from other websites will help generate more traffic and improve your placement in search engines. Find other sites on your same topic and put a link to them on your site — maybe in a new “Favorite Links” page. Then ask those sites to link back to you by signing their guestbook.
Tag your Site – Adding site tags can increase the number of times your site shows up in search results. To pick the right keywords, try putting yourself in the shoes of your visitors and think what they would search for if they wanted to find your site.
Liven Up Site with Widgets – Add widgets to help your visitors interact with your site, get useful information, or just have fun. They are free and easy to add
Thanks to Freewebs sites
Rana
One of my readers asked me to write about validation summary of ASP.NET 2005.
A small example to help those who never used validate summary before.
I am using validationsummary control and RequiredFieldValidator to let you guys understand.
Brief introduction:
Validation Summary:
The ValidationSummary control is used to display a summary of all validation errors occurred in a Web page.
The error message displayed in this control is specified by the ErrorMessage property of each validation control. If the ErrorMessage property of the validation control is not set, no error message is displayed for that validation control.
For more detail click here.
RequiredFieldValidator:
The RequiredFieldValidator control is used to make an input control a required field.
For more detail click here
Use below code,copy it and test at your webpage.
<table width=”100%” cellpadding=”1″ cellspacing=”6″> <tr> <td> <asp:ValidationSummary ID=”ValidationSummary1″ runat=”server” ShowSummary=”true” /> </td> </tr> <tr> <td> <table> <tr> <td> <asp:TextBox ID=”TextBox1″ runat=”server”></asp:TextBox></td> <td> <asp:RequiredFieldValidator ID=”RequiredFieldValidator1″ runat=”server” ControlToValidate=”TextBox1″ ErrorMessage=”Missing field One” SetFocusOnError=”True” Display=”None”> </asp:RequiredFieldValidator></td> </tr> <tr> <td> <asp:TextBox ID=”TextBox2″ runat=”server”></asp:TextBox></td> <td> <asp:RequiredFieldValidator ID=”RequiredFieldValidator2″ runat=”server” ControlToValidate=”TextBox2″ Display=”none” ErrorMessage=”Missing field two” SetFocusOnError=”True”></asp:RequiredFieldValidator></td> </tr> <tr> <td align=”center” colspan=”2″> <asp:Button ID=”Button1″ runat=”server” Text=”Submit” /></td> </tr> </table> </td> </tr>
</table>
For any further help, write me.
Rana