Click here to Skip to main content
15,898,035 members
Home / Discussions / Database
   

Database

 
QuestionMaximum output length for PRINT in SQL 2005 Pin
MatthysDT28-May-08 21:38
MatthysDT28-May-08 21:38 
AnswerRe: Maximum output length for PRINT in SQL 2005 Pin
Ashfield29-May-08 2:16
Ashfield29-May-08 2:16 
QuestionODP.net (oracle data provider) - batches Pin
Member 453749128-May-08 19:42
Member 453749128-May-08 19:42 
Questionmultiple sql queries Pin
twsted f828-May-08 9:28
twsted f828-May-08 9:28 
AnswerRe: multiple sql queries Pin
Blue_Boy28-May-08 13:27
Blue_Boy28-May-08 13:27 
QuestionCould not find file 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE' error in VS 2008 Pin
MPCHAM28-May-08 3:49
MPCHAM28-May-08 3:49 
AnswerRe: Could not find file 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE' error in VS 2008 Pin
Mike Dimmick2-Jun-08 5:43
Mike Dimmick2-Jun-08 5:43 
QuestionNeed to display the links in datalist of pros in redcolor who r working for us Pin
subbu.sk28-May-08 2:50
subbu.sk28-May-08 2:50 
Hi all,

i had one datalist which appear all the pros for all the cities in the links of blue color.

but i need to display the link color in red to those pro who r working for us. i add one column in database 'workus' a bit. if 'workus' is true then it will display in red color.else in blue color.

Protected Sub dtlstPros_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs)

Dim objAnchor As HtmlAnchor

Dim drRow As DataRow

Dim proCurrenctCityID As Int32 = 0

Dim proPrevCityID As Int32 = 0

Dim intRecCount As Int16 = 0

If e.Item.ItemType = ListItemType.AlternatingItem Or e.Item.ItemType = ListItemType.Item Then

drRow = CType(CType(e.Item.DataItem, DataRowView).Row, DataRow)

proCurrenctCityID = CType(drRow("CityID"), Int32)

If ViewState("PrevCityID") <> proCurrenctCityID Then

ViewState("PrevCityID") = proCurrenctCityID

ViewState("Count") = 0

End If

'If ViewState("RecCount") < DISP_NOOF_PROS Then

''Workaround for hard links

Dim strRedirection As String = ""

Dim strFormatCompanyName As String = ""

Dim intLen As Int16 = 0

***********workus = Convert.ToBoolean(drRow("workus "))
If zoompro = True Then
objAnchor = CType(e.Item.FindControl("ancPro"), HtmlAnchor)
objAnchor.Style.Add("cssClass", "text12red")
'objAnchor.Style.Add("style", "*")
Else
objAnchor = CType(e.Item.FindControl("ancPro"), HtmlAnchor)

End If***************

objAnchor = CType(e.Item.FindControl("ancPro"), HtmlAnchor)

strRedirection = String.Format("~/xyz/Details.aspx?ID= {0}&CName={1}&CName={2}&ID={3}&Page={4}", drRow(Cas.GUID).ToString, drRow(cas.CNAME).ToString, Request.QueryString("Name"), Request.QueryString("ID"), "City")

objAnchor.HRef = strRedirection

intLen = drRow("CName").ToString.Length

If intLen > PNAME_LENGTH Then

strFormatCompanyName = Mid(drRow("CName").ToString, 1, PNAME_LENGTH)

objAnchor.InnerText = strFormatCompanyName + "..."

Else

objAnchor.InnerText = drRow("CName").ToString

End If

''End Workaround for hard links

'End If

ViewState("Count") += 1

End If

End Sub
can any one help me how to change the color of 'anctag' to red if workus=true

Thanks in advance

Thanks
Subbu.

QuestionBinary data with scripts... Pin
Chinners28-May-08 2:41
Chinners28-May-08 2:41 
AnswerRe: Binary data with scripts... Pin
Chinners29-May-08 5:24
Chinners29-May-08 5:24 
Questionneed to locate all the SQL servers and their databases in domain Pin
S.Aijaz28-May-08 1:54
S.Aijaz28-May-08 1:54 
Questionparameter problem Pin
Mr.Kode28-May-08 1:07
Mr.Kode28-May-08 1:07 
AnswerRe: parameter problem Pin
Mark J. Miller29-May-08 4:15
Mark J. Miller29-May-08 4:15 
QuestionApplication Side, SQL Queries. Pin
ctrlnick27-May-08 21:28
ctrlnick27-May-08 21:28 
AnswerRe: Application Side, SQL Queries. Pin
Mark J. Miller29-May-08 4:03
Mark J. Miller29-May-08 4:03 
Questionsql server locking mechanism Pin
MozhdehQeraati27-May-08 21:01
MozhdehQeraati27-May-08 21:01 
AnswerRe: sql server locking mechanism Pin
Ashfield27-May-08 21:10
Ashfield27-May-08 21:10 
GeneralRe: sql server locking mechanism Pin
MozhdehQeraati27-May-08 21:21
MozhdehQeraati27-May-08 21:21 
GeneralRe: sql server locking mechanism Pin
Ashfield27-May-08 21:36
Ashfield27-May-08 21:36 
QuestionUpdate an image field Pin
imannasr27-May-08 18:55
imannasr27-May-08 18:55 
AnswerRe: Update an image field Pin
Christian Graus28-May-08 14:28
protectorChristian Graus28-May-08 14:28 
NewsSQL Server 2008 Jumpstart Event Dev Training Now Online Pin
brucedkyle27-May-08 16:16
brucedkyle27-May-08 16:16 
QuestionIncorrect syntax on output parameter? [modified] Pin
markymark8227-May-08 10:34
markymark8227-May-08 10:34 
AnswerRe: Incorrect syntax on output parameter? Pin
Christian Graus27-May-08 14:25
protectorChristian Graus27-May-08 14:25 
GeneralRe: Incorrect syntax on output parameter? Pin
markymark8228-May-08 0:02
markymark8228-May-08 0:02 

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.