--Select values from 3 diff tables
---------------------------------
SELECT DISTINCT A.NAICS,B.NAICSS,C.SIC
FROM #NAICS A JOIN NAIC_SIC..NAICS B ON
A.[NAICS]=SUBSTRING(CAST(B.NAICS AS VARCHAR),1,5)
JOIN [LE-NAICS] C ON
A.[NAICS]=C.NAICS
Jan 28, 2009
Jan 23, 2009
Hide menus in master page using asp.net
if (Request.QueryString["hid"] != null)
{
if (Request.QueryString["hid"] == "hidelink")
{
_master.ShowHideLinks("hidelinkedarea");
}
}
send this QueryString whenever you need to hide
sample : Response.Redirect("SearchDetails.aspx?cid=" + compid + "&hid=hidelink");
{
if (Request.QueryString["hid"] == "hidelink")
{
_master.ShowHideLinks("hidelinkedarea");
}
}
send this QueryString whenever you need to hide
sample : Response.Redirect("SearchDetails.aspx?cid=" + compid + "&hid=hidelink");
Jan 20, 2009
Jan 9, 2009
Create procedure to get XML output in sqlserver 2005
CREATE PROCEDURE [dbo].[GetUsersXML]
AS
BEGIN
SELECT 1 AS TAG,
NULL AS PARENT,
UserID AS [User!1!ID],
UserName AS [User!1!Name]
FROM T_Users
FOR XML EXPLICIT
END
AS
BEGIN
SELECT 1 AS TAG,
NULL AS PARENT,
UserID AS [User!1!ID],
UserName AS [User!1!Name]
FROM T_Users
FOR XML EXPLICIT
END
Jan 7, 2009
Subscribe to:
Posts (Atom)