|
Hello
I am using C#.NET and SQL Server 2000.
|
|
|
|
|
dikshant@p-dd.com wrote: Hello
I am using C#.NET and SQL Server 2000.
Well good for you. Now what? Was there a question in there anywhere at all? Hellooooooo - no it's not hiding behind the full stop.
|
|
|
|
|
Pete O`Hanlon wrote: Was there a question in there anywhere at all?
Yes, in the subject line.
/ravi
|
|
|
|
|
Ravi Bhavnani wrote: Yes, in the subject line.
Nope - that wasn't a question? There wasn't anywhere near enough detail for that to be considered a question. The subject line is open to way too many interpretations, so a question should be asked in the body of the text to clarify exactly what the OP wanted and what they had tried for themselves.
|
|
|
|
|
I was going to wait ages before replying as it wasn't marked urgent.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
Ah, but you were urgently ignoring it.
|
|
|
|
|
Pete O'Hanlon wrote: wasn't a question?
He did have the word How in the subject line. But again he seemed to have stopped short of asking the question
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Pete O'Hanlon wrote: Hellooooooo - no it's not hiding behind the full stop.
Pete O'Hanlon wrote: Was there a question in there anywhere at all?
Judging by the subject line, I think he wants to know how to detect fired triggers from the database in his C# app?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
See this[^] article. It's specific to SQL Server 2005, but may shed some light.
/ravi
|
|
|
|
|
Dear Friends,
Hi. I had Datalist in that i had Item group Listing of GridView. I put DataList into Panel for scrolling. After filling GridView my DataList will become long. Now what happen when scroll to some item from gridview it directly go to Top of the GridView in DataList. But I want to stay at that grid from Datalist.
I used like:
PANEL(Scrolling Purpose) - (DataList(Header of GridView) -> GridView(Fill with Items to Select) )
Is there anybody can help me.
Thanks a much
"Good Thing Goes With Good People..."
|
|
|
|
|
|
Your question is much too broad to be answered in a single reply. Check out this[^] article (one of many you can find on the web) to help you get started.
/ravi
|
|
|
|
|
Your question is too broad. You may want to narrow it down. Take it easy with the smileys
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Thanks, Paul
I am almost still on paper work before putting down the codes.I am still on the tables.
If my Table is Transaction,
I should be having
::Deposite
::Withdrawal
:: and few more
In case of Customer,
I should be having
::Customer
::Services
:: and few more.
Getting the Hint??
KIDO KIDI MINI REZA
HERE FIX DI MATURITY
SAMBA RAMBA DIBLO
STYLE ANTIDIZASTA
BLISH MANTIRIOLOJ
|
|
|
|
|
hi
I want hiden the window of my project in the ConsoleApplication
but I don't know how I can doning it
please help me if you know about it
regard
|
|
|
|
|
You must tell the system to start the application without a window. The following code will do it:
<br />
ProcessStartInfo psinfo = new ProcessStartInfo("MyConsoleApp.exe");<br />
psinfo.UseShellExecute = false;<br />
psinfo.CreateNoWindow = true;<br />
Process proc = Process.Start(psinfo);<br />
proc.WaitForExit();<br />
I don't think there is an easy way to hide the console window from the console application itself.
|
|
|
|
|
In addition to Christian's suggestion, I think you could instead create a Windows Forms application and simply not create or display the main form.
/ravi
|
|
|
|
|
Ravi Bhavnani wrote: I think you could instead create a Windows Forms application and simply not create or display the main form.
That would be certainly a bit less coding.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi
I want to send different files to different clients but at same time from server.
I've successfully sent a file to a single client and then to multiclients but at different times using threads.
As when server is sending a file to one client and during that transmission if another clients requests for a file then 1st transmission stops and 2nd one also gets prob.
so plz try to tell ASAP the appropriate solution for this.
Regards.
Shanzay
|
|
|
|
|
How are you "sending" files?
How does a client "request" transmission of a file?
A WCF service is one way to easily solve this problem.
/ravi
|
|
|
|
|
I used UDP protocol for sending Video files and by using streaming I m sending.At first Server Rcv one message for sending files then send file,the Code for sending file is as following using threads.
private void liveVideoToolStripMenuItem_Click(object sender, EventArgs e)<br />
{<br />
try<br />
{<br />
Control.CheckForIllegalCrossThreadCalls = false;<br />
thvideo = new Thread(new ThreadStart(transmitVideo));<br />
thvideo.IsBackground = true;<br />
thvideo.Start();<br />
}<br />
catch (ThreadStartException thre)<br />
{<br />
MessageBox.Show(thre.Message);<br />
}<br />
<br />
<br />
}<br />
<br />
void transmitVideo()<br />
{<br />
<br />
<br />
<br />
filesndsock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);<br />
<br />
ipd = new IPEndPoint(IPAddress.Any, 7090);<br />
filesndsock.Bind(ipd);<br />
MulticastOption moi = new MulticastOption(IPAddress.Parse("224.0.0.1"));<br />
filesndsock.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.AddMembership, moi);<br />
<br />
ipep = (EndPoint)ipd;<br />
while (true)<br />
{<br />
try<br />
{<br />
<br />
filesndsock.ReceiveFrom(rcvbuf, ref ipep);<br />
<br />
<br />
msg = Encoding.ASCII.GetString(rcvbuf);<br />
<br />
MessageBox.Show(msg);<br />
try<br />
{<br />
thvideofile = new Thread(new ThreadStart(sendfile));<br />
thvideofile.IsBackground = true;<br />
thvideofile.Start();<br />
}<br />
catch (ThreadStartException thre)<br />
{<br />
MessageBox.Show(thre.Message);<br />
}<br />
}<br />
catch (Exception ee)<br />
{<br />
MessageBox.Show(this, ee.Message, "Unknown Exception");<br />
}<br />
}<br />
}<br />
void sendfile()<br />
{<br />
<br />
if (dlgOpen.ShowDialog() == DialogResult.OK)<br />
{<br />
inStream = File.OpenRead(dlgOpen.FileName);<br />
<br />
bufInStream = new BufferedStream(inStream);<br />
int bytesRead = 0;<br />
<br />
while ((bytesRead = bufInStream.Read(buf, 0, 16384)) > 0)<br />
{<br />
Thread.Sleep(20);<br />
<br />
filesndsock.SendTo(buf, bytesRead, SocketFlags.None, ipep); <br />
<br />
} <br />
}<br />
MessageBox.Show("File is completely transfered");<br />
<br />
bufInStream.Close();<br />
inStream.Close();<br />
<br />
}
But for sending same time to multi clients what should I do?
-- modified at 4:28 Saturday 1st December, 2007
-- modified at 5:04 Saturday 1st December, 2007
Shanzay
|
|
|
|
|
|
If I put the values 5 and 2 in the TextBoxes txtValor1 and txtValor2,
in the TextBox txtResultado appear 2 and not 2.5 .
Why?
My code is:
<br />
long valor1,valor2;<br />
double resultado;<br />
<br />
valor1 = int.Parse(txtValor1.Text);<br />
valor2 = int.Parse(txtValor2.Text);<br />
<br />
if (opcDivide.Checked)<br />
{<br />
resultado=valor1/valor2;<br />
txtResultado.Text=Convert.ToString(resultado);<br />
}<br />
<br />
Thanks.
|
|
|
|
|
when you divide this two values try to cast and initialize to result
spaps
|
|
|
|
|
THe Result has to be cast into string...
TxtResult.Text= result.ToString();
-Sreejith
|
|
|
|