Click here to Skip to main content
15,905,136 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: session variable Pin
Lexa19838-May-06 3:52
Lexa19838-May-06 3:52 
GeneralRe: session variable Pin
kuwl_mark8-May-06 18:35
kuwl_mark8-May-06 18:35 
QuestionProblems in loading an ActiveX object containing AXSpreadSheet web office component in a WebForm Pin
Aleemulhaq8-May-06 2:38
Aleemulhaq8-May-06 2:38 
QuestionSession Pin
kuwl_mark8-May-06 2:34
kuwl_mark8-May-06 2:34 
QuestionIIS metabase Error Pin
hasan19828-May-06 1:25
hasan19828-May-06 1:25 
Questionlanguge Pin
TAREQ F ABUZUHRI8-May-06 1:12
TAREQ F ABUZUHRI8-May-06 1:12 
AnswerRe: languge Pin
TAREQ F ABUZUHRI8-May-06 1:19
TAREQ F ABUZUHRI8-May-06 1:19 
QuestionError in asp.net Pin
tjpraveen238-May-06 0:13
tjpraveen238-May-06 0:13 
Hi,

I want to transfer string value from C# to javascript in asp.net.
For that, I am trying in two ways one is hidden variable and other is label tag but both are getting an error message.

Here the code:

Using hidden:

<script language = "C#" runat="server">
string img_name = "image1.jpg#image2.jpg#image3.jpg";
hide_imgname.value = img_name; // error: hide_imgname is not defined
</script>
<script language = "javascript">
string js_imgname = hide_imgname.value; // error: hide_imgname is not defined
</script>
.
.
.
<input type="hidden" name="hide_imgname"/>

Using label:

<script language = "C#" runat="server">
string img_name = "image1.jpg#image2.jpg#image3.jpg";
Message.Text = img_name; // Now here no error.
</script>
<script language = "javascript">
string js_imgname = Message.Text; // error: Message is not defined
</script>
.
.
.
.<asp:label id="Message" visible="false" runat="server"/>.

Please help me to sort out this problem.

Thanks

-- modified at 6:16 Monday 8th May, 2006
AnswerRe: Error in asp.net Pin
Bhasker Pinninti8-May-06 2:07
Bhasker Pinninti8-May-06 2:07 
Questionimage upload in asp.net 1.1 Pin
amaneet8-May-06 0:08
amaneet8-May-06 0:08 
QuestionProblem with Dev server. Pin
Bhasker Pinninti8-May-06 0:05
Bhasker Pinninti8-May-06 0:05 
QuestionHow to incorporate the changes to the dataset from database? Pin
jjsforyou8-May-06 0:02
jjsforyou8-May-06 0:02 
AnswerRe: How to incorporate the changes to the dataset from database? Pin
ssoffline8-May-06 0:47
ssoffline8-May-06 0:47 
Questiondatalist in asp.net 1.1 Pin
amaneet7-May-06 22:54
amaneet7-May-06 22:54 
QuestionAutoLoad Textboxes Pin
Commickey7-May-06 22:53
Commickey7-May-06 22:53 
AnswerRe: AutoLoad Textboxes Pin
ssoffline8-May-06 0:40
ssoffline8-May-06 0:40 
GeneralRe: AutoLoad Textboxes Pin
Commickey8-May-06 0:45
Commickey8-May-06 0:45 
QuestionDinamic show of price Pin
papa19807-May-06 22:05
papa19807-May-06 22:05 
AnswerRe: Dinamic show of price Pin
Guffa7-May-06 22:48
Guffa7-May-06 22:48 
GeneralRe: Dinamic show of price Pin
papa19807-May-06 23:04
papa19807-May-06 23:04 
Questionasp.net 2.0 logout Pin
fmardani7-May-06 21:26
fmardani7-May-06 21:26 
AnswerRe: asp.net 2.0 logout Pin
ssoffline8-May-06 1:01
ssoffline8-May-06 1:01 
GeneralRe: asp.net 2.0 logout Pin
fmardani8-May-06 2:51
fmardani8-May-06 2:51 
QuestionEditing Pivot table data Pin
sohne7-May-06 21:15
sohne7-May-06 21:15 
Questionconverting Pin
ptvce7-May-06 20:56
ptvce7-May-06 20:56 

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.