Entire url of popup? using java script? [Resolved]

Posted by Naveenmanam under JavaScript on 4/29/2010 | Views : 1237 | Status : [Member] | Replies : 3
when i click on customer text box pop up is coming ok for that it has parameters?
lov.aspx is popup
same pop up when clicked on employee text box its opening ok.i want to catch querystring?
lov.apsx?lovindex=1 for customer
and lov.aspx?lovindex=2 for employee
i want value of lovindex using java script

NaveenKumar


Responses

Posted by: Naveenmanam on: 4/30/2010 [Member] Starter

Up
0
Down

Resolved
i got the answer thank you pavan

NaveenKumar

Naveenmanam, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Pavanandey on: 4/29/2010 [Member] Bronze

Up
0
Down
<asp:Button ID="a1" runat="server" Text="aa" onclick="a1_Click" />

<script language="javascript" type="text/javascript">
function copy() {
var Qustringval=location.search.substring(1,location.search.length);
alert(Qustringval);
}
</script>

let ur url be this one
http://localhost:3618/APP/Test.aspx?a=1&b=2

in page attach javascript function to button click event
a1.Attributes.Add("OnClick", "javascript:return copy();");

when ur click on the button u will get the result as a=1&b=2
by splitting the string u can get the value

Thanks
Pavan Kumar
Mark Answer if this fits the need

Naveenmanam, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naveenmanam on: 4/29/2010 [Member] Starter

Up
0
Down
thank you pavan i willl try now..

NaveenKumar

Naveenmanam, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response