|
Hello all,
I have to develop one application in which i can capture all packet passing thru my NIC. If u want more idea about this then see ethereal[^].
Divyang Mithaiwala
|
|
|
|
|
Search in codeproject.com using a keyword "packet capture".
You will get a lot of articles there.
|
|
|
|
|
Hello stancrm,
Thanx. Actually i have search for Articles but i use different key words. And i a fail. But your key word is good.
Thanx again.
Regards,
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
Why reinvent the wheel? You can get ethereal free. It is an excellent program, plus it can insert into the network in promiscuous mode
|
|
|
|
|
Hello,
My project is start from ethereal. And go more far from this. I have to analyze voip traffic. And also manage it.
regards,
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
There is a winpcap .NET wrapper here on CP IIRC. Just search
|
|
|
|
|
Hi,
Looking for code to show after selecting from a combo box 3 other combo boxes and a submit button
Thanks,
Daniela
|
|
|
|
|
Make the visible property false at start up
and then in the combobox_selectindex method make all controll's
visible property true.
Rahul Kulkarni
|
|
|
|
|
Hi again,
I'm quite fresh here - so could you please be more specific about "combobox_selectindex method make all controll's
visible property true" ?
Thanks,
danish_bear
|
|
|
|
|
You can double click the drop down in the design , it will open the cede page with selected index changed event.
There you can write code to make other dropdown visible.
Set autopostback property of dropdown to true
|
|
|
|
|
Hi Daniela, If I read your request right, you want something like this perhaps?
private void Form1_Load(object sender, EventArgs e)
{
//some magic code you need at form initialization goes here
//probably code that populates the combo boxes with whatever
//values you need at startup or populate on the fly as in the
//below event handler
//Set your form objects to be hidden or alternatively, you can
//set them to be hidden when they're initially created
MySecondComboBox.Visible = false;
MyThirdComboBox.Visible = false;
MyFourthComboBox.Visible = false;
MySubmitButton.Visible = false;
}
private void MyFirstComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
//populate the combo boxes before making them visble
PopulateMySecondComboBox();
PopulateMyThirdComboBox();
PopulateMyFourthComboBox();
//now make them visble
MySecondComboBox.Visible = true;
MyThirdComboBox.Visible = true;
MyFourthComboBox.Visible = true;
MySubmitButton.Visible = true;
}
There's supporting code for all this of course, but I will leave that to you. Hope this helps!
Mike Poz
|
|
|
|
|
Yes - I could use this (:
Thanks !!!!
Daniela
danish_bear
|
|
|
|
|
Hi,
Looking for a c# code to show within a table the selection of a combo box in the appropriate column of the table after pressing a submit button( table, combo box, submit button are in the same form)
Thanks,
danish_bear
|
|
|
|
|
hi
i have created shared add-in COM in C# project type
Extensible.Which has Integrated visio 2003 and make
(in visio owen stencilbar,menubar,toolbar)
after stencil file name c:\customshape.vss
but problem is that, i want to dynamic file path
in stencil bar how to that possible.
ali
|
|
|
|
|
How can i bind child forms with MDI form in C#.
|
|
|
|
|
Set the parent property of the form to point to the parent.
|
|
|
|
|
Hi,
Does any one know of an example that allows a file to be downloaded from a server and saved to a clients hard disk without user intervention?
I have found an article that does it in VB - however an attempt to download the zip file of code to consider altering it failed as the zip file does not exist.
The file to be downloaded will always go to the same directory on the disk.
Thanks Andrew
|
|
|
|
|
Try System.Net.HttpWebRequest / System.Net.HttpWebResponse classes.
item est:
HttpWebRequest request=(HttpWebRequest) HttpWebRequest.Create("URI");<br />
HttpWebResponse resp=(HttpWebResponse) request.GetResponse(); <br />
StreamReader sread=new StreamReader(resp.GetResponseStream());<br />
string content=sread.ReadToEnd();<br />
sread.Close();<br />
StreamWriter swr=new StreamWriter("local_path",true);<br />
swr.Write(content);<br />
swr.Close();
__________
Non nobis Domine, non nobis. Set nomini tua da gloriam
|
|
|
|
|
Thanks,
However this only downloads to the server from the web site running on the same server...
(ie: I added the code to an aspx.cs page on my web site ran the code in the browser from another desktop machine and a file was successfully downloaded from the website on the server to a directory on the server)
However what I am looking to do is copy the file from the server directory to a directory on the client(or desktop where I am running the browser).
I assume I need to use ActiveX to get access rights to the local machine - however I have so far not found a good example or sufficient information on doing this with C#/Visual Studio 2005.
Thanks again.
Any further help/advice/suggestions much appreciated.
Regards Andrew
|
|
|
|
|
Hello,
I have a connection string that is stored in a database, the string is as follows:
"Server=TOIMISTO\\SQLEXPRESS;Database=ValkyriaDB;Trusted_Connection=True;"
Now if i open an connection using this string it works properly if hardcoded, but if i read it from database i get an exception, the reason is that the string gets the form where // is replaced by //// for some reason:
"Server=TOIMISTO\\\\SQLEXPRESS;Database=ValkyriaDB;Trusted_Connection=True;"
and offcourse the SQL databse throws exception.
I tried to replace "\\\\" with "\\" but i did not succeed with
String.Replace("\\\\", "\\");
EDIT: i did get the replace to work (and also the connection) but i still wonder if there is a better solution and what causes it.
Could somebody help me to solve this problem? It is quit annoying and i would apreciate if somebody told me the reason also...
Johan
-- modified at 5:47 Wednesday 14th June, 2006
|
|
|
|
|
Simple answer: Don't put a second '\' in the database string. This is only needed when you hardcode the string. When typing "\\" the actual string crated is only "\". The fact that you need two of them is just to tell the compiler what you are actually meaning. Instead of this you could also write @"Server=TOIMISTO\SQLEXPRESS;Database=ValkyriaDB;Trusted_Connection=True;". The @ tells the compiler that backslashes within the whole string are not treated specially.
|
|
|
|
|
hi
i wrote this code :
DataRow objDataRow = ds.Tables[0].Rows[i];
then my question is how to convert the objDataRow to array of string
thank you all
Tamimi - Code
|
|
|
|
|
Tamimi - Code wrote: DataRow objDataRow = ds.Tables[0].Rows[i];
then my question is how to convert the objDataRow to array of string
object[] itemArray = objDataRow.ItemArray;
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
-- modified at 5:24 Wednesday 14th June, 2006
|
|
|
|
|
thank you but i want it exactly array of string
i don't want to go throught a loop to convert it to array
of string
thank you again
Tamimi - Code
|
|
|
|
|
string[] str = new string[ds.Tables[0].Columns.count];
rahul
|
|
|
|