| Author: Pavan Ravi 13 Oct 2008 | Member Level: Gold | Rating: Points: 1 |
what is the error u r getting...
can i see the coding ... to help u more ...
|
| Author: sindhu 13 Oct 2008 | Member Level: Silver | Rating: Points: 6 |
dropdownlist pblm(autopostback pblm) In Source page
codings are
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Rate.aspx.cs" Inherits="Rate" EnableEventValidation ="true" %>
<%@Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %> <!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 id="Head1" runat="server"> <title>Rate Page</title> </head> <body topmargin="0" leftmargin="0" bgproperties="fixed" background="../aboutrightdarkblue.jpg" bgcolor="#808080" > <form id="Form1" runat="server" > <div align="center"> <center> <table style="border-collapse: collapse;" id="AutoNumber1" border="0" bordercolor="#111111" cellpadding="0" cellspacing="0" width="81%"> <tbody><tr> <td width="94%"> <table width="100%" height="760" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" bgcolor="#ffffff" id="AutoNumber6" style="border-collapse: collapse;"> <tbody><tr> <td height="96" valign="top" style="width: 777px"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="12%" style="height: 179px"> <embed src="../center flash.swf" width="785px" height="175px"></embed> </td> </tr> </table></td> </tr> <tr> <td height="436" valign="top" style="width: 777px"> <div align="center"> <table style="border-collapse: collapse;" id="AutoNumber2" border="0" bordercolor="#111111" cellpadding="0" cellspacing="0" height="436" width="100%"> <tbody><tr> <td height="61" valign="top" align="center" style="width: 74%">
<table width="100%" border="0" cellspacing="0" cellpadding="6"> <tr> <td><span class="menubelt height=50"><a href="../default.html" class="ph"><strong>Home</strong></a> | <a href="../services.html" class="ph"><strong>Services</strong></a> | <a href="../expertise.html" class="ph"><strong>Expertise</strong></a> | <a href="../useful.html" class="ph"><strong>Useful Links </strong></a> | <a href="../crosstrade.html" class="ph"><strong>Cross Trade </strong></a> |<a href="../contactus.html" class="ph"><strong> Contact Us </strong></a> </span> </td> </tr> </table> <marquee behavior="scroll" bgcolor="#DDE2E8" width="100%" scrolldelay="150" class="roll"> <font color="#996633" >World wide coverage with global Network, On time job acccomplishment, Pre and post shipment tracking skilled , service minded personel corporate clients across world customized solutions, Wide range of Serivces, Door to Door Services, Online Computeraized Documentation.</font></marquee> </td> </tr> <tr> <td height="126" valign="top" style="width: 74%"> <div align="center"> <center> <table style="border-collapse: collapse;" id="AutoNumber4" border="0" bordercolor="#111111" cellpadding="0" cellspacing="0" width="98%"> <tbody><tr> <td width="98%" class="hdr" style="height: 24px">FREIGHT INFORMATION</td> </tr> <tr> <td colspan="2"><font color="#000000"></font> <table border="0" cellpadding="0" cellspacing="0" height="330" width="100%"> <tbody><tr> <td style="vertical-align: top;" height="330" width="100%"> <table border="1" cellpadding="0" cellspacing="0" height="327" width="100%"> <tbody><tr> <td align="center" style="vertical-align: top;" height="325" width="100%"><br> <table width="671" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="5" style="height: 25px"><img src="../business.jpg" width="145" height="18"></td> <td width="39" style="height: 25px"> </td> </tr> <tr> <td colspan="6" class="txt" style="height: 43px"> <table width ="100%" border ="0" cellpadding ="0" cellspacing ="0"> <tr align ="center" > <td width ="35%"> </td> </tr> </table> </td> </tr> <tr> <td colspan="6" class="cityh"> <div id="operation7"> <table width="660" align="center" height="171" border="0" cellpadding="0" cellspacing="3"><tr> <td height="27" class="txt" align ="left" style="width: 256px" ><font color="blue" size="4" ><span style="font-size: 13pt">RATE INPUT BY SERVICE PROVIDERS</span></font></td> <td style="width: 176px"> </td> <td class="txt" style="width: 152px"> </td> <td style="width: 198px"> </td> </tr> <tr> <td class="txt" align="left" style="height: 27px; width: 256px;">Agents / Liners / Nvocc : </td> <td align="left" style="width: 176px; height: 27px;"> <asp:DropDownList ID="Select4" runat="server" Width="130px"> <asp:ListItem>- select -</asp:ListItem> <asp:ListItem>Agent</asp:ListItem> <asp:ListItem>Liners</asp:ListItem> <asp:ListItem>Nvocc</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="Select4" ErrorMessage="*" Width="10px" InitialValue="-select-"></asp:RequiredFieldValidator></td> <td class="txt" style="height: 27px; width: 152px;"> </td> <td style="width: 198px; height: 27px;"> </td> </tr> <tr> <td class="txt" style="height: 24px; width: 256px;" align="left"> Sales person name : </td> <td style="height: 24px; width: 176px;" align="left"><input name="name" type="text" id="Text14" runat="server" style="width: 131px" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="Text14" ErrorMessage="*" Width="10px"></asp:RequiredFieldValidator></td> <td style="height: 24px; width: 152px;" align="left"><span class="txt">Company name : </span></td> <td style="height: 24px; width: 198px;" align="left"><input name="company" type="text" id="Text15" runat="server" style="width: 149px" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="Text15" ErrorMessage="*" Width="10px"></asp:RequiredFieldValidator></td> </tr> <tr> <td class="txt" align="left" style="width: 256px">Location :</td> <td align="left" style="width: 176px"><input name="location" type="text" id="location" runat="server" style="width: 131px" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="location" ErrorMessage="*" Width="10px"></asp:RequiredFieldValidator></td> <td class="txt" align="left" style="width: 152px">Telephone : </td> <td align="left" style="width: 198px"> <input name="tele" type="text" id="tele" runat="server" style="width: 147px" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="tele" ErrorMessage="*" Width="10px"></asp:RequiredFieldValidator> <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="tele" ErrorMessage="*" MaximumValue="100000000000" MinimumValue="1" Type="Double"></asp:RangeValidator></td> </tr> <tr> <td class="txt" align="left" style="width: 256px">Fax : </td> <td align="left" style="width: 176px"><input name="fax" type="text" id="fax" runat="server" style="width: 131px" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="fax" ErrorMessage="*" Width="10px"></asp:RequiredFieldValidator></td> <td class="txt" align="left" style="width: 152px">Mobile : </td> <td align="left" style="width: 198px"><input name="mob" type="text" id="mob" runat="server" style="width: 147px" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="mob" ErrorMessage="*" Width="10px"></asp:RequiredFieldValidator> <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="tele" ErrorMessage="*" MaximumValue="100000000000" MinimumValue="1" Type="Double"></asp:RangeValidator></td> </tr> <tr> <td class="txt" align="left" style="width: 256px">Email</td> <td align="left" style="width: 176px"><input name="email" type="text" id="email" runat="server" style="width: 131px" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="email" ErrorMessage="*" Width="10px"></asp:RequiredFieldValidator></td> <td class="txt" style="width: 152px"> </td> <td style="width: 198px"></td> </tr> <tr> <td class="txt" align="left" style="height: 20px; width: 256px;">Type of Enquiry : </td> <td class="txt" style="width: 176px; height: 20px" align="left"> <asp:DropDownList ID="drptype" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drptype_SelectedIndexChanged" Width="107px"> <asp:ListItem>-SELECT-</asp:ListItem> <asp:ListItem>AIR</asp:ListItem> <asp:ListItem>OCEAN</asp:ListItem> </asp:DropDownList></td> <td style="height: 20px; width: 152px;"><div align="center" class="txt"> </div></td> <td style="height: 20px; width: 198px;"> </td> </tr> <tr> <td class="txt" style="height: 10px; width: 256px;" align="left"> </td> <td style="height: 10px; width: 176px;"> </td> <td style="height: 10px; width: 152px;"> </td> <td style="height: 10px; width: 198px;"> </td> </tr> <tr> <td colspan="4" class="txt"> </td> </tr> </table> </div> </td> </tr> </table></td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> <tr> <td colspan="2"> </td> </tr> </tbody></table> </center> </div> </td></tr> </tbody></table> </div> </td> </tr> <tr> <td height="160" bgcolor="" class="style13" valign="top" style="width: 777px"> <div align="center"> <div><strong> <br /> INTEGRATED BUSINESS NETWORK<br /> </strong><strong> # 7, Officer Colony, Anna Nagar</strong></div> <div class="office"> <div><strong> West Extn Mugapair</strong></div> <div><strong> Chennai - 600 101</strong></div> <div><strong> Tel : +91 44 42846183</strong></div> <div><strong> Fax: +91 44 26542038</strong></div> </div> <div class="office">Email : <a href="mailto:vincent@ibnin.in" class="link">vincent@ibnin.in</a></div> <div class="office">
</div> <div class="office"><u>BRANCHES AT
</u></div> <div class="office"><u>
</u> </div> <div class="office">DELHI / MUMBAI / BANGALORE / TUTICORIN / COCHIN / CALCUTTA / HALDIA / MUNDRA / KANDLA</div> </div> <p align="center"> </p></td> </tr> <tr> <td height="28" bgcolor="#80D2FF" class="style15" style="width: 777px"> <table width="751" height="19" border="0" align="center" cellpadding="0" cellspacing="0" style="font:Verdana, Arial, Helvetica, sans-serif; color:#333333; font-size:11px;"> <tr> <td width="349" style="height: 13px" ><span> © copyright 2008. Triumph . All rights reserved.</span></td> <td width="391" align="right" style="height: 13px"></td> </tr> </table></td> </tr> </tbody></table> </td> </tr> </tbody></table> </center> </div> </form> </body> </html>
.cs file is
protected void drptype_SelectedIndexChanged(object sender, EventArgs e) { Session["agent"] = Select4.Text; Session["Sales"] = Text14.Value; Session["Company"] = Text15.Value; Session["Location"] = location.Value; Session["Telephone"] = tele.Value; Session["Fax"] = fax.Value; Session["Mobile"] = mob.Value; Session["Email"] = email.Value; Text14.Value = ""; Text15.Value = ""; location.Value = ""; tele.Value = ""; fax.Value = ""; mob.Value = ""; email.Value = ""; if (drptype.SelectedIndex == 1) { Response.Redirect("Rateair.aspx"); } else if (drptype.SelectedIndex == 2) { Response.Redirect("rateocean.aspx"); } }
|