Showing posts from April, 2016

ASP.Net, SQLITE Survey Form: Mutually exclusive selection Form

Requirement: Designing a survey Form where:
1. On Page 1 only 5 out of 10 items can be selected
2. On page 2 selection will be mutually exclusive for setting priorities.

Screenshots are attached (click to enlarge):

Here is the HTML:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %><br />
<br />
<!DOCTYPE html><br />
<br />
<html xmlns=""><br />
<head runat="server"><br />
    <title></title><br />
    <script type="text/javascript" language="javascript"><br />
<br />
function CheckCheck()<br />
{<br />
<br />
        var chkBoxList=document.getElementById('<%=CheckBoxList1.ClientID %>');        var chkBoxCount=chkBoxList.getElementsByTagName("input");<br />
 <br />
<br />
        var btn=docume… JQuery Ajax call to set session for Login Page.

Image JQuery Ajax call to set session. Problem: Session lost on ajax call. Solution: Please check any resource image/js etc missing or not through browsers developer tool > Console.

Step1: Create vinservice.asmx page with following line:

<%@ WebService Language="VB" CodeBehind="~/App_Code/vinservice.vb" Class="vinservice" %>

Step2: Create corresponding vb file under App_Code folder as vinservice.vb

Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Web.Script.Services
Imports System.Web.Script.Serialization
Imports MySql.Data
Imports MySql.Data.MySqlClient
Imports System.Data
Imports System.Data.SqlClient
' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
Public Class vinservice
    Inherits System.Web.Services.WebService

    Public Function checkSession() As Boolean
        If HttpContext.Current.Session("eid") Is Nothing Then

Google+ Followers