Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; InfoPath.2)
Timestamp: Thu, 24 Mar 2011 10:15:38 UTC
 
Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
Line: 0
Char: 0
Code: 0
URI: http://208.109.91.116/Glopinion/Default.aspx
 

this page getting error on IE7 ,8 when we click on sign in button with incorrect input
Posted 22-Mar-11 22:53pm
Edited 22-Mar-11 23:04pm
Comments
Mika Wendelius at 23-Mar-11 5:04am
   
Unchecked "Ignore HTML in text"
SAKryukov at 23-Mar-11 17:31pm
   
Nothing anyone can tell without the HTML sample and the code.
--SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="GlopinionProject.WebForm3" %>
<%@ Register TagPrefix="asp" TagName="Imageloader" Src="~/ImageLoader.ascx" %>
<%@ Register TagPrefix="asp" TagName="top" Src="~/UserTop.ascx" %>
<%@ Register TagPrefix="asp" TagName="footer" Src="~/UserFooter.ascx" %>
<!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>Glopinion</title>
     <link href="CSS/design_style.css" rel="stylesheet" type="text/css" />
     <link rel="SHORTCUT ICON" href="images/icon.ico" />
    <script type="text/javascript" src="js/main.js"></script>
    <script type="text/javascript" src="scripts/ajax-dynamic-content.js"></script>
    <script type="text/javascript" src="scripts/table-rollover.js"></script>
    <script type="text/javascript" src="scripts/ajax.js"></script>
    <script type="text/javascript" src="scripts/ajax-tooltip.js"></script>
  <script type="text/javascript" src="js/jquery.js"></script>
    <!-- Following Code is for spinner -->
    <script type="text/javascript" src="js/tinybox.js"></script>
    <!--[if lt IE 7]> <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE7.js"></script> <![endif]-->
    <!--[if IE]><link rel="stylesheet" href="ie.css" type="text/css" media="screen, projection" /><![endif]-->
    <!--[if lt IE 8]> <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script> <![endif]-->
   <script type="text/javascript" src="js/jqueryInteger.js"></script>
    <script type="text/javascript">
    <!--
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }
//-->
    </script>
    <script type="text/javascript">
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
    </script>
    <script type="text/javascript">
      function ShowModalDialogDefaultPage()
             {
               var date=document.getElementById("<%=txtDay.ClientID%>").value+'/'+document.getElementById("<%=txtMonth.ClientID%>").value+'/'+document.getElementById("<%=txtYear.ClientID%>").value;
              Page_ClientValidate('SignUPDefaultPagePopup');
               if(!Page_IsValid)
               {
                    if((document.getElementById("<%=txtUserName.ClientID%>").value=="")&&(document.getElementById("<%=txtPassowrd.ClientID%>").value=="")&&(document.getElementById("<%=txtEmail.ClientID%>").value==""))
                    {
                         var content =document.getElementById('Diventervaliddate').innerHTML;
                         TINY.box.show(content,0,0,0,1);
                         return false;
                    }
                    else
                    {
                    if (document.getElementById("<%=txtUserName.ClientID%>").value=="")
                      {
                         document.getElementById("<%=Label4.ClientID %>").innerHTML='Enter User Name';
                         var content =document.getElementById('SummaryDivDefaultPagePopup12').innerHTML;
                         TINY.box.show(content,0,0,0,1);
                         return false;
                      }
                    if (document.getElementById("<%=txtPassowrd.ClientID%>").value=="")
                      {
                         document.getElementById("<%=Label4.ClientID %>").innerHTML='Enter Password';
                         var content =document.getElementById('SummaryDivDefaultPagePopup12').innerHTML;
                         TINY.box.show(content,0,0,0,1);
                         return false;
                      }
                      else
                      {
                        var password=document.getElementById("<%=txtPassowrd.ClientID%>").value;
                        if(password.length<6)
                        {
                            document.getElementById("<%=Label4.ClientID %>").innerHTML='Password should be minimum 6 Digits';
                             var content =document.getElementById('SummaryDivDefaultPagePopup12').innerHTML;
                             TINY.box.show(content,0,0,0,1);
                             return false;
                        }
                      }
                      if (document.getElementById("<%=txtEmail.ClientID%>").value=="")
                      {
                         document.getElementById("<%=Label4.ClientID %>").innerHTML='Enter Email';
                         var content =document.getElementById('SummaryDivDefaultPagePopup12').innerHTML;
                         TINY.box.show(content,0,0,0,1);
                         return false;
                      }
                        var emailPat = /^[^@]+@[^@.]+\.[^@]*\w\w$/  ;
                        var emailid=document.getElementById("<%=txtEmail.ClientID %>").value;
                        var matchArray = emailid.match(emailPat);
                        if (matchArray == null)
                        {
                                   document.getElementById("<%=Label4.ClientID %>").innerHTML='Enter Correct Email';
                                   var content =document.getElementById('SummaryDivDefaultPagePopup12').innerHTML;
                                   TINY.box.show(content,0,0,0,1);
                                   return false;
                        }
                    document.getElementById("<%=Label4.ClientID %>").innerHTML='';
                    var content =document.getElementById('SummaryDivDefaultPagePopup12').innerHTML;
                    TINY.box.show(content,0,0,0,1);
                    return false;
                    }
               }
               else
               {
                   var tyregot=isDate(date)
                    if (tyregot==false)
                    {
                        document.getElementById("<%=Label4.ClientID %>").innerHTML='Please Enter Valid Date';
                        var content =document.getElementById('SummaryDivDefaultPagePopup12').innerHTML;
                        TINY.box.show(content,0,0,0,1);
                        return false;
                    }
               }
                return true;
             }
 

             // Declaring valid date character, minimum year and maximum year
