Click here to Skip to main content
15,908,907 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascript Pin
Bluebamboo7-Dec-07 6:01
Bluebamboo7-Dec-07 6:01 
Generalgridview select and modal popup Pin
Sarfaraj Ahmed7-Dec-07 1:52
Sarfaraj Ahmed7-Dec-07 1:52 
GeneralRe: gridview select and modal popup Pin
thomasa7-Dec-07 3:47
thomasa7-Dec-07 3:47 
GeneralServer.Transer Pin
.NET- India 7-Dec-07 1:45
.NET- India 7-Dec-07 1:45 
GeneralRe: Server.Transer Pin
pmarfleet7-Dec-07 1:59
pmarfleet7-Dec-07 1:59 
Generalcoloring label [modified] Pin
Member 47640947-Dec-07 0:58
Member 47640947-Dec-07 0:58 
GeneralRe: coloring label Pin
Michael Sync7-Dec-07 4:17
Michael Sync7-Dec-07 4:17 
GeneralRe: coloring label Pin
Member 47640947-Dec-07 21:15
Member 47640947-Dec-07 21:15 
Thank you for your reply!!

but it wont work
here is my code:


Protected Sub dgFatturato1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.WebControls.GridItemEventArgs) Handles dgFatturato1.ItemDataBound
Using connection As New SqlConnection(ConfigurationManager.ConnectionStrings.Item("BoschConnectionString").ToString)
connection.Open()
Dim str As String
str = "SELECT colorname FROM ACC_COLORI_FATTURATO"
Dim adpt As New SqlDataAdapter(str, connection)
Dim ds As New DataSet
adpt.Fill(ds, "ACC_COLORI_FATTURATO")
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then

If ds.Tables(0).Rows.Count > 0 Then
Dim fieldcolor As String
Dim i As Integer
For i = 0 To ds.Tables(0).Rows.Count - 1
fieldcolor = ds.Tables(0).Rows(i).Item(0).ToString
'DataBinder.Eval(e.Item.DataItem, "colorName")
'Dim lbl As Label
'lbl = CType(e.Item.FindControl("lblColore"), Label)
'lbl.BackColor = System.Drawing.Color.FromName(fieldcolor)
''To convert the value of Type String to System.Drawing.Color
e.Item.BackColor = Color.FromName(fieldcolor)
Next
End If
End If
end using
end sub



please help!!
GeneralQueryString Pin
AS@137-Dec-07 0:30
AS@137-Dec-07 0:30 
GeneralRe: QueryString Pin
Paddy Boyd7-Dec-07 0:36
Paddy Boyd7-Dec-07 0:36 
GeneralRe: QueryString Pin
That's Aragon7-Dec-07 1:34
That's Aragon7-Dec-07 1:34 
GeneralConnect to DBF Pin
AnhTin6-Dec-07 23:40
AnhTin6-Dec-07 23:40 
GeneralPrivate Class Pin
rockz...6-Dec-07 23:32
rockz...6-Dec-07 23:32 
GeneralRe: Private Class Pin
J4amieC6-Dec-07 23:52
J4amieC6-Dec-07 23:52 
JokeRe: Private Class Pin
coolestCoder6-Dec-07 23:54
coolestCoder6-Dec-07 23:54 
GeneralRe: Private Class Pin
Colin Angus Mackay7-Dec-07 1:27
Colin Angus Mackay7-Dec-07 1:27 
GeneralRe: Private Class Pin
coolestCoder7-Dec-07 3:48
coolestCoder7-Dec-07 3:48 
GeneralNull Reference Pin
SreejithAchutan6-Dec-07 23:28
SreejithAchutan6-Dec-07 23:28 
GeneralRe: Null Reference Pin
N a v a n e e t h7-Dec-07 0:24
N a v a n e e t h7-Dec-07 0:24 
GeneralStored Procedure result in Aspx page Pin
Member 45999726-Dec-07 23:22
Member 45999726-Dec-07 23:22 
GeneralRe: Stored Procedure result in Aspx page Pin
coolestCoder6-Dec-07 23:48
coolestCoder6-Dec-07 23:48 
GeneralRe: Stored Procedure result in Aspx page Pin
neerubee26-Dec-07 22:21
neerubee26-Dec-07 22:21 
QuestionOpening a document file in a formatted way. Pin
Biswa Pujarini Mohapatra6-Dec-07 23:11
Biswa Pujarini Mohapatra6-Dec-07 23:11 
GeneralRe: Opening a document file in a formatted way. Pin
suyuan19846-Dec-07 23:21
suyuan19846-Dec-07 23:21 
QuestionWeb Parts Issue..its urgent Pin
rockz...6-Dec-07 22:50
rockz...6-Dec-07 22:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.