Dorin
Posts: 50
|
Posted: 03/06/2013, 10:31 AM |
|
Hello,
I use this code in the Before Show event of a grid to highlight the searched results:
Dim search
Dim Articles
search = Request.QueryString("art")
Articles = grid.Articles.value
Articles = Replace(Articles,search,"<font color='red'><b>" & txt & "</b></font>")
The Articles label's content is HTML.
What's wrong with the code? I've got no error but nothing is highlighted.
I searched the entire forum for some samples but I couldn't find anything to work.
Any help would be greatly appreciated.
|
|
|
acaruson
Posts: 17
|
Posted: 03/31/2013, 10:30 PM |
|
Try this...
Put the following code into the BeforeShow of the ELEMENT in the results or targeted grid. Obviously, change the table and search variables to match your code.
Dim txt
txt=Request.QueryString("s_Event")
tbl_events.Event_Edit.value=Replace (tbl_events.Event_Edit.value,txt,"<font color=RED><i><b>" & txt & "</i></b></font>", 1, -1, vbTextCompare)
|
|
|
Dorin
Posts: 50
|
Posted: 04/01/2013, 6:17 AM |
|
Yeap, it works.
Thank you.
|
|
|
|