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

ASP.NET

 
QuestionUsing javascript functions ? Pin
kindman_nb26-Apr-08 9:46
kindman_nb26-Apr-08 9:46 
AnswerRe: Using javascript functions ? Pin
Blue_Boy26-Apr-08 10:12
Blue_Boy26-Apr-08 10:12 
GeneralRe: Using javascript functions ? Pin
kindman_nb26-Apr-08 20:53
kindman_nb26-Apr-08 20:53 
AnswerRe: Using javascript functions ? Pin
Christian Graus26-Apr-08 11:15
protectorChristian Graus26-Apr-08 11:15 
GeneralRe: Using javascript functions ? Pin
kindman_nb26-Apr-08 20:54
kindman_nb26-Apr-08 20:54 
AnswerRe: Using javascript functions ? Pin
samMaster27-Apr-08 0:18
samMaster27-Apr-08 0:18 
GeneralRe: Using javascript functions ? Pin
kindman_nb27-Apr-08 5:02
kindman_nb27-Apr-08 5:02 
GeneralRe: Using javascript functions ? Pin
samMaster27-Apr-08 18:44
samMaster27-Apr-08 18:44 
No no, HyperTest.NavigateUrl is wrong.
Say, I test your code in this way:
<br />
<script type="text/javascript" language="javascript"><br />
    function PopUpQtyWindow(prodID)<br />
    {<br />
        alert(prodID);<br />
    }<br />
</script><br />
<asp:linkbutton id="HyperTest" runat="server" onclick="testClick" text="Test"></asp:linkbutton><br />


And in behind:
<br />
    protected void testClick(object sender, EventArgs e)<br />
    {<br />
        int prodID = 1;<br />
        Page.ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "PopUpQtyWindow(" + prodID + ");", true);<br />
    }<br />


This code is working on both IE and firefox browsers.
GeneralRe: Using javascript functions ? Pin
kindman_nb28-Apr-08 3:53
kindman_nb28-Apr-08 3:53 
GeneralAccessing a DropDownList inside a DetailsView Pin
Ekjon26-Apr-08 7:07
Ekjon26-Apr-08 7:07 
GeneralRe: Accessing a DropDownList inside a DetailsView Pin
AlexeiXX326-Apr-08 7:34
AlexeiXX326-Apr-08 7:34 
GeneralRe: Accessing a DropDownList inside a DetailsView Pin
Ekjon26-Apr-08 10:02
Ekjon26-Apr-08 10:02 
GeneralRe: Accessing a DropDownList inside a DetailsView Pin
AlexeiXX327-Apr-08 18:42
AlexeiXX327-Apr-08 18:42 
GeneralProblem with DataTable Pin
Member 456754126-Apr-08 1:55
Member 456754126-Apr-08 1:55 
GeneralRe: Problem with DataTable Pin
N a v a n e e t h26-Apr-08 5:27
N a v a n e e t h26-Apr-08 5:27 
GeneralRe: Problem with DataTable Pin
Christian Graus26-Apr-08 11:18
protectorChristian Graus26-Apr-08 11:18 
GeneralRe: Problem with DataTable Pin
N a v a n e e t h28-Apr-08 20:21
N a v a n e e t h28-Apr-08 20:21 
GeneralRe: Problem with DataTable Pin
Christian Graus28-Apr-08 20:42
protectorChristian Graus28-Apr-08 20:42 
GeneralRe: Problem with DataTable Pin
N a v a n e e t h28-Apr-08 22:59
N a v a n e e t h28-Apr-08 22:59 
GeneralRe: Problem with DataTable Pin
Christian Graus28-Apr-08 23:58
protectorChristian Graus28-Apr-08 23:58 
GeneralRe: Problem with DataTable Pin
N a v a n e e t h29-Apr-08 0:48
N a v a n e e t h29-Apr-08 0:48 
GeneralRe: Problem with DataTable Pin
Christian Graus26-Apr-08 11:20
protectorChristian Graus26-Apr-08 11:20 
General[Message Deleted] Pin
Member 456754126-Apr-08 0:38
Member 456754126-Apr-08 0:38 
GeneralRe: Shared Access Specifier Pin
Christian Graus26-Apr-08 0:44
protectorChristian Graus26-Apr-08 0:44 
GeneralRe: Shared Access Specifier Pin
Christian Graus26-Apr-08 13:45
protectorChristian Graus26-Apr-08 13: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.