I developed my solution based on cursors.
But I have a concern if the cursor has any disadvantage or not.
thanks
User Profile
Collapse
-
How to take averages of data and place them into a temp table?
Hi,
I have a table MyTable with the followind Data
Month Week Price
1 1 10
1 1 12
1 2 16
1 2 20
1 3 12
1 4 16
I need to apply this formula (Avg price of W2 - Avg price of W1) and put the result in a temp table and do the same for W4 and W3
So the temp table will be of the following form
Month... -
Thanks for ur help.
can u give me some samples and examples if possibleLeave a comment:
-
How to monitor 3rd parties in C#
Hi,
I have a program that uses 3rd parties like VLC, Windows media player to play music and videos.
I need to monitor these 3rd parties (to see if they are working or not). Is there a way to do this in C#?
thanks -
-
Windows Service: Copy files from a shared folder
Hi,
I have a Windows Service that copies xml files from a shared folder on the server.
I am using System.IO.File. Copy(\\Server-Name\SharedDir) method. But whenever I try to copy files there is an error "Access is denied".
I tried the same code in Windows application and it worls fine. The problem is present only in the Windows Service.
Any suggestions?
Thanks -
Let me explain more about the scenario;
I am using WPF.
This is in onload of the page
delegate string AsyncMethodHand ler(cls_PAGESTR UCTURE.NumBtnIt em obj_numBtn);
foreach (NumBtnItem obj_numBtn in obj_page.NumBtn s)
{
AsyncMethodHand ler caller = default(AsyncMe thodHandler);
caller = new AsyncMethodHand ler(CreateBtns);
caller.BeginInv oke(obj_numBtn,...Leave a comment:
-
Delegates and STA problem
Hi,
I Have a for each loop that calls a method in a class that will generate the UI.
I want to call this method asynchronously. I used a delegate, but every time I do deleagte.beginI nvoke() this error appears:
The calling thread must be STA, because many UI components require this.
Any ideas? -
sebouh181 replied to An ActiveX control might be unsafe to interact with other parts of the page. Do you win JavascriptNo other choice??????
I dont want to create an IIS, so i dont have trusted sites!!!Leave a comment:
-
sebouh181 replied to An ActiveX control might be unsafe to interact with other parts of the page. Do you win JavascriptI've changed the following IE settings but still the Message is appearing.
Tools>>Internet Options...
Security Tab
Local Intranet - Cutom Level...
ActiveX controls and plug-ins
Automatic prompting for ActiveX controls (Enable)
Binary and script behaviours (Enable)
Download signed ActiveX controls (Enable)
Download unsigned ActiveX controls (Enable)
Initialize and script...Leave a comment:
-
sebouh181 started a topic An ActiveX control might be unsafe to interact with other parts of the page. Do you win JavascriptAn ActiveX control might be unsafe to interact with other parts of the page. Do you w
I am writing to registry using javascript.
when i run this javascript code in my HTML page the following warning message appearsCode:var wsh = new ActiveXObject("WScript.Shell"); var key = "HKLM\\Software\\Neos\\2.0\\LightMode\\my-script"; wsh.RegWrite (key, 1999, "REG_SZ");
An ActiveX control might be unsafe to interact with other parts of the page. Do you want to allow this i... -
My question is that with javascript (client side) or any other client side script can i retreive data like SQL Select statement??
Or shall I use another technique?Leave a comment:
-
Big means large data.
i want to retrieve the data from the client sideLeave a comment:
-
XML - Is there a select statement to read from XML?
Hi all,
I have a XML file like this format
[CODE=xml]<global>
<Item Key="Key1" value="Value1"/>
<Item Key="Key2" value="Value2"/>
<Item Key="Key3" value="Value3"/>
.
.
.
</global>[/CODE]
I will be using this like global.as in ASP.
This file is very big and I... -
Arabic Text. Point Problem
Hello everyone
I have an ASP.NET website with arabic interface.
When I type arabic text and at the end of the text I put a point, the point is displayed at the beginning of the text.
example :
مرحبا.
As u noticed the point is displayed at the beginning of the text where it must be displayed at the end.
Can anyone Help me?? -
The problem is in this code
FTB_API['FreeTextBox1'].mode==FTB_MODE _DESIGN
IT IS GIVING ME THE FOLLOWING JS ERROR: "object error"
maybe it is from the freetextbox.dll ?...Leave a comment:
-
Call Javascript fromASP.NET
Hi!
I have a javascript function in my .aspx page
function insertField(fie ld)
{
var TxtArea = document.getEle mentById("FreeT extBox1");
if(document.sel ection)
{
if(FTB_API['FreeTextBox1'].mode==FTB_MODE _DESIGN)
{
var DesignView=docu ment.getElement ById("FreeTextB ox1_designEdito r");
DesignView.cont entWindow.docum ent.body.focus( );... -
2 Streams in one program. Is it possible.
I have a class that has a networkstream, streamwriter and a stream reader.
in my program I have a new stream and I am reading from the stream.
Whenever I use my programs stream and then use the Class stream it is giving me this error: "Cannot access a disposed object".
I just want to know if we can use 2 streams in one program!!!
thanks! -
I had tried this, it worked fine.
But ther are 2 select statements which is not good for performance.
i just want to know if there is a better way to do so.
thanks for your helpLeave a comment:
No activity results to display
Show More
Leave a comment: