55 Archived Topics

Remove Filter
Member Avatar for vuyiswamb

Good Day All i have a ListView that is defined in a Xamarin Form. i want this ListView to be updated with the Data from the DB every 5 seconds. In a Non Mobile environment , we have a Windows Service , which is a long running Service. but now …

0
703
Member Avatar for vuyiswamb

Good Day all i am using Navigation service as depicted below <Frame x:Name="_home" NavigationUIVisibility="Hidden" HorizontalAlignment="Stretch" Width="2749" Margin="0,12,0,0" /> and i navigate to the Page like this (Application.Current.MainWindow.FindName("_home") as Frame).Source = new Uri("/F1.xaml", UriKind.Relative); which work fine. now in the Navigated page, lets just say a page shown in the Frame,there …

Member Avatar for Santanu.Das
0
193
Member Avatar for vuyiswamb

Good Day All I hope someone can help me. i have a Asp.net web application that is running on 4.51 , When the User login Successfully i return an Object that has info for that user and store this in a Static object. Now my problem is the i User …

Member Avatar for mtyide
0
131
Member Avatar for vuyiswamb

Good Day All i have an asp.net 4.5 application. i have hosted it on IIS 7.5 in Windows Server 2008. My application has different folders within it and some are for JS and some are for CSS and etc.. and they are inside a directory named "Shared" in my problem …

Member Avatar for JorgeM
0
963
Member Avatar for vuyiswamb

