Click here to Skip to main content
15,906,645 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
when user clicks on the submit button(Asp.Net) all the values inserted by him should show in popup window but in tabular format like
CSS
 and in that new window names should comes like
1.Name:
2.DOB:
3.AGE:
4.ADD:
5.Phn:
5.Country:
6.State:
7.City:
along with are u sure? Ok button and cancel button on the very same page.

How can i do it with my existing Js code which is as follows:
C#
function callall()
    {
        var Name = document.getElementById("TextBox1").value;
        var DOB = document.getElementById("TextBox2").value;
        var Add = document.getElementById("TextBox3").value;
        var phn = document.getElementById("TextBox4").value;
        var ddlCountry = document.getElementById("DropDownList1");
        var Country = ddlCountry.options[ddlCountry.selectedIndex].text;
        var ddlState = document.getElementById("DropDownList2");
        var State = ddlState.options[ddlState.selectedIndex].text;
        var ddlCity = document.getElementById("DropDownList3");
        var City = ddlCity.options[ddlCity.selectedIndex].text;
        var msg = "Name: " + Name + ",DOB: " + DOB + ",Add: " + Add + ", phno: " + phn + ",Country: " + Country + ",State: " + State + ",City: " + City;
        return confirm(msg);
    }
Posted
Comments
Mahesh Bailwal 28-Jun-13 6:25am    
Where are you facing issue?
Rambo_Raja 28-Jun-13 6:37am    
thanks for replying...actually i want to open a new window when user click submit button using javascript..and that window must contain all these value that i m sending from web app...thanks...i dont know steps to do this....

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