R
Radu
Hi, I have a "select" control named "cboSelectScorecardType", defined
as
<select id="cboSelectScorecardType"
size="1"
runat="server">
</select>
which shows a list of files on my drive. It does not post back, nor do
I want it to. After the user selects a document in the combo, I want a
hyperlink defined in the same page as
<asp:HyperLink
Target="_blank"
NavigateUrl="javascript:Concat();"
ID="cmdOpenScorecardPreview"
Text="here"
runat="server">
</asp:HyperLink>
to have the NavigateURL property set to whatever the combo points to,
so that the user can click on it to preview the document selected in
the combo, so therefore I tried to use this:
function MyConcat()
{
return String.Concat(
"~",
"\Scorecard Previews\",
cboSelectScorecardType.Items(cboSelectScorecardType.SelectedIndex).ToString,
".doc"
);
}
I confess I don't really know JavaScript.
What am I doing wrong ? Is there a simpler way to do this ? There is no
server event I can write my code into...
Thanks, Alex
as
<select id="cboSelectScorecardType"
size="1"
runat="server">
</select>
which shows a list of files on my drive. It does not post back, nor do
I want it to. After the user selects a document in the combo, I want a
hyperlink defined in the same page as
<asp:HyperLink
Target="_blank"
NavigateUrl="javascript:Concat();"
ID="cmdOpenScorecardPreview"
Text="here"
runat="server">
</asp:HyperLink>
to have the NavigateURL property set to whatever the combo points to,
so that the user can click on it to preview the document selected in
the combo, so therefore I tried to use this:
function MyConcat()
{
return String.Concat(
"~",
"\Scorecard Previews\",
cboSelectScorecardType.Items(cboSelectScorecardType.SelectedIndex).ToString,
".doc"
);
}
I confess I don't really know JavaScript.
What am I doing wrong ? Is there a simpler way to do this ? There is no
server event I can write my code into...
Thanks, Alex