var dtCh= "/";
var minYear=1900;
var maxYear=2100;
function isInteger(s){
    var i;
    for (i = 0; i < s.length; i++){
        // Check that current character is number.
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    // All characters are numbers.
    return true;
}
function stripCharsInBag(s, bag){
    var i;
    var returnString = "";
    // Search through string's characters one by one.
    // If character is not in bag, append to returnString.
    for (i = 0; i < s.length; i++){
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }
    return returnString;
}
function daysInFebruary (year){
    // February has 29 days in any year evenly divisible by four,
    // EXCEPT for centurial years which are not also divisible by 400.
    return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );
}
function DaysArray(n) {
    for (var i = 1; i <= n; i++) {
        this[i] = 31
        if (i==4 || i==6 || i==9 || i==11) {this[i] = 30}
        if (i==2) {this[i] = 29}
   }
   return this
}
function isDate(dtStr)
{
    if(dtStr=='dd/mm/yyyy')
    {
    return false
    }
    var daysInMonth = DaysArray(12)
    var pos1=dtStr.indexOf(dtCh)
    var pos2=dtStr.indexOf(dtCh,pos1+1)
    var strDay=dtStr.substring(0,pos1)
    var strMonth=dtStr.substring(pos1+1,pos2)
    var strYear=dtStr.substring(pos2+1)
    strYr=strYear
    if (strDay.charAt(0)=="0" && strDay.length>1) strDay=strDay.substring(1)
    if (strMonth.charAt(0)=="0" && strMonth.length>1) strMonth=strMonth.substring(1)
    for (var i = 1; i <= 3; i++) {
        if (strYr.charAt(0)=="0" && strYr.length>1) strYr=strYr.substring(1)
    }
    month=parseInt(strMonth)
    day=parseInt(strDay)
    year=parseInt(strYr)
    if (pos1==-1 || pos2==-1){
        //alert("The date format should be : DD/MM/YY")
        return false
    }
    if (strMonth.length<1 || month<1 || month>12){
        //alert("Please enter a valid month")
        return false
    }
    if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day > daysInMonth[month]){
        //alert("Please enter a valid day")
        return false
    }
    if (strYear.length != 4 || year==0 ){
        //alert("Please enter a valid Last 2 digit")
        return false
    }
return true
}
 
    </script>
    <script type="text/javascript">
$(document).ready(function(){
    //called when key is pressed in textbox ||("#txtCommissionRate").keypress(function (e)||("#txtPremium").keypress(function (e)||("#txtAssuredSum").keypress(function (e)
 $("#txtDay").keypress(function (e)
 {
   //if the letter is not digit then display error and don't type anything
   if( e.which!=8 && e.which!=0 && (e.which<48 || e.which>57))
   {
  //display error message
  //$("#errmsg").html("Digits Only").show().fadeOut("slow");
  //alert('Enter Numeric Value Only');
     return false;
      }
 });
  });
    </script>
    <script type="text/javascript">
