RSS

Monthly Archives: June 2013

Add CSS File At Run Time in ASP.NET using VB.NET

To Add CSS File At Run Time

Following Code Will Help you to Add Css At Run time in Page

Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load

Dim myHtmlLink1 As New HtmlLink
myHtmlLink1.Href = "../Css/Stylesheet.css"
myHtmlLink1.Attributes.Add("rel", "stylesheet")
myHtmlLink1.Attributes.Add("type", "text/css")
Page.Header.Controls.Add(myHtmlLink1)

End Sub

 
1 Comment

Posted by on June 12, 2013 in ASP.NET

 

Tags:

Update data from one existing row to another existing row

Update data from one existing row to another existing row

review the following example

CREATE TABLE #abc(
id int,
Name varchar(50),
SurName varchar(50)
)
Insert into #abc values (1,'Anil','Shah')
Insert into #abc values (2,'Kuldeep','singh')
Insert into #abc values (3,'Waheed','panjri')
Insert into #abc values (4,'Sumit','sutar')

Select * From #abc

Update #abc Set Name= c.Name,
SurName=c.SurName From
(Select Name,SurName From #abc Where id=1)c
Where id=4

I hope this helps, good luck!

 
Leave a comment

Posted by on June 12, 2013 in SQL

 

Tags: , ,