Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » .NET Programming (VB 2010 or earlier) » ASP.NET » Send message to users in client


Send message to users in clientExpand / Collapse
Author
Message
Posted 9/17/2007 9:43:10 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/14/2008 2:44:14 AM
Posts: 6, Visits: 11
Dear all .Netters,

I develop intranet application using ASP.Net 2.0 with VB language.
I have some modules that necesarry send messages to users.
Currently, my Bulletin Board shows pop up windows if there are messages to users.
It reads SQL Server table every 5 minutes using Web Service.

For others modules (GA-Payment, User ID Maintain),
I have planned to use Net Send function that provides by SQL Server with activating Job Schedule.
But i hesitant, if it could decrase my SQL Server or my Server performance.

So, do you have experiences how to send message to users with ASP.Net ?

Thanks and Regards,

Kusno

Post #23054
Posted 10/1/2007 10:31:45 AM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum God

Group: Forum Members
Last Login: 9/7/2010 12:29:54 PM
Posts: 633, Visits: 1,019
You have a SQL database that updates every 5 minutes on a web page?

I have been developing a similar solution, however, I'd like to know more about what your problem is specifically, so I can send you the code you need.



-Mobius

Post #23173
Posted 10/19/2007 1:49:12 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/14/2008 2:44:14 AM
Posts: 6, Visits: 11

This my Javascript program :

function CheckNewMessage()

{

objXML = new ActiveXObject("Microsoft.XMLDOM");

objXML.async = false;

var UserID= "<%= Session("UserID") %>";

strSql = "BMIWebService.asmx/GetTotalNewMessages?UserID=" + UserID;

objXML.load(strSql);

var total;

total = objXML.text;

if(total>0)

{

var w = 0, h = 0;

if (document.all || document.layers)

{

w = screen.availWidth;

h = screen.availHeight;

}

var popW = 550, popH = 350;

var leftc = (w - popW) / 2, topc = (h - popH) / 2;

window_bbs = window.open('Transactions/BBS/BrowseNewMessageBuletinBoard.aspx','window_bbs','scrollbars=yes,left=' + leftc + ', top=' + topc + ',width=550,height=350');

window_bbs.focus();

}

setTimeout("CheckNewMessage()",480000);

return true;

}

and this is webservice code :

<WebMethod()> Public Function GetTotalNewMessages(ByVal UserID As String) As Int16

Dim CnBBS As New SqlClient.SqlConnection

GetTotalNewMessages = 0

If GetCN(CnBBS) Then

Dim CmTotal As SqlClient.SqlCommand = CnBBS.CreateCommand

CmTotal.CommandText = "SP_BBS_GetTotalNewMessages"

CmTotal.CommandType = CommandType.StoredProcedure

CmTotal.Parameters.Add(New SqlParameter("@UserID", SqlDbType.VarChar)).Value = UserID

CmTotal.Parameters.Add(New SqlParameter("@Total", SqlDbType.TinyInt)).Direction = ParameterDirection.Output

CmTotal.ExecuteNonQuery()

GetTotalNewMessages = CInt(CmTotal.Parameters("@Total").Value)

CnBBS = Nothing

CmTotal = Nothing

End If

End Function

 

So, How do you think ?

Post #23363
Posted 3/14/2010 2:51:36 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/16/2010 9:33:07 AM
Posts: 2, Visits: 4
My project is on bill approval system basically a work-flow process. I am building it in ASP .Net using either vb or c# with SQL Server 2005.(VS 2008)
                    My main doubt is:
 
When the employeer selects to upload a bill and fills the details within it, he is suppose to send it to his respective head of department. There will be thousands of employees with many head of departments each of them having a different login. Now the bill should be in the particular head of department's login only. I am building it on  SINGLE machine.
So how do I prepare a code such that the bill passes to a specific user's login only and also he can approve and comment on receving the bill.Please help me at the earliest.

Thanking for your anticipation



-jaineel
Post #28993
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Admin, Mod, Mark, Keithuk

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 11:01pm