getting session id from iframe

Aug 4 2006 4:45 PM
i have an .aspx page having form in it. This form has iframe in it and iframe source is src="http://www.yahoo.com". Now what im trying to do is to get the session id of iframe source link. Please note that i want to get the session id of iframe source link which is www.yahoo.com not the session of my .aspx page.

My code is here:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

<title>Untitled Page</title>

</head>

<body>

<form id="form1" method="post" name="frm" runat="server">

<div>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp;<br />

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

<br />

<br />

<br />

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<asp:Label ID="lblDepart"

runat="server" Text="Departure" Width="64px"></asp:Label>

&nbsp; &nbsp; &nbsp; &nbsp;

<asp:DropDownList ID="ddlDepart" runat="server" Width="200px" AutoPostBack="True">

<asp:ListItem>Select Departure</asp:ListItem>

<asp:ListItem>Abbotsford</asp:ListItem>

<asp:ListItem>Brandon</asp:ListItem>

<asp:ListItem>Calgary</asp:ListItem>

<asp:ListItem>Comox</asp:ListItem>

<asp:ListItem>Edmonton</asp:ListItem>

<asp:ListItem>Fredericton</asp:ListItem>

<asp:ListItem>Halifax</asp:ListItem>

<asp:ListItem>Hamilton</asp:ListItem>

<asp:ListItem>Kelowna</asp:ListItem>

<asp:ListItem>Kitchner</asp:ListItem>

<asp:ListItem Value="London">London(Ontario)</asp:ListItem>

<asp:ListItem>Moncton</asp:ListItem>

<asp:ListItem Value="Montreal">Montreal(Trudeau)</asp:ListItem>

<asp:ListItem>Ottawa</asp:ListItem>

<asp:ListItem>Prince George</asp:ListItem>

<asp:ListItem>Quebec</asp:ListItem>

<asp:ListItem>Regina</asp:ListItem>

<asp:ListItem>Saskatoon</asp:ListItem>

<asp:ListItem>St-Johns</asp:ListItem>

<asp:ListItem>Sudbury</asp:ListItem>

<asp:ListItem>Thunder Bay</asp:ListItem>

<asp:ListItem>Toronto</asp:ListItem>

<asp:ListItem>Vancouver</asp:ListItem>

<asp:ListItem>Victoria</asp:ListItem>

<asp:ListItem>Windsor</asp:ListItem>

<asp:ListItem>Winnipeg</asp:ListItem>

</asp:DropDownList><br />

<br />

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;

&nbsp;

<asp:Label ID="lblDest" runat="server" Text="Destination" Width="64px"></asp:Label>

&nbsp; &nbsp; &nbsp;&nbsp;

<asp:DropDownList ID="ddlDest"

runat="server" Width="200px" AutoPostBack="True">

</asp:DropDownList>&nbsp;<br />

<br />

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

<asp:Label ID="Label1" runat="server" Text="Date" Width="64px"></asp:Label>

&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<asp:DropDownList ID="ddlDate" runat="server" Width="32px">

<asp:ListItem>1</asp:ListItem>

<asp:ListItem>2</asp:ListItem>

<asp:ListItem>3</asp:ListItem>

<asp:ListItem>4</asp:ListItem>

<asp:ListItem>5</asp:ListItem>

<asp:ListItem>6</asp:ListItem>

<asp:ListItem>7</asp:ListItem>

<asp:ListItem>8</asp:ListItem>

<asp:ListItem>9</asp:ListItem>

<asp:ListItem>10</asp:ListItem>

<asp:ListItem>11</asp:ListItem>

<asp:ListItem>12</asp:ListItem>

<asp:ListItem>13</asp:ListItem>

<asp:ListItem>14</asp:ListItem>

<asp:ListItem>15</asp:ListItem>

<asp:ListItem>16</asp:ListItem>

<asp:ListItem>17</asp:ListItem>

<asp:ListItem>18</asp:ListItem>

<asp:ListItem>19</asp:ListItem>

<asp:ListItem>20</asp:ListItem>

<asp:ListItem>21</asp:ListItem>

<asp:ListItem>22</asp:ListItem>

<asp:ListItem>23</asp:ListItem>

<asp:ListItem>24</asp:ListItem>

<asp:ListItem>25</asp:ListItem>

<asp:ListItem>26</asp:ListItem>

<asp:ListItem>27</asp:ListItem>

<asp:ListItem>28</asp:ListItem>

<asp:ListItem>29</asp:ListItem>

<asp:ListItem>30</asp:ListItem>

<asp:ListItem>31</asp:ListItem>

</asp:DropDownList>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<asp:DropDownList ID="ddlMonth" runat="server"

Width="112px">

<asp:ListItem>January</asp:ListItem>

<asp:ListItem>February</asp:ListItem>

<asp:ListItem>March</asp:ListItem>

<asp:ListItem>April</asp:ListItem>

<asp:ListItem>May</asp:ListItem>

<asp:ListItem>June</asp:ListItem>

<asp:ListItem>July</asp:ListItem>

<asp:ListItem>August</asp:ListItem>

<asp:ListItem>September</asp:ListItem>

<asp:ListItem>Octuber</asp:ListItem>

<asp:ListItem>November</asp:ListItem>

<asp:ListItem>December</asp:ListItem>

</asp:DropDownList><br />

<br />

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp;

<asp:Button ID="btnSubmit" runat="server" Text="Submit" /><br />

<br />

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

<asp:Label ID="lblText" runat="server" Width="288px"></asp:Label><br />

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

<br /></div>

</form>

<iframe id="frame" name="frame" width=450 height="500" frameborder="no" runat=server src="http://sun.sax.softvoyage.com/cgi-bin/... " style="width: 920px">

</iframe>

</body>

</html>

Help me out guyssssss!! as im the only web developer working for this company with no guidance

Best Regards
Shaukat Waqar