$(document).ready(function(){
    //called when key is pressed in textbox ||("#txtCommissionRate").keypress(function (e)||("#txtPremium").keypress(function (e)||("#txtAssuredSum").keypress(function (e)
 $("#txtMonth").keypress(function (e)
 {
   //if the letter is not digit then display error and don't type anything
   if( e.which!=8 && e.which!=0 && (e.which<48 || e.which>57))
   {
  //display error message
  //$("#errmsg").html("Digits Only").show().fadeOut("slow");
  //alert('Enter Numeric Value Only');
     return false;
      }
 });
  });
    </script>
    <script type="text/javascript">
$(document).ready(function(){
    //called when key is pressed in textbox ||("#txtCommissionRate").keypress(function (e)||("#txtPremium").keypress(function (e)||("#txtAssuredSum").keypress(function (e)
 $("#txtYear").keypress(function (e)
 {
   //if the letter is not digit then display error and don't type anything
   if( e.which!=8 && e.which!=0 && (e.which<48 || e.which>57))
   {
  //display error message
  //$("#errmsg").html("Digits Only").show().fadeOut("slow");
  //alert('Enter Numeric Value Only');
     return false;
      }
 });
  });
    </script>
     <style type="text/css">
     .display{display: none }
    </style>
 
    <script type="text/javascript">
