Posts

Showing posts with the label .net tutorial

Send Notification to selected users in Asp.Net

Image
Suppose in your website there is an admin control and you want to deliver a message to all or selected users i.e. after login only selected users or every user can see the notification or message from admin of website. How this task can be achieved? Follow the following steps.   1 .   Make separate table for message and in login table make another column with bullion type so that whenever it is true user can see the message and we will have to check at the time of login whether this field is true or false. If this is true then user is able to see message stored in database by admin.  2. On admin side. Make web page like this then admin can search user by name and primary key should be stored separately so that many users can be enabled to see notification. In the image when admin search user by name their primary key will appear to see how many person he want to send notification.            ...

Infinite Scroll in Asp.Net C# using Javascript without Third party Plugin

Image
Infinite Scroll is very common today in website as we all see in facebook , google + , LinkedIn and many other sites, as we scroll down data from server automatically appears in our browser without clicking any button. How We will do it?  We first create a database and then after that we will apply a jquery that will execute when our scroll bar reaches bottom of the page. For demo I will fetch YouTube video link from local server and bind that in iframe when scrolled down..  Here I will define a variable or you can say in other word a counter that will increase according to our requirement when scroll down. and that value will pass to the server so that server can send data when scrolled down. Here in my example I am increasing counter by one and initial value is 14 since my table ID started from 14 (you know when you delete some data this happen when it is PK) How to pass data from a page to server using jquery ? Follow these Steps: 1. Create a ...