Click here to Skip to main content
15,921,530 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionglobal database connection Pin
PaulaM20-Aug-07 5:47
PaulaM20-Aug-07 5:47 
AnswerRe: global database connection Pin
Eduard Keilholz20-Aug-07 6:01
Eduard Keilholz20-Aug-07 6:01 
QuestionPassing VB variables to Javascript code Pin
beish120-Aug-07 5:00
beish120-Aug-07 5:00 
AnswerRe: Passing VB variables to Javascript code Pin
peacefulmember20-Aug-07 6:06
peacefulmember20-Aug-07 6:06 
GeneralRe: Passing VB variables to Javascript code Pin
beish120-Aug-07 6:44
beish120-Aug-07 6:44 
GeneralRe: Passing VB variables to Javascript code Pin
peacefulmember20-Aug-07 6:57
peacefulmember20-Aug-07 6:57 
GeneralRe: Passing VB variables to Javascript code Pin
beish120-Aug-07 12:59
beish120-Aug-07 12:59 
AnswerRe: Passing VB variables to Javascript code Pin
Michael Sync20-Aug-07 7:09
Michael Sync20-Aug-07 7:09 
As I said here ~



you can use server-side hidden field to communicate between client-side and server-side.

<input id="Hidden1" type="hidden" runat="server"/>



In Form_load
<br />
protected void Page_Load(object sender, EventArgs e)<br />
    {<br />
        Hidden1.Value = "13";<br />
    }



You can set like that..

In Client-side ~

<script language="javascript" type="text/javascript"><br />
      function getvalue(){<br />
        var var1 = document.getElementById('Hidden1').value;<br />
        //do something.<br />
      }<br />
    </script><br />




Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)

If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. Smile | :)

GeneralRe: Passing VB variables to Javascript code Pin
beish120-Aug-07 13:01
beish120-Aug-07 13:01 
AnswerRe: Passing VB variables to Javascript code Pin
Rama Krishna Vavilala20-Aug-07 7:16
Rama Krishna Vavilala20-Aug-07 7:16 
GeneralRe: Passing VB variables to Javascript code Pin
beish120-Aug-07 13:02
beish120-Aug-07 13:02 
AnswerRe: Passing VB variables to Javascript code Pin
Christian Graus20-Aug-07 10:56
protectorChristian Graus20-Aug-07 10:56 
GeneralRe: Passing VB variables to Javascript code Pin
Guffa20-Aug-07 10:58
Guffa20-Aug-07 10:58 
GeneralRe: Passing VB variables to Javascript code Pin
beish120-Aug-07 13:00
beish120-Aug-07 13:00 
AnswerRe: Passing VB variables to Javascript code Pin
Guffa20-Aug-07 22:43
Guffa20-Aug-07 22:43 
QuestionHow to call 2 javascript function on Page Laod Pin
Sandeep Akhare20-Aug-07 4:39
Sandeep Akhare20-Aug-07 4:39 
AnswerRe: How to call 2 javascript function on Page Laod Pin
Talal Sultan20-Aug-07 5:02
Talal Sultan20-Aug-07 5:02 
AnswerRe: How to call 2 javascript function on Page Laod Pin
Guffa20-Aug-07 11:10
Guffa20-Aug-07 11:10 
GeneralRe: How to call 2 javascript function on Page Laod Pin
Sandeep Akhare20-Aug-07 19:23
Sandeep Akhare20-Aug-07 19:23 
QuestionAccess User Control property from Main page Pin
peacefulmember20-Aug-07 4:12
peacefulmember20-Aug-07 4:12 
AnswerRe: Access User Control property from Main page Pin
Talal Sultan20-Aug-07 4:59
Talal Sultan20-Aug-07 4:59 
GeneralRe: Access User Control property from Main page Pin
peacefulmember20-Aug-07 5:59
peacefulmember20-Aug-07 5:59 
Questionsession giving error Pin
saumitratamrakar20-Aug-07 3:54
saumitratamrakar20-Aug-07 3:54 
AnswerRe: session giving error Pin
Talal Sultan20-Aug-07 4:47
Talal Sultan20-Aug-07 4:47 
QuestionHow to set trust level Pin
swapnilek20-Aug-07 3:45
swapnilek20-Aug-07 3:45 

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.