1

index.cs
If i post one value below method works.

Page.RegisterClientScriptBlock("Pass", "<script>pass('" + sle_password.Text.Trim() + "');</script>");

If i post multiple value like below it does not work

Page.RegisterClientScriptBlock("Pass", "<script>pass('" + sle_password.Text.Trim() + "','" + sle_username.Text.Trim() + "','" + txt_reseller_ID.Text.Trim() + "')";</script>");

JS Code:

function pass(pass, usrname, resellerId) {
            alert(pass,usrnameresellerId);
        }

Edited first code

Where i miss in second part code ?

2
  • 1
    You have an extra double-quote in your second code snippet. Commented Feb 9, 2015 at 14:55
  • may you please post code i will accept best answer thanks Commented Feb 9, 2015 at 14:57

1 Answer 1

1

try this

Page.RegisterClientScriptBlock("Pass", "<script>pass('" + sle_password.Text.Trim() + "','" + sle_username.Text.Trim() + "','" + txt_reseller_ID.Text.Trim() + "');</script>");
Sign up to request clarification or add additional context in comments.

1 Comment

it is working i will accept best answer 5 minutes later stackover does not let me accept your answer as best :) thanks for solved problem

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.