var xmlHttp;
var xmlHttp1;
var xmlHttp2;
function GetXmlHttpObject()
{
  var xmlHttp=null;
  try
  {
   // Firefox, Opera 8.0+, Safari
   xmlHttp=new XMLHttpRequest();
  }
  catch (e)
 {
   //Internet Explorer
     try
     {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
     }
     catch (e)
     {
       xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
     }
  }
  return xmlHttp;
}
function ValidateUser(PollID)
{
    //alert(PollID);
    var PollID =PollID;
    if(PollID=="")
    {
        alert(PollID);
        return;
    }
    xmlHttp2 = GetXmlHttpObject()
    if(PollID != '')
    {
            if (xmlHttp2==null)
            {
              alert ("Browser does<not support HTTP Request")
              return
            }
            var url="WebForm4.aspx"
            url=url+"?PollID="+PollID;
 
            xmlHttp2.onreadystatechange=function()
            {
                  if(xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete" && xmlHttp2.status == 200)
                    {
                         verifyUser();
                     }
            }
            xmlHttp2.open("GET",url,true)
            xmlHttp2.send(null)
    }
    function verifyUser()
    {
        var result= xmlHttp2.responseText;
        //__doPostBack('sppner','');
        ajaxpage('default3.aspx','sunil');
        document.getElementById("hdnquestionanswerid").value='';
        inc("js/ui.spinner.js");
        inc("js/jquery-ui.js");
        inc("js/jquery1.js");
        loadjscssfile("css/style.css", "css")
        loadjscssfile("js/jquery-ui.css", "css")
        //window.location.reload();
    }
}
    </script>
    <script type="text/javascript">
var loadedobjects="";
var rootdomain="http://"+window.location.hostname;
function ajaxpage(url, containerid)
{
    var page_request = false
    if (window.XMLHttpRequest) // if Mozilla, Safari etc
    page_request = new XMLHttpRequest()
    else if (window.ActiveXObject)
    { // if IE
        try
        {
            page_request = new ActiveXObject("Msxml2.XMLHTTP")
        }
        catch (e)
        {
            try
            {
                page_request = new ActiveXObject("Microsoft.XMLHTTP")
            }
            catch (e){}
        }
    }
    else
        return false
    page_request.onreadystatechange=function()
    {
        loadpage(page_request, containerid)
    }
    page_request.open('GET', url, true)
    page_request.send(null)
}
function loadpage(page_request, containerid)
{
    if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
    {
       document.getElementById(containerid).innerHTML=page_request.responseText;
    }
}
function inc(filename)
{
var body = document.getElementsByTagName('body').item(0);
script = document.createElement('script');
script.src = filename;
script.type = 'text/javascript';
body.appendChild(script)
}
function loadjscssfile(filename, filetype)
{
  var fileref=document.createElement("link")
  fileref.setAttribute("rel", "stylesheet")
  fileref.setAttribute("type", "text/css")
  fileref.setAttribute("href", filename)
}
 
    </script>
 
</head>
<body >
<%--<body onload="ImageLoader()" >--%>
<%--    <asp:Imageloader ID="imageloader" runat="server" />--%>
    <form id="form1" runat="server">
        <div >
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                    <td>
                        <!-- Header Starts Here -->
                        <asp:top ID="UserTop" runat="server" />
                        <!-- Header Ends Here -->
                    </td>
                </tr>
                <tr>
                    <td>
                        <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="699" align="left" valign="top">
                                    <table width="699" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td align="center" valign="middle" class="welcome">
                                                <h1>
                                                    WELCOME TO GLOPINION
                                                </h1>
                                                <h2>
                                                    <em>The website that values your opinion!</em></h2>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" valign="top">
                                                <a href="createpoll.aspx">
                                                    <img src="images/create_poll.jpg" alt="Create Poll" width="342" height="101" border="0" /></a>
                                                &nbsp;<a href="comparepoll.aspx"><img src="images/compare_poll.jpg" alt="Compare Poll"
                                                    width="343" height="101" border="0" /></a></td>
                                        </tr>
                                        <tr>
                                            <td align="left" valign="top">
                                                <table width="695" border="0" align="left" cellpadding="2" cellspacing="0">
                                                    <tr>
                                                        <td colspan="3" align="left" valign="top" class="hr_line">&nbsp;
                                                            </td>
                                                    </tr>
                                                    <% if (dtMainPageContent.Rows.Count != 0)
                                                       {
                                                           for (int Count = 0; Count < dtMainPageContent.Rows.Count; Count++)
                                                           {
                                                    %>
                                                    <tr>
                                                        <td width="330" align="left" valign="top" class="heading_text">
                                                            <%= dtMainPageContent.Rows[Count]["Topic"].ToString()%>
                                                        </td>
                                                        <td width="23" align="left" valign="top" class="vertical_line">&nbsp;
                                                            </td>
                                                        <td width="330" align="left" valign="top" class="heading_text">
                                                            <% if (Count + 1 < dtMainPageContent.Rows.Count)
                                                               { %>
                                                            <%= dtMainPageContent.Rows[Count + 1]["Topic"].ToString()%>
                                                            <% } %>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="left" valign="top">
                                                                <%= dtMainPageContent.Rows[Count]["MainText"].ToString()%>
                                                        </td>
                                                        <td align="left" valign="top" class="vertical_line">&nbsp;
                                                            </td>
                                                        <td align="left" valign="top">
                                                                <% if (Count + 1 < dtMainPageContent.Rows.Count)
                                                                   { %>
                                                                <%= dtMainPageContent.Rows[Count + 1]["MainText"].ToString()%>
                                                                <% } %>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="40" align="center" valign="middle">
                                                                </td>
                                                        <td align="left" valign="top" class="vertical_line">&nbsp;
                                                            </td>
                                                        <td height="40" align="center" valign="middle">
                                                            <% if (Count + 1 < dtMainPageContent.Rows.Count)
                                                               { %>
                                                              <% } %>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="3" align="left" valign="top">&nbsp;
                                                            </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="3" align="left" valign="top" class="hr_line">&nbsp;
                                                            </td>
                                                    </tr>
                                                    <% Count++; %>
                                                    <%}
                                                  }%>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td width="301" align="left" valign="top">
                                    <table width="301" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td align="left" valign="top">&nbsp;
                                                </td>
                                        </tr>
                                        <tr>
                                            <td align="left" valign="top" class="register_bg">
                                                <table width="94%" border="0" align="center" cellpadding="1" cellspacing="0">
                                                    <tr>
                                                        <td height="75" colspan="2" align="center" valign="middle" class="register_font">
                                                            JOIN NOW
                                                            <br />
                                                            <span class="register_font1">IT’S EASY &amp; FREE ! </span>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td width="94" align="right" valign="middle" class="white_font">
                                                            User Name :<br />
                                                        </td>
                                                        <td width="185" align="left" valign="middle" class="white_font">
                                                            <asp:TextBox ID="txtUserName" runat="server" MaxLength="200" CssClass="text_field"
                                                                Style="width: 155px"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="rqdUserID" name="rqdUserID" runat="server" ErrorMessage="Enter UserName"
                                                                ControlToValidate="txtUserName" ValidationGroup="SignUPDefaultPagePopup" Display="None">*</asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" valign="middle" class="white_font">
                                                            Password :<br />
                                                        </td>
                                                        <td align="left" valign="middle" class="white_font">
                                                            <asp:TextBox ID="txtPassowrd" runat="server" TextMode="Password" MaxLength="100"
                                                                CssClass="text_field" Style="width: 155px"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="rqdPassword" runat="server" ControlToValidate="txtPassowrd"
                                                                ErrorMessage="Enter Password" ValidationGroup="SignUPDefaultPagePopup" Display="None">*</asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" Display="None"
                                                                ValidationGroup="SignUPDefaultPagePopup" ValidationExpression="[^/(\s)/][0-9a-zA-Z_]{5,100}"
                                                                ErrorMessage="Password should be minimum 6 Digits" ControlToValidate="txtPassowrd">*</asp:RegularExpressionValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" valign="middle" class="white_font">
                                                            Email :<br />
                                                        </td>
                                                        <td align="left" valign="middle" class="white_font">
                                                            <asp:TextBox ID="txtEmail" runat="server" MaxLength="200" CssClass="text_field" Style="width: 155px"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="rqdEmail" name="rqdUserID" runat="server" ErrorMessage="Enter Email"
                                                                ControlToValidate="txtEmail" ValidationGroup="SignUPDefaultPagePopup" Display="None">*</asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator ID="rexUserID" name="rexUserID" runat="server" ControlToValidate="txtEmail"
                                                                Display="None" ErrorMessage="Enter Valid Email" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                                ValidationGroup="SignUPDefaultPagePopup">*</asp:RegularExpressionValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" valign="middle" class="white_font">
                                                            Location :<br />
                                                        </td>
                                                        <td align="left" valign="middle" class="white_font">
                                                               <asp:DropDownList ID="ddlCountry" runat="server" Style="width:158px;">
                                                    </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" valign="middle" class="white_font">
                                                            Gender :<br />
                                                        </td>
                                                        <td align="left" valign="middle" class="white_font">
                                                            <asp:RadioButton ID="rdoMale" runat="server" GroupName="gender" Checked="true" />
                                                            Male
                                                            <asp:RadioButton ID="rdoFemale" runat="server" GroupName="gender" />
                                                            Female
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" valign="middle" class="white_font">
                                                            Date of Birth :</td>
                                                        <td align="left" valign="middle" class="white_font">
                                                            <%--Style="width: 30px; font-style: italic; color: #999999;"--%>
                                                            <asp:TextBox ID="txtDay" runat="server" MaxLength="2" CssClass="text_field" Text="dd"
                                                                Style="width: 30px;" onfocus="if(this.value=='dd'){ this.value=''; }"></asp:TextBox>
                                                            <asp:TextBox ID="txtMonth" runat="server" MaxLength="2" CssClass="text_field" Text="mm"
                                                                onfocus="if(this.value=='mm'){ this.value=''; }" Style="width: 30px;"></asp:TextBox>
                                                            <asp:TextBox ID="txtYear" runat="server" CssClass="text_field" Text="yyyy" MaxLength="4"
                                                                onfocus="if(this.value=='yyyy'){ this.value=''; }" Style="width: 70px;"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" valign="middle" class="white_font">
                                                            <label>
                                                            </label>
                                                        </td>
                                                        <td align="left" valign="bottom" class="white_font">
                                                            <asp:CheckBox ID="chkCondition" runat="server" />
                                                            Agree to <strong><a href="siteterms.aspx" class="white_font">Terms</a></strong></td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" valign="middle" class="white_font">
                                                        </td>
                                                        <td align="left" valign="bottom" class="white_font">
                                                            <asp:CheckBox ID="ChkNewsLetter" runat="server" />
                                                            Subscribe Newsletter</td>
                                                    </tr>
                                                    <tr>
                                                        <td align="center" valign="middle" class="white_font">&nbsp;
                                                            </td>
                                                        <td align="left" valign="middle" class="white_font">
                                                            <asp:ImageButton ID="imgbtnRegistor" runat="server" ImageUrl="images/register.png"
                                                                Width="82" Height="39" border="0" ValidationGroup="SignUPDefaultPagePopup" OnClientClick="return ShowModalDialogDefaultPage()"
                                                                OnClick="imgbtnRegistor_Click" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" align="center" valign="middle" class="white_font">
                                                            Or sign in <a href="login.aspx" class="orange_font"><strong>here</strong></a></td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" valign="top" id="refreshpoll">
                                               <div ></div>
                                            </td>
                                        </tr>
                                       <tr>
                                            <td align="center" valign="middle" class="right_top">
                                                Random Polls</td>
                                        </tr>
                                        <tr >
                                            <td align="left" valign="top" class="right_bg" id="sunil">
                                                <table width="95%" border="0" align="center" cellpadding="2" cellspacing="0" id="rightcolumn">
                                                    <% if (dtPoll.Rows.Count != 0)
                                                       {
                                                           for (int Count = 0; Count < dtPoll.Rows.Count; Count++)
                                                           {
                                                    %>
                                                    <tr onmouseover="ajax_hideTooltip()">
                                                        <td width="89%" align="left" valign="top" class="heading_text">
                                                            <%= dtPoll.Rows[Count]["CategoryName"].ToString()%>
                                                        </td>
                                                        <td width="11%" align="center" valign="top">
                                                            <a   id="spin" onclick="ValidateUser(<%=dtPoll.Rows[Count]["PollID"].ToString()%>)"
                                                                onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Refresh<%=Count %>','','images/refresh-animated.gif',1)"
                                                                style="cursor: pointer" target="form1">
                                                                <img src="images/refresh.jpg" alt="Refresh" name="Refresh<%=Count %>" width="21"
                                                                    height="22" border="0" id="Refresh<%=Count %>" />
                                                            </a>
                                                        </td>
                                                    </tr>
                                                    <tr onmouseover="ajax_hideTooltip()">
                                                        <td colspan="2" align="left" valign="top">
                                                            <%= dtPoll.Rows[Count]["Question"].ToString()%>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" align="left" valign="top">
                                                            <%
                                                                GetAnswer(dtPoll.Rows[Count]["QuestionID"].ToString());
                                                                if (dtAnswer.Rows.Count != 0)
                                                                {
                                                                    for (int CountA = 0; CountA < dtAnswer.Rows.Count; CountA++)
                                                                    {
                                                            %>
                                                            <script type="text/javascript" language="JavaScript">
                                                                        function setShemp<%=CountA %>(setting,test)
                                                                        {
                                                                            if((setting!='')&&(test!=''))
                                                                            {
                                                                                //alert(setting);
                                                                                //document.getElementById('hdnfRangeValue').value='';
                                                                                document.getElementById('hdnquestionanswerid').value= setting +',' +test;
                                                                               // alert(setting +',' +test);
                                                                            }
                                                                        }
                                                            </script>
                                                            <table width="95%" border="0" cellspacing="0" cellpadding="0">
                                                                <tr>
                                                                    <td align="left" valign="middle" style="width: 188px" colspan="2">
                                                                        <table width="95%" border="0" cellspacing="0" cellpadding="0">
                                                                            <tr>
                                                                                <td align="left" valign="middle" style="width: 188px">
                                                                                    <input type="radio" name="radio<%=Count %>" id="radio1" value="<%=dtAnswer.Rows[CountA]["QuestionAnswerID"].ToString()%>"
                                                                                        onclick="setShemp<%=CountA %>(<%=dtAnswer.Rows[CountA]["QuestionAnswerID"].ToString()%>,<%=dtPoll.Rows[Count]["PollID"].ToString()%>)" />
                                                                                </td>
                                                                                <td width="89%" align="left" valign="middle">
                                                                                    <%=dtAnswer.Rows[CountA]["Answer"].ToString()%>
                                                                                    <br />
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                                <% if ((dtAnswer.Rows.Count - 1) == CountA)
                                                                   { %>
                                                                <tr>
                                                                    <td align="left" valign="middle" style="width: 188px" onmouseover="ajax_hideTooltip()">
                                                                        <br />
                                                                        <asp:HiddenField ID="hdnquestionanswerid" runat="server" />
                                                                        <asp:ImageButton ID="btnPollVote" runat="server" ImageUrl="images/vote.png" Width="45"
                                                                            Height="28" border="0" OnClick="btnPollVote_Click" />
                                                                    </td>
                                                                    <td align="right" valign="middle">
                                                                        <a href="javascript:void(0);"  onmouseover="ajax_showTooltip('comment.aspx',this);return false"
                                                                            class="topLink" style="cursor: pointer">
                                                                            <img src="images/share.jpg" alt="Share" width="37" height="34" border="0" /></a></td>
                                                                </tr>
                                                                <%} %>
                                                            </table>
                                                            <%
                                                                }
                                                            }
                                                            else
                                                            {%>
                                                            <%  GetRangeAnswer(dtPoll.Rows[Count]["QuestionID"].ToString());
                                                                if (dtRangeAnswer.Rows.Count != 0)
                                                                {
                                                                    for (int CountR = 0; CountR < dtRangeAnswer.Rows.Count; CountR++)
                                                                    {
                                                            %>
 
                                                            <script type="text/javascript" language="javascript">
                                                                 $(document).ready(function()
                                                                        {
                                                                             $("#spinner<%=Count %>").spinner({ min: <%=dtRangeAnswer.Rows[CountR]["RangeFrom"].ToString()%>, max: <%=dtRangeAnswer.Rows[CountR]["RangeTo"].ToString()%> });
                                                                       });
                                                                </script>
                                                            <script type="text/javascript" language="JavaScript">
                                                            function RangeValue<%=Count %>(PollID)
                                                            {
                                                                document.getElementById('hdnfRangeValue').value= document.getElementById('spinner<%=Count %>').value +',' +PollID;
                                                            }
                                                            function RangeTest()
                                                            {
                                                               // document.getElementById('hdnfRangeValue').value=<%=dtRangeAnswer.Rows[CountR]["RangeFrom"].ToString()%>+',' +<%=dtPoll.Rows[Count]["PollID"].ToString()%>
                                                                document.getElementById('hdnfRangeValue').value= document.getElementById('txtDeault<%=Count %>').value;
                                                            }
                                                            </script>
                                                            <table width="95%" border="0" cellspacing="0" cellpadding="0" onmouseover="RangeTest()" >
                                                                <tr>
                                                                    <td width="35%" align="left" valign="middle">
                                                                        <input type="text" id="spinner<%=Count %>" value="0" style="width: 80px" onblur="RangeValue<%=Count %>(<%=dtPoll.Rows[Count]["PollID"].ToString()%>)" />
                                                                        <input type="text" id="txtDeault<%=Count %>" value='<%=dtRangeAnswer.Rows[CountR]["RangeFrom"].ToString()%>,<%=dtPoll.Rows[Count]["PollID"].ToString()%>'
                                                                            class="display" visible="false" />
                                                                        <asp:HiddenField ID="hdnfRangeValue" runat="server" />
                                                                    </td>
                                                                    <td width="65%" align="left" valign="top">
                                                                        KG</td>
                                                                </tr>
                                                                <tr >
                                                                    <td align="left" valign="middle" onmouseover="ajax_hideTooltip()">
                                                                        <asp:ImageButton ID="imgbtnRangePoll" runat="server" ImageUrl="images/vote.png" Width="45"
                                                                            Height="28" border="0" OnClick="imgbtnRangePoll_Click" />
                                                                    </td>
                                                                    <td align="right" valign="middle">
                                                                        <a href="javascript:void(0);"  onmouseover="ajax_showTooltip('comment.aspx',this);return false"
                                                                            class="topLink" style="cursor: pointer">
                                                                            <img src="images/share.jpg" alt="Share" width="37" height="34" border="0" /></a></td>
                                                                </tr>
                                                            </table>
                                                            <%
                                                                }
                                                            }%>
                                                            <% } %>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" align="left" valign="middle" class="hr_line">&nbsp;
                                                            </td>
                                                    </tr>
                                                    <%
                                                        }
                                                    }%>
                                                </table>
                                                <table width="95%" border="0" align="center" cellpadding="2" cellspacing="0">
                                                    <tr>
                                                        <td width="89%" align="left" valign="top" class="heading_text">
                                                            fOllow us</td>
                                                        <td width="11%" align="right" valign="top">&nbsp;
                                                            </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" align="left" valign="top">&nbsp;
                                                            </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" align="left" valign="top">
                                                            <a href="#" target="_blank">
                                                                <img src="images/facebook_icon.jpg" alt="LIKE ME ON FACEBOOK" width="40" height="40"
                                                                    border="0" /></a> <a href="#" target="_blank">
                                                                        <img src="images/twitter_icon.jpg" alt="FALLOW ME ON TWITTER" width="40" height="40"
                                                                            border="0" /></a> <a href="#" target="_blank">
                                                                                <img src="images/rss_feed_icon.jpg" alt="RSS FEED" width="40" height="40" border="0" /></a> <a href="#" target="_blank">
                                                                                <img src="images/news_icon.png" alt="RSS FEED" width="40" height="40" border="0" /></a></td>
                                                  </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" valign="top" class="right_footer">&nbsp;
                                                </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <!-- Footer Starts Here -->
                        <asp:footer ID="UserFooter" runat="server" />
                        <!-- Header Ends Here -->
                    </td>
                </tr>
            </table>
        </div>
        <div id="SummaryDivDefaultPagePopup12" style="display: none">
            <asp:Panel ID="Panel2" runat="server">
                <table width="350" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                    <tr>
                        <td width="282" align="left" valign="middle">
                            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="96%" align="left" valign="bottom" class="font_arial_14_black">
                                        <strong>Errors on this page</strong></td>
                                    <td width="4%" align="right" valign="bottom">
                                        <a onclick="TINY.box.hide()"><strong>
                                            <img src="images/icon_close.gif" alt="close" width="14" height="14" style="cursor: pointer" /></strong></a></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="39" align="left" valign="middle">
                            <table width="90%" border="0" align="center" cellpadding="4" cellspacing="0">
                                <tr>
                                    <td height="70" align="left" valign="middle" class="red_12">
                                        <%--<asp:ValidationSummary ID="ValidationSummaryDefault" runat="server" ValidationGroup="SignUPDefaultPagePopup"
                                            EnableClientScript="true" DisplayMode="List" CssClass="red_12"></asp:ValidationSummary>--%>
                                        <asp:Label ID="Label4" runat="server" ForeColor="red" Font-Names="Arail" Text="Please Enter Valid Date"></asp:Label></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </div>
        <div id="DivBadWordDefault" style="display: none">
            <asp:Panel ID="Panel3" runat="server">
                <table width="300" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                    <tr>
                        <td width="279" align="left" valign="middle">
                            <strong>
                                <asp:Label ID="lblMsgTop" Text="Error on page" runat="server" Font-Names="Arail" />
                            </strong>
                        </td>
                        <td width="21" align="right" valign="middle" class="font_arial_14_white">
                            <a onclick="TINY.box.hide()"><strong>
                                <img src="images/icon_close.gif" alt="close" width="14" height="14" style="cursor: pointer" /></strong></a>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="left" class="red_12">
                            <table width="100%" border="0" align="center" cellpadding="4" cellspacing="0" bgcolor="#FFFFFF">
                                <tr>
                                    <td height="70" align="left" valign="middle" class="red_12">
                                        <asp:Label ID="lblbadWord" runat="server" ForeColor="red" />
                                    </td>
                                </tr>
                                <tr>
                                    <td height="36" align="center" valign="middle" style="background-image: url(images/ok1.png);
                                        background-repeat: no-repeat; background-position: center; cursor: pointer">
                                        <a onclick="TINY.box.hide()" style="color: #FFFFFF;"><strong>
                                            <asp:Label ID="lblok" runat="server" Text="OK" Width="34px" />
                                        </strong></a>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </div>
        <div id="Diventervaliddate" style="display: none">
            <asp:Panel ID="Panel6" runat="server">
                <table width="300" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
                    <tr>
                        <td width="285" align="left" valign="middle">
                            <strong>
                                <asp:Label ID="Label6" Text="Errors on this page" runat="server"></asp:Label>
                            </strong>
                        </td>
                        <td width="15" align="right" valign="middle">
                            <a onclick="TINY.box.hide()"><strong>
                                <img alt="close" height="14" src="images/icon_close.gif" style="cursor: pointer"
                                    width="14" /></strong></a></td>
                    </tr>
                    <tr>
                        <td colspan="2" align="left" class="red_12">
                            <table width="100%" border="0" align="center" cellpadding="4" cellspacing="0" bgcolor="#ffffff">
                                <tr>
                                    <td height="70" align="left" valign="middle" class="red_12">
                                        <asp:Label ID="lbllasettwo" runat="server" ForeColor="red" Font-Names="Arail" Text="Enter User Name"></asp:Label><br />
                                        <asp:Label ID="Label1" runat="server" ForeColor="red" Font-Names="Arail" Text="Enter Password"></asp:Label><br />
                                        <asp:Label ID="Label2" runat="server" ForeColor="red" Font-Names="Arail" Text="Enter Email"></asp:Label><br />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </div>
    </form>
</body>
</html>
<%   if (strBadWordPopUpValueDefault == "Yes")
     { %>
<script type="text/javascript" language="JavaScript">
                 var content1 =document.getElementById('DivBadWordDefault').innerHTML;
                  TINY.box.show(content1,0,0,0,1);
 
            strBadWordPopUpValueDefault= "";
</script>
<% }  %>
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 6,649
1 Sergey Alexandrovich Kryukov 6,280
2 CPallini 5,230
3 George Jonsson 3,574
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 25 Mar 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100