Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Send message to users in client


Send message to users in client

Author
Message
Kusno
Kusno
Forum God
Forum God (1.9K reputation)Forum God (1.9K reputation)Forum God (1.9K reputation)Forum God (1.9K reputation)Forum God (1.9K reputation)Forum God (1.9K reputation)Forum God (1.9K reputation)Forum God (1.9K reputation)Forum God (1.9K reputation)

Group: Forum Members
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

Mobius
Mobius
Forum God
Forum God (105K reputation)Forum God (105K reputation)Forum God (105K reputation)Forum God (105K reputation)Forum God (105K reputation)Forum God (105K reputation)Forum God (105K reputation)Forum God (105K reputation)Forum God (105K reputation)

Group: Forum Members
Posts: 632, Visits: 1K
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

Kusno
Kusno
Forum God
Forum God (1.9K reputation)Forum God (1.9K reputation)Forum God (1.9K reputation)Forum God (1.9K reputation)Forum God (1.9K reputation)Forum God (1.9K reputation)Forum God (1.9K reputation)Forum God (1.9K reputation)Forum God (1.9K reputation)

Group: Forum Members
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 ?


jaineel
jaineel
Forum God
Forum God (776 reputation)Forum God (776 reputation)Forum God (776 reputation)Forum God (776 reputation)Forum God (776 reputation)Forum God (776 reputation)Forum God (776 reputation)Forum God (776 reputation)Forum God (776 reputation)

Group: Forum Members
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
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search