- By
Shree Khanal
-
5/10/2013
-
query,sql
-
MSSQL
When I Copy a table without copying the data first of all I generate a script of table and change table name and run a query.But there is other simple way to do this.
Continue Reading
- By
Shree Khanal
-
5/7/2013
-
MVC,ASP.NET Web Forms,ASP.NET MVC
-
ASP.NET MVC
Some fact between ASP.NET Web Forms and ASP.NET MVC which I collect from net.
In the end, it's really like choosing between a car and a motorcycle when making a trip. Each trip requires a choice, and having both vehicles available should be seen as an opportunity, not as a curse.
Continue Reading
- By
Shree Khanal
-
3/6/2013
-
stackoverflow
-
stackoverflow
Basic Question which I ask in so when I start asp.net.
Continue Reading
- By
Shree Khanal
-
12/7/2012
-
MSSQL,SQL
-
MSSQL
Basic but useful Query .
Continue Reading
- By
Shree Khanal
-
12/6/2012
-
MSSQL,SQL,QUERY
-
SQL
ROLLUP clause is used to do aggregate operation on multiple levels in hierarchy.
Continue Reading
- By
Shree Khanal
-
12/5/2012
-
SQL
-
MSAQL
Basic but useful query of MSSQL.
Continue Reading
- By
Shree Khanal
-
8/21/2012
-
asp.net,jquery,pattern
-
pattern
Main key of singleton pattern is it have only one instance.I try to give a simple example of using this pattern in jquery with asp.net WebService. 1. Include jquery-1.7.2.js ,json2.js and TheSingletonPattern.js(Last one is your own .js file.) inside head tag in .aspx page. 2. Add WebService
<%@ WebService Language="C#" Class="WebService" %>
//CodeBehind="~/App_Code/WebService.cs"
using System;
us...
Continue Reading
- By
Shree Khanal
-
8/21/2012
-
Bind,List,Repeater
-
ASP
Repeater control on .aspx file:
<asp:Repeater ID="rptTest" runat="server">
<ItemTemplate>
<span>
<%#Eval("Data1")%></span>
<span>
<%#Eval("Data2")%></span>
</ItemTemplate>
</asp:Repeater>
<asp:Button ID="cmdPrev" runat="server" Text="Prev" OnClick=&quo...
Continue Reading
- By
Shree Khanal
-
8/21/2012
-
java sript
-
java sript
<asp:CheckBoxList ID="chkID" runat="server"></asp:CheckBoxList>
<asp:CustomValidator runat="server" ID="chkID"
ClientValidationFunction="ValidateList" ValidationGroup="ValdaionGroupAssociateWithButton"
ErrorMessage="Select atleast one Module" ></asp:CustomValidator>
And java sript code is :
function ValidateList(source, args)
{
var chkList=...
Continue Reading
- By
Shree Khanal
-
8/21/2012
-
c#,asp.net
-
ASP
When we use:
string URL = Request.Url.ToString();
It gives a result with querystring.Simple way to rid off this querystring is:
string URL = Request.Url.GetLeftPart(UriPartial.Path).ToString();
basic but useful.Less of us use this.Happy Coding. :)
Continue Reading