Good Day all i am reluctantly maintaining a Classic Asp application that will be re-written in few months to come. i have an issue where i have a Code like this if(document.frmEntry.optMethod != "undefined") { if (document.frmEntry.optMethod.selectedIndex == 0) { strPrompt=strPrompt+'Please specify the Valuation Method\n'; if ( objFocus == null …

Member Avatar for Airshow
0
173
Member Avatar for vuyiswamb

Good Day All i am opening a Popup and i want to bind the "onbeforeunload" to the popup that if someone clicks on the close button in the window or close button in the page , the event should fire a javascript function that is on the page that opened …

Member Avatar for Troy III
0
252
Member Avatar for vuyiswamb

Good Day i have been hit by this error this night. I have a UDF defined like this CREATE FUNCTION [dbo].[funcFormatPercentages_Extended_numeric] ( -- Add the parameters for the function here @parPercentageToBeFormatted nvarchar(20) ) RETURNS nvarchar(20) AS BEGIN RETURN CAST(CAST(convert(float,@parPercentageToBeFormatted)* 100 AS decimal(4, 1)) AS nvarchar(5)) + N'%' END so i …

Member Avatar for pritaeas
0
1K
Member Avatar for vuyiswamb

Good Evening Guys, Today its my Birthaday. I have a If statement that i use to return an integer that will mean Success or Failure , now am testing for that integer in my ASP.NET 2.0 Page lke this [CODE] if (Res == 1) { Response.Write("<script> alert('You have Successfully Registred');</script>"); …

Member Avatar for abhinavranjan19
0
173
Member Avatar for vuyiswamb

Good Day Guys This is an MVC , JQuery, KNockout.js Question. i have a Controller Action that is being Defined like this [HttpGet] public JsonResult SearchCars(string searchString) { string[] searchTerms = (searchString).ToUpper().Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); string[] searchTermSounds = new string[searchTerms.Length]; var list = (from r in Cache.CarSearchItems …

Member Avatar for stbuchok
0
260
Member Avatar for vuyiswamb

Good Day ALL I have tried something and i am not sure what is the problem. i have inherited the an asp.net app. So i want to add the custom Error Handling. I know there are two methods i can do this. 1) Web Config 2)Global.asa So i started with …

Member Avatar for geniusvishal
0
182
Member Avatar for vuyiswamb

Good Day Fellows i have a Dynamic Questionnaire that is created using dynamic data from the Database. My data in the Database contains the fields like [B]QuestionID[/B] - Primary key [B]Question[/B] - The Question Text [B]Answer[/B] - The Answer [B]Required [/B]- This is a Validation , i used this to …

Member Avatar for vuyiswamb
0
270
Member Avatar for vuyiswamb

Good Day All i have a Jquery code defined like this [CODE] // Let's add it to textarea this time $(".cnt").focus(function() { // Check for the change if(this.value == this.defaultValue){ this.select(); } }); [/CODE] and i am creating a textbox on fly and after creating it i bind data to …

Member Avatar for stbuchok
0
351
Member Avatar for vuyiswamb

Good Day All I have a Dynaically created a Textbox and i have a Dynamically created DIV. So what i want to do is to Find the Position of the Textbox and and Dynamically when this textbox is created , please a Div just next to this textbox. So my …

Member Avatar for vuyiswamb
0
262
Member Avatar for vuyiswamb

Good Day All i am creating Textboxes at Runtime with something like this [CODE]Dim cnt As New TextBox cnt.ID = "cont_" & x If multiline Then cnt.TextMode = TextBoxMode.MultiLine End If [/CODE] These are dynamically created fields. so what i want to do is to use this following JQuery on …

Member Avatar for vuyiswamb
0
732
Member Avatar for vuyiswamb

Good Day All I have a File Format Defined like this [QUOTE]9.0 4 1 SQLCHAR 0 100 "," 0 ExtraField "" 2 SQLCHAR 0 100 "," 1 Descr SQL_Latin1_General_CP1_CI_AS 3 SQLCHAR 0 100 "," 2 ABREV SQL_Latin1_General_CP1_CI_AS [/QUOTE] and i use it like this [CODE]BULK INSERT dbo.TBL_CMPS FROM 'C:\\UNISA_IMPORT\\Final_Import\\Campuses.csv' WITH …

Member Avatar for DCS09
0
352
Member Avatar for vuyiswamb

Good Evening All I have Silverlight application and it is rendering better(not Good) in IE and it renders differently from different browsers, like IE8,Firefox 3, 4, and worse in Chrome. i tried different examples , i used one example that was good , but the moment i view this in …

Member Avatar for stbuchok
0
120
Member Avatar for vuyiswamb

Good Day All i have a IIS server. This IIS Server is publicly available , so i have hosted some WCF services in that server , i can access the URL from outside my network, but i can use it. the url that i access it with is [B][url]http://196.XX.XXX.XXX:8095/datalayer/[/url] [/B] …

Member Avatar for vuyiswamb
0
160
Member Avatar for vuyiswamb

Good Day All i have a Silverlight application that i have written. Tested and it works well in our internal network. Now in my company we have another server, so our Network guys open a port so that someone who is not in our network can view the website. Now …

Member Avatar for vuyiswamb
0
173
Member Avatar for vuyiswamb

hi all I am using a third party gateway. The third party gateway does not support query-string , so i will need to post the form to pass the values to the given URL and another thing is that they don't expose the web-services so we need to use their …

Member Avatar for vuyiswamb
0
900
Member Avatar for vuyiswamb

Every time i am about to post a thread i get an answer while typing the message, maybe i explain it to myself better when i write it , OK so if you have seen this post it means i have not find an answer :) I have a Silverlight …

Member Avatar for Ramesh S
0
345
Member Avatar for vuyiswamb

Good Day All I am accessing an FDB Database with a WCF service. locally it was working fine, but now i want to access the service that is stting on a remote location. my Connection string looks like this [CODE] <add name="FDBConnectionString" connectionString="User=SYSDBA;Password=masterkey;Database=\\192.168.03.14\Database\SCHOOL.fdb;DataSource=192.168.03.14; Port=3050;Dialect=3; Charset=NONE;Role=;Connection lifetime=15;Pooling=true; MinPoolSize=0;MaxPoolSize=50;Packet Size=8192;ServerType=0;"/>[/CODE] i get …

Member Avatar for vuyiswamb
0
8K
Member Avatar for vuyiswamb

Good Day All I have a Generic function that in my Static Class. i have this Class in Silverlight [CODE] public static BitmapSource LoadImage(Byte[] imageBytes) { BitmapImage bmpImage = new BitmapImage(); MemoryStream mystream = new MemoryStream(imageBytes); bmpImage.SetSource(mystream); return bmpImage; }[/CODE] Now this looked fine for me until i had to …

Member Avatar for vuyiswamb
0
2K
Member Avatar for vuyiswamb

Good Evening All i have another Question. i have created a Function that creates a Cookie with a Domain like this [CODE]private static void SetCookieExtedend(String key, String value, String path) { DateTime expires = DateTime.UtcNow + TimeSpan.FromDays(2000); bool secure = false; String domain = "Ecash"; StringBuilder cookie = new StringBuilder(); …

Member Avatar for vuyiswamb
0
109
Member Avatar for vuyiswamb

i have an interesting question for you guys. [CODE] SELECT S.SCHOOLID AS [SCHOOLID],S.SCHOOLNAME AS [SCHOOLNAME],SP.PHOTO AS [PHOTO] FROM SCHOOLPHOTO SP INNER JOIN SCHOOL S ON SP.SCHOOLID = SP.SCHOOLID WHERE S.SCHOOLID IN (SELECT SCHOOLID FROM #SCHOOLS) [/CODE] the Photo Field is an Image Datatype Field, i now you can use them …

Member Avatar for vuyiswamb
0
113
Member Avatar for vuyiswamb

Good Day All I have another question. I have a Silverlight application and in one of the Silverlight pages i am hosting an Asp.net Page using a RadhtmlContainer(Telerik). I created a Cookie in Silverlight like this [CODE] public static void SetCookie(string key, string value) { // string oldCookie = HtmlPage.Document.GetProperty("cookie") …

Member Avatar for aspproject
0
272
Member Avatar for vuyiswamb

Good Day All I have an asp.net project that does the CC handling for me and if the cc comes from a certain application it redirects to the page in a certain application. In that Project there is a page named “Buycredit” That contains a Page_load that has this [CODE] …

Member Avatar for vuyiswamb
0
118
Member Avatar for vuyiswamb

Good Day All i have a a WCF service , that is checking the login details and its working fine as it should, i decided to add another Function that will display data. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.Text; namespace DAL { // NOTE: …

Member Avatar for tinymark
0
114
Member Avatar for vuyiswamb

Good Day All I have an Sp and UDF. the UDF cant take #tables. so i want to incorporate the functionality that is being provided by the udf and make it part of the code. the first part of my statement creates a solid table that is being used in …

Member Avatar for vuyiswamb
0
214
Member Avatar for vuyiswamb

Good Day All i have the Following sp [CODE]SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[sp_Timetable_View] @selectionType varchar(30), -- either Venues, Staff, Subjects, Curricula etc... @selectedItems ntext, @selectedTerms ntext AS /*This Part of the code was Representing the Sp Get_Staff_Cycles_For_TimeTable due to temp table scope , i …

Member Avatar for sknake
0
165
Member Avatar for vuyiswamb

Good Day All i have a Table with the ID Field that was not an identity Field. This Field has not Duplicates. Now later i want to Change this numeric Field as an Identity Field like this [CODE]--STEP 7 ADD THE IDENTITY BACK IN TABLE MTM_ACTV_STAFF ALTER TABLE [New_Jaco].[dbo].[MTM_ACTV_STAFF] ALTER …

Member Avatar for vuyiswamb
0
102
Member Avatar for vuyiswamb

Good Day All i have the Following that table [CODE] ID | ACTV |VENU |STUD | TRIES ===================================== 1 1 4 162 0 2 4 5 104 0 3 8 5 138 0 4 15 2 68 0 5 15 4 291 0 6 21 4 171 0 7 22 …

Member Avatar for urtrivedi
0
178
Member Avatar for vuyiswamb

Good Day All i have the Following Function [CODE] private static void OMEGA_calcActvEqv() { SqlConnection conn1 = CommonFunctions.getSQLConnectionForThread(THREAD_DATA[0].ToString()); string SQL = "SELECT MAX(D.OFFS + 1) * MAX(R.OFFS + 1) FROM TBL_ROWS R, TBL_CLMN D; SELECT MAX(OFFS + 1) FROM TBL_ROWS;"; SqlCommand cmd = new SqlCommand(SQL, conn1); SqlDataReader rdr = cmd.ExecuteReader(); …

Member Avatar for vuyiswamb
0
2K
Member Avatar for vuyiswamb

Good Day all i have the Following Query [CODE] DECLARE @CurrentTime DATETIME SET @CurrentTime = CURRENT_TIMESTAMP select tr.Descr [Room], tb.Purpose [Purpose], tb.Description [Description], convert(varchar,datepart(hour,tb.starttime))+':'+convert(varchar,datepart(minute,tb.starttime)) [Start Time], convert(varchar,datepart(hour,tb.endtime))+':'+convert(varchar,datepart(minute,tb.endtime)) [End Time], tu.name [Requested by] from tbl_booking tb inner join tbl_resource tr on tb.resources = tr.id inner join tbl_user tu on tu.id = …

Member Avatar for vuyiswamb
0
89
Member Avatar for vuyiswamb

Good Day All am restoring a Database Programatically in Sql. Now if the backup is located in the remote machine i use a Share [QUOTE]\\Vuyiswa\MyShare\[/QUOTE] but i will get the Following Error [QUOTE] Exception caught in: ExecuteStoredProc: The file "\\Vuyiswa\Databases\\REmoteTest33.mdf" is on a network path that is not supported for …

Member Avatar for Ramesh S
0
198
Member Avatar for vuyiswamb

Good Day All I have the Following Query [CODE] DECLARE @CurrentTime DATETIME SET @CurrentTime = CURRENT_TIMESTAMP select tr.Descr [Room], tb.Purpose [Purpose], tb.Description [Description], convert(varchar,datepart(hour,tb.starttime))+':'+convert(varchar,datepart(minute,tb.starttime)) [Start Time], convert(varchar,datepart(hour,tb.endtime))+':'+convert(varchar,datepart(minute,tb.endtime)) [End Time], tu.name [Requested by] from tbl_booking tb inner join tbl_resource tr on tb.resources = tr.id inner join tbl_user tu on tu.id = …

Member Avatar for vuyiswamb
0
97
Member Avatar for vuyiswamb

Good Day all it is Probably a long day, i cant think Straight now. i have a table that looks like this [CODE] Nodeid Parent Description Type Curr ========================================================================================== 89 NULL Compulsory 1 10 90 89 B1052 3 10 2820 89 One of 2 10 [COLOR="red"] 4113 89 B1061 3 …

Member Avatar for sknake
0
83
Member Avatar for vuyiswamb

Good Day All I have SQL 200 and a SQL 2008 in one Machine. At First there was SQL 2000 and i install SQL 2008. Now we have a ilog Application written in C++. am not sure what that developer uses to connect to the SQL. Now the Application can …

Member Avatar for vuyiswamb
0
166
Member Avatar for vuyiswamb

Good Day all I have an SP that is defined like this [CODE]ALTER PROCEDURE [dbo].[sp_Constraints_Update] @xml ntext, @TTBLType varchar(5) AS set nocount on DECLARE @xmldoc int DECLARE @sql varchar(8000) -- In one long sql string do all of the following --Create an internal representation of the XML document. EXEC sp_xml_preparedocument …

Member Avatar for vuyiswamb
0
581
Member Avatar for vuyiswamb

Good Day all I have a Sp that is written like this set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go ALTER PROCEDURE [dbo].[Import_RegistrationsXM] @xml ntext AS set nocount on DECLARE @doc int EXEC sp_xml_preparedocument @doc OUTPUT, @xml TRUNCATE TABLE _RegistrationXM INSERT INTO _RegistrationXM SELECT * FROM OPENXML ( @doc , 'Import/Item' …

Member Avatar for vuyiswamb
0
90
Member Avatar for vuyiswamb

Good Day ALL I have a UserControl that has a Dropdownlist. In the Hosting Page i have a Ultrawebgrid that gets updated based on the Selecteindexchange event the the dropdown. I have have another Control on the Left hand side that needs to be Updated on Selecteindexchange of the Drop …

Member Avatar for vuyiswamb
0
114
Member Avatar for vuyiswamb

Good Day All After Binding my Grid with 3 Columns , i found out that it Duplicates the Columns Twice. like this [code] Activity || Staff Member || Cycles || Activity || Staff Member || Cycles || Activity || Staff Member || Cycles =============================================================================== C[1] || DR Vuyiswa || Year …

Member Avatar for vuyiswamb
0
151
Member Avatar for vuyiswamb

Good Morning All I have the Following code that sends an e-mail, let me first post the markup and the code behind. The following is the markup of my page [code] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head …

Member Avatar for vuyiswamb
0
892
Member Avatar for vuyiswamb

Good Evening All Am amazed that i cant use the Replace Function , its Probably the long that i had. i have the Following code [CODE] String Username = "Vuyiswa"; String Password = "secret"; String strBody = @"<p>Thank you for using !obooking System <br><br> Username:(Username)<br><br>Password:(Password)<br<br>Kind Regards !oBooking</p>"; strBody = Regex.Replace(strBody,Username,"(Username)"); …

Member Avatar for vuyiswamb
0
117
Member Avatar for vuyiswamb

Good day All I have a Challenge. I have the Following StoredProcedure that is doing the Following [code] IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[temp]')) drop table [temp] --Creation of Temp1 SELECT MTN.ID,S.DESCR,ISNULL(MTN.CYCLETEMPLATE,C.CYCLES) AS CYCLETEMPLATE into temp FROM TBL_STAFF S INNER JOIN MTM_ACTV_STAFF MTN ON S.ID = …

Member Avatar for vuyiswamb
0
160
Member Avatar for vuyiswamb

Good Morning All For you to help me and understand my problem, i will have to explain everything in details. I have a usercontrol with with a textbox, this texdtbox changes values so am trapping the values on textchange. so i have set it to "Autopostback="true"" in the usercontrol and …

Member Avatar for serkan sendur
0
116
Member Avatar for vuyiswamb

Good Day All I have a textbox in a userControl and it has a Property "Autopostback" set to true, and as i know , this is encapsulated from the hosting page. now i need to set this property to true so that the Gridview in the Hosting page can recognize …

Member Avatar for vuyiswamb
0
175
Member Avatar for vuyiswamb

Good Morning All I have a table named “Final” with Values like this [code] ID || DESCR || CYCLE ====================================== 1 || Earl G || 20 2 || Earl G || 21 3 || Earl G || 22 4 || Davidson I Dr || 20 5 || Davidson I Dr …

Member Avatar for vuyiswamb
0
481
Member Avatar for vuyiswamb

Good Morning Friends, I have a SP that is Supposed to Restore a Database from a Backup. In some Clients this works well but in those particular client its a Problem. The version is SQL 2005. Here is the Code that fails [CODE] set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go …

Member Avatar for vuyiswamb
0
640
Member Avatar for vuyiswamb

Good Day All i have a table that carries a Field that has data like this [CODE] 10101010101010[/CODE] Now the Function that adds this 1's and 0's is working like this. If its selected insert "1" else "0", So if i can interpret the above if will be [CODE] 1 …

Member Avatar for sknake
0
99
Member Avatar for vuyiswamb

Good Morning Guys I have a Problem on my ASP.NET Application. I have a Web setup Project created and it used to work fine before, but now , when i try to Compile it it gives a Warning [QUOTE]"Object reference not set to an instance of an object"[/QUOTE] And when …

Member Avatar for vuyiswamb
0
379

The End.