Click here to Skip to main content
15,920,596 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

I am opening a page on the clicking of a link in a Gridview.
And I am using the following javascript code for that.

LinkButton l = (LinkButton)e.Row.FindControl("linPpo");
           l.Attributes.Add("onclick", "Javascript:window.open('Final_Arrear.aspx?ppo=" + l.Text + "')");



But I am getting the following error:
'The resource cannot be found.'

It is because the Page Final_Arrear is contained in another folder.How to specify the
path for that?

Bye.
Posted
Comments
Sergey Alexandrovich Kryukov 19-Sep-11 1:57am    
If you pay so little attention to spell out a title correctly, how can you do software development? :-)
--SA

Specifying Paths for Resources
[^]

If the Final_Arrear.aspx is in some NewFolder then
/NewFolder/Final_Arrear.aspx
 
Share this answer
 
Is that JavaScript code, as you claim: "the following javascript code"? No. This is C# code. If you fail to see the difference, I don't know how to explain you anything. Even if the only problem is your sloppy way of writing questions, the problem is rather severe.

Well, path is specified relative to the page using it. Do you know such elements of the path like '.', '..', '/'? :-)

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900