Click here to Skip to main content
15,895,142 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Recalculating values in a datagrid with values fom textbox Pin
prathiba_naresh22-Nov-05 23:11
prathiba_naresh22-Nov-05 23:11 
GeneralRe: Recalculating values in a datagrid with values fom textbox Pin
BORN...again!23-Nov-05 11:39
BORN...again!23-Nov-05 11:39 
Questionhow to change Textbox text when the dropdownlist changing Pin
maxiachun22-Nov-05 16:42
maxiachun22-Nov-05 16:42 
AnswerRe: how to change Textbox text when the dropdownlist changing Pin
Christian Graus22-Nov-05 16:49
protectorChristian Graus22-Nov-05 16:49 
AnswerRe: how to change Textbox text when the dropdownlist changing Pin
jcrussell22-Nov-05 19:33
jcrussell22-Nov-05 19:33 
QuestionFormating a column in Excel programmatically Pin
Martin@captivasystems22-Nov-05 11:27
Martin@captivasystems22-Nov-05 11:27 
AnswerRe: Formating a column in Excel programmatically Pin
Curtis Schlak.22-Nov-05 15:56
Curtis Schlak.22-Nov-05 15:56 
Questionhow to display variable value as Text property in datagrid Pin
ScottForgot22-Nov-05 10:06
ScottForgot22-Nov-05 10:06 
The following routine, which successfully "splits" the desired search string into two parts, works to give me the proper results from my database in my datagrid:

= = = = =

Sub Page_Load(sender As Object, e As EventArgs)

Dim strName, strLastName, strFirstName, strIdNmbr as String

if not page.isPostBack() then

strSearch = SESSION("search") 'e.g., "Typ1 Typ2"

Dim strCriteria01, strCriteria02 As String
'Dim strString03 as String
Dim intPos As Integer

If Len(strSearch) > 0 Then
intPos = InStr(strSearch, " ")
If intPos > 0 Then
'Retrieve Criteria Info
strCriteria01 = Left(strSearch, intPos - 1)
'Retrieve win_option
strCriteria02 = Mid(strSearch, intPos + 1)

strString03 = "'" & strCriteria01 & "', '" & strCriteria02 & "'"
End If
End If

strLastName = UCase(TRIM(Request("LastName")))
strFirstName = UCase(TRIM(Request("FirstName")))
strIdNmbr = TRIM(Request("IdNmbr"))
strName = strLastName & "%" & strFirstName & "%" & strIdNmbr & "%"
strName = Replace(strName, "%%", "%")
strName = Replace(strName, "%%", "%")

strSql = "select /*+ FIRST_ROWS */ node_id, name " & _
" from doc_node d" & _
" where " & _
" name like '" & strName & "' and node_type = 'folder'" & _
" and exists (select 1 from doc_node c where c.grp_cd IN (" & strString03 & ") " & _
" and c.parent_node_id = d.node_id)"

end if

BindGrid (CreateDataSource())
End Sub
Sub Page_Unload(sender As Object, e As EventArgs)

'con = nothing
End Sub

= = = = =

But I also need to get the value of variable strString03 into the hyperlink text in the datagrid. In my datagrid, if I use, say:

[ItemTemplate]
[asp:HyperLink runat="server" NavigateUrl= '[%# "docs.aspx?NAME=" + etc., etc... %]' Text='See Details' ]
[/asp:HyperLink]
[/ItemTemplate]

I can click on each occurance of "See Details" and it links through perfectly to the various results I want to see. But now I need to get the value of strString03 (e.g., Typ1 or Typ2) to display as the Text for the HyperLink instead of just displaying the words 'See Details'. I need to do something like:

[ItemTemplate]
[asp:HyperLink runat="server" NavigateUrl= '[%# "docs.aspx?NAME=" + etc., etc... %]' Text=[%# "actual.value.of.strString03 %]' ]
[/asp:HyperLink]
[/ItemTemplate]

Or whatever needs to be done in order to display the link text I want.

Anyone??

Thanks much!!!
QuestionXmlValidatingReader problem xs:date Pin
IsaacB22-Nov-05 8:31
IsaacB22-Nov-05 8:31 
QuestionCache question Pin
Texas_CodeMaster22-Nov-05 7:57
Texas_CodeMaster22-Nov-05 7:57 
QuestionSystem.web.mail class not available from within a service? Pin
tthompson200722-Nov-05 5:26
tthompson200722-Nov-05 5:26 
AnswerRe: System.web.mail class not available from within a service? Pin
Dave Kreskowiak22-Nov-05 15:29
mveDave Kreskowiak22-Nov-05 15:29 
GeneralRe: System.web.mail class not available from within a service? Pin
tthompson200723-Nov-05 3:45
tthompson200723-Nov-05 3:45 
QuestionSending Email With an Attachment Pin
multi_plu22-Nov-05 1:23
multi_plu22-Nov-05 1:23 
AnswerRe: Sending Email With an Attachment Pin
TadejK22-Nov-05 1:45
TadejK22-Nov-05 1:45 
AnswerRe: Sending Email With an Attachment Pin
ToddHileHoffer23-Nov-05 2:54
ToddHileHoffer23-Nov-05 2:54 
QuestionRuntime Error '713' Pin
°[Halo]°21-Nov-05 23:31
°[Halo]°21-Nov-05 23:31 
AnswerRe: Runtime Error '713' Pin
Dave Kreskowiak22-Nov-05 15:27
mveDave Kreskowiak22-Nov-05 15:27 
QuestionRe: Runtime Error '713' Pin
°[Halo]°23-Nov-05 2:13
°[Halo]°23-Nov-05 2:13 
AnswerRe: Runtime Error '713' Pin
Dave Kreskowiak23-Nov-05 2:31
mveDave Kreskowiak23-Nov-05 2:31 
QuestionCrystal Reports - Rounded corners problem in Box object Pin
prathiba_naresh21-Nov-05 23:27
prathiba_naresh21-Nov-05 23:27 
QuestionWant to get the Type of file? Pin
raheeli21-Nov-05 20:44
raheeli21-Nov-05 20:44 
QuestionRe: Want to get the Type of file? Pin
Briga21-Nov-05 22:01
Briga21-Nov-05 22:01 
AnswerRe: Want to get the Type of file? Pin
raheeli21-Nov-05 23:24
raheeli21-Nov-05 23:24 
AnswerRe: Want to get the Type of file? Pin
Briga22-Nov-05 0:13
Briga22-Nov-05 0:13 

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.