Click here to Skip to main content
15,921,959 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Button Images Pin
Britnt71-Oct-04 8:25
Britnt71-Oct-04 8:25 
Generalnetworkaccess Pin
jeeju1-Oct-04 2:33
jeeju1-Oct-04 2:33 
GeneralRe: ordnetworkaccess Pin
Dave Kreskowiak1-Oct-04 2:55
mveDave Kreskowiak1-Oct-04 2:55 
GeneralRe: networkaccess Pin
jeeju5-Oct-04 1:36
jeeju5-Oct-04 1:36 
Questionwhat the error is ... anyone could help?? Pin
Fired Dragon1-Oct-04 1:32
Fired Dragon1-Oct-04 1:32 
AnswerRe: what the error is ... anyone could help?? Pin
Gavin Jeffrey1-Oct-04 2:18
Gavin Jeffrey1-Oct-04 2:18 
GeneralRe: what the error is ... anyone could help?? Pin
Fired Dragon1-Oct-04 2:31
Fired Dragon1-Oct-04 2:31 
Generalclient-side functionality Pin
pyb30-Sep-04 23:10
pyb30-Sep-04 23:10 
Hi all,

Hope this is an easy one...
Here is the problem:

In the code-behind, I have dynamically built a series of tablecells each with a Literal control containing an image.
----------------------------------------------------------------------------
dim litCont as New System.Web.UI.WebControls.Literal()
dim strValue as string = "testString"
dim contStr as string = "<img name='pix1' onMouseDown='doMouseDown("& strValue &")' src='images/pix1.jpg' />"
litCont.text = contStr
objCell.Controls.Add(litCont)
----------------------------------------------------------------------------


When the user clicks on any of the images it fires the JavaScript function doMouseDown() which receives a string parameter.
QUESTION: How could I then pass the value of the str parameter to the Label Control ("legend") in "Form1" so that the label may be updated?
I have simplified the structure of the form
----------------------------------------------------------------------------
<html>
<head>
<script language="javaScript">
<!--
function doMouseDown(str){
// code stuff here

}
-->
</script>
</head>
<body >
<form id="form1" runat="server">
<asp:table id="mainTable" runat="server" >
<asp:tableRow runat="server">
<asp:tableCell runat="server">

<asp:label id="legend" runat="server" />

</asp:tableCell>
</asp:tableRow>
</asp:table>
</form>
</body>
</html>
------------------------------------------------------------------------

Thank you
GeneralRe: client-side functionality Pin
Dave Kreskowiak1-Oct-04 2:53
mveDave Kreskowiak1-Oct-04 2:53 
GeneralRe: client-side functionality Pin
pyb1-Oct-04 10:39
pyb1-Oct-04 10:39 
GeneralRe: client-side functionality Pin
DADANEPAL1-Oct-04 19:01
DADANEPAL1-Oct-04 19:01 
GeneralRe: client-side functionality Pin
pyb1-Oct-04 22:38
pyb1-Oct-04 22:38 
GeneralAnnoying &quot;Dong&quot; sound Pin
genosis30-Sep-04 20:52
genosis30-Sep-04 20:52 
GeneralRe: Annoying &quot;Dong&quot; sound Pin
Purple Monk30-Sep-04 23:31
Purple Monk30-Sep-04 23:31 
GeneralRe: Annoying &quot;Dong&quot; sound Pin
Anonymous1-Oct-04 2:29
Anonymous1-Oct-04 2:29 
GeneralRe: Annoying &quot;Dong&quot; sound Pin
dave_g221-Oct-04 21:19
dave_g221-Oct-04 21:19 
GeneralAPI Declarations Pin
moyin30-Sep-04 15:24
moyin30-Sep-04 15:24 
GeneralRe: API Declarations Pin
Purple Monk1-Oct-04 0:37
Purple Monk1-Oct-04 0:37 
GeneralRe: API Declarations Pin
moyin4-Oct-04 17:16
moyin4-Oct-04 17:16 
GeneralDll declaration Pin
moyin30-Sep-04 15:18
moyin30-Sep-04 15:18 
GeneralRe: Dll declaration Pin
Dave Kreskowiak30-Sep-04 18:22
mveDave Kreskowiak30-Sep-04 18:22 
GeneralRe: Dll declaration Pin
moyin4-Oct-04 17:18
moyin4-Oct-04 17:18 
GeneralVideos in VB.Net Pin
awesome0430-Sep-04 15:08
awesome0430-Sep-04 15:08 
GeneralRe: Videos in VB.Net Pin
Christian Graus30-Sep-04 15:15
protectorChristian Graus30-Sep-04 15:15 
GeneralVB.Net and Runtime Pin
maykut209930-Sep-04 14:36
maykut209930-Sep-04 14:36 

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.