| | | Forum 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 |
| | | | 
Forum 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 |
| | | | Forum 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.SqlConnectionGetTotalNewMessages = 0 If GetCN(CnBBS) ThenDim CmTotal As SqlClient.SqlCommand = CnBBS.CreateCommandCmTotal.CommandText = "SP_BBS_GetTotalNewMessages"CmTotal.CommandType = CommandType.StoredProcedure CmTotal.Parameters.Add( New SqlParameter("@UserID", SqlDbType.VarChar)).Value = UserIDCmTotal.Parameters.Add( New SqlParameter("@Total", SqlDbType.TinyInt)).Direction = ParameterDirection.OutputCmTotal.ExecuteNonQuery() GetTotalNewMessages = CInt(CmTotal.Parameters("@Total").Value)CnBBS = NothingCmTotal = NothingEnd IfEnd Function So, How do you think ? |
| | | | Forum 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 |
| |
|
|