|
Hi all,
I am running SSIS package from C# that works fine if the stpes contains sql statements only,
but if some steps contain VB script or other language then it fails
can anybody tell me how to execute the SSIS package that contains combnation of steps and may be some steps contains VB script etc..
Thanks In advance....
vikas da
|
|
|
|
|
Hi,
I am having a problem that I have been trying to solve for the last 2 weeks. This might be seen in many travel sites like lastminute.com. The situation is simple. I need an indeterminate progress bar. I enter the search criteria/parameters (From/To Date & Destination) in page ‘A’. I click the search button now. I need to be transferred to Page ‘B’, which is empty but consists of a progress bar like image displaying any message and then I need to be transferred to page ‘C’ where the results will be displayed. I use the term “Indeterminate”, coz the progress bar is displayed based on the time taken (which can vary) to display the results and it not a fixed time interval(Usually with thread. sleep type) like u see in many sites. I am using VS 2005 + MS SQL 2005 + ASP.NET 2.0 + AJAX 1.0. Please help me out. Thank you
Regards,
balaji
|
|
|
|
|
The progress bar you're seeing is an animated gif. Add an animated gif to your page and show/hide it as you do your AJAX calls.
Please ask ASP.NET questions in the ASP.NET forum in future.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello friends,
I want to generate unique random numbers like if user want to generate random number between 100 to 500 then the number generated between them should be unique..
But there is a problem that number that i have generated are not unique my code is.
Random b = new Random();
string from = textBox3.Text;
string end = textBox4.Text;
int min= Convert.ToInt32(from);
int max = Convert.ToInt32(end);
for (int i = min; i <= max; i++)
{
listBox1.Items.Add(b.Next(min, max));
}
this code generate random number between min amd max but they are not unique.
|
|
|
|
|
The way to stop your numbers from repeating is to build a list of numbers ( so, from 100 to 500 ), then generate random numbers, the first would be between 0 and 399. Then you grab the number at that index in your list, and remove it. So, every time, the maximum value for your random number goes down by one ( use the Count property of the list for this ).
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Sir thanks for suggestion.
But i am new in .NET so please can you give me code of this problem..
because i have tried what u write but i am unable to achieve it
Regards
Dikshant
|
|
|
|
|
It's incredibly straightforward, do you own any C# books ? You should buy one and work through it.
The steps are
List<int> list = new List<int>();
for(int 100;n<=500;++n)
{
list.Add(n);
}
Then when you want a number, generate a randon number between 0 and list.Count - 1. Grab that value and then remove it from the list.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi all,
I used the Timer class to make a tick event in specific interval, in my C# .Net service. My attempt as follows.
private System.Timers.Timer TimerTicker = null;
public RfService()
{
InitializeComponent();
const double INTERVAL = 10000;
TimerTicker = new System.Timers.Timer( INTERVAL );
TimerTicker.Elapsed += new ElapsedEventHandler( this.ServiceTimer_Tick );
}
Here, ServiceTimer_Tick() do my processing part.
My question is this. Immediately after starting my service start to count the tick on each 10 seconds and do the processing. That's fine, and work it well.
But, I want to hold the tick for 2 minutes immediately after starting the service and then do the 10 seconds interval process. That mean only the first time I want to hold the tick for 2 minutes.
I think it is clear for you. How can I do this. I'm really new for C#. Specially on threading, because I found that using threading I can do that....
Thanks
I appreciate your help all the time...
Eranga
|
|
|
|
|
It's pretty straightforward. Set the interval to whatever you want it to be for the first tick, and in ServiceTimer_Tick, set the interval property of the timer to whatever you want it to be afer that.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
If I get you correctly, you ask me to use two tick event. Yes I think that. But one of tick event execute only one time, stop it after 2 minute.
And also I do all those things in constructor method.
I appreciate your help all the time...
Eranga
|
|
|
|
|
No, not even remotely.
The timer has an interval property. Inside your tick event, set the Interval property to the value you want it to be after the first time it fires.
All I am suggesting is you do something like
Timer.Interval = 2000; // 2 seconds
inside the tick event.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Ok, I got the point and I'll try it now.
I appreciate your help all the time...
Eranga
|
|
|
|
|
Hi to ALL...
i have one doubt regarding to my project ...i have one compiled socket source code .In this source code are fully worked Windows XP...but in this code is not suitable for vista(not compiled)..
what is the problem for this ?
Whats the solution for that?
Is there any DLL corruption or not?If it is yes what kind of DLL add that problem ..?
....Please give your suggestion or any URL ...
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
What's the actual issue ? Sounds to me like Vista is blocking your sockets. If it won't build under vista, then post your errors.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi thanks to your replay ..thats no error displayed ..its executed when i clicked one event ..that action is terminated in vista ..but in XP its worked thats the problem ...
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
OK, so your program doesn't work in Vista. Welcome to the club. You need to learn how vista permissions work and investigate how to change your code so it works in Vista.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
yes ..its absolutely correct ...but how its possible
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
Hi friend i am waiting for your replay!!!
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
I'm sure you are. At this point, I'm not sure how you expect that I'd have any idea of what your program does, what the error is, or anything else that I could use to diagnose the problem. I'm also logging off for dinner, why not get the exact text of your error message, and type it into google ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Friend Thanks to your Replay....Actually Mr .Christian its not displaying any error ...the output of our project is one kind GUI.In Windows XP when i Clicked that application its worked ..At the same time In Vista i Clicked that application its suddenly terminated ...this is my problem thats why i am not search in google...
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
OK - well, I guarentee that I have absolutely no idea what's going on, how can I ? Have you checked the event log ?
Worst case - get a dev environment in Vista, and debug it to see what line it fails on.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
k Christian ..i ll check it ..please send your mail address ..
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
rowdy_vc++ wrote: please send your mail address ..
Why should he do that? SO you can pester him in private!?
People here are volunteers and the answers go on the forum so that if someone with a similar problem arrives they can see there is already a solution. Asking for a private email correspondance is somewhat inconsiderate of other users. If you want private assistance then pay for it. If you want free then respect the people who are available to help.
|
|
|
|
|
rowdy_vc++ wrote: Hi friend i am waiting for your replay!!!
You waited about 45 minutes for a reply! Get a grip. If you want a response that fast pay for it. People here are volunteers who spend their spare time to help. They are NOT at your beck-and-call whenever you want them.
You were given a suggestion to follow up, but it seems you were too lazy and started to pester people instead. Just to recap, the suggestion was: "You need to learn how vista permissions work and investigate how to change your code so it works in Vista."
|
|
|
|
|
loading pages should be showed before the next page data are loaded. help me friends.
How may i know calculate the next page controls are loaded?
Is there any methods to find out this problem?
Note: I don't want using ajax controls
Gopinath.R
|
|
|
|