|
You're right with your remark, thanks for this, but it doesn't give me an answer to my question.
As an Assembler, C and C++ programmer I know I could solve the problem easily, but the policy of my company is to work with C#, so I'm learning this language and hoped to find some answers to my question.
|
|
|
|
|
Actually, it does give you the answer. You're going to have to do P/Invoke and use unmanaged code to do this.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi guys,
I am new to file operation in .NET.I read few articles on FileStream class.I know seek() method.But guys how can i insert some text say "xyz" at
2nd line and at 5th index.Example
File1.txt
---------
hello
billgates
how r u?
---------
output :
hello
billgxyzates
how r u?
Solution wud be appreciated.
Thank u in advance
Regards
Chintan
www.visharadsoft.com
(Nothing is so purify as KNOWLEDGE)
|
|
|
|
|
You can't insert data in the middle of a file.
If the file is fairly small, just read the entire file, insert the text, and write the entire file back.
---
single minded; short sighted; long gone;
|
|
|
|
|
Is there a way I can access to the definition and implementation of the members of the TcpListener class?
|
|
|
|
|
Hi,
Microsoft has publised an "ssCLI" or "shared source CLI" which is an example of how .NET
can be implemented. It is not the code in the official version though. Google it, you will
find it right there. There is a lot to read...
And there is the Mono project, that's an open source .NET implementation for non-Windows
platforms. Freely available in source form.
|
|
|
|
|
|
Reflector for .NET[^]
Reflector allows you to decompile .Net IL and shows you the code. It is quite possibly the best tool for .Net you could possibly want.
(It's helped me inumerable times when I've needed to see the implimentation in the BCL or a 3rd party assembly)
|
|
|
|
|
Great! I'll try it. Thank U.
|
|
|
|
|
np
|
|
|
|
|
i ve an infragistics tab control. i want to select one of the pages in the tab while clicking a link in the popup. how can i do this using javascript? Any one can help me plz.....
|
|
|
|
|
I think you would be better off searching the Infragistics support forums for this. 2 minutes on the Infragistics site and I found:
this.webTab.Tabs.GetTab(0).ContentPane.TargetUrl = "http://www.microsoft.com";
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hi all,
In my application iam using datagrid ,in that i want to do navigation but my code is not reflecting .and also i want to edit the row , how to do this
in properties iam using allow paging=true;
<pre>
private void DataGrid1_PageIndexChanged(object source,System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
{
DataGrid1.CurrentPageIndex =e.NewPageIndex ;
//DataGrid1.CurrentPageIndex = e.NewPageIndex;
String connection = "uid=sa; password=sa123; database=usermanagement; server=c113";
SqlConnection con= new SqlConnection (connection);
//SqlCommand cmd=new SqlCommand ("select * from tbl_user_management
SqlDataAdapter da=new SqlDataAdapter ("select * from tbl_user_management",con);
con.Open ();
DataSet ds=new DataSet ();
da .Fill (ds ,"tbl_user_management");
DataGrid1 .DataSource =ds.Tables[0];// ("tbl_user_management");
DataGrid1 .DataBind ();
con.Close ();
}
<pre>
srinivas
srinivas
|
|
|
|
|
i need to know waht is com ?
md_refay
|
|
|
|
|
|
He asked the other day what ajax is. I don't think he's heard of Google.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
its actually quite amusing in his profile he has listed COM as one of his interests. Another person who needs to be spoonfed answers I'm just wondering what sort of software developers enjoy being spoonfed.
|
|
|
|
|
What is the context?
COM can be the top level domain for companies
COM can be the serial port
COM can be Component Object Model
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
Hi All,
Plz give code me code to take a difference between two date (difference must be in the days) .
Thanx in advance,
Nikesh Kr. Yadav
CSS Infotech
Sec- 31
Gurgaon,
Haryana(India)
|
|
|
|
|
Timespan timespan = (dateTime1 - dateTime2);
timespan.TotalDays;
|
|
|
|
|
thank you
Nikesh Kr. Yadav
CSS Infotech
Sec- 31
Gurgaon,
Haryana(India)
|
|
|
|
|
np
|
|
|
|
|
hi,
how to read the following xml file in C#. Plz can any one help.
<record>
<student id="1">
<class> 5
<unit>5
<street> river street
<aa>
<bb>
<footballteam> MU
<student id="2">
<class> 10
<unit>1
<street> lake street
<aa>
<bb>
<footballteam> RM
Thanx and regards,
pls
|
|
|
|
|
You need to check 'Ignore HTML tags' in order to post XML. The answer is that the XmlDocument class or XmlDataDocument class will read this file, if it's on disc, or will accept it as a string. What I think you mean is, how do you access information in the file ? For that, you need to learn XPath, and the XML DOM. XPath is the language used to search for XML nodes, and the DOM is the standard interface that the aforementioned classes offer for searching, and modifying XML.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
- <record>
- <student id="1">
<Class>5</Class>
<section>Science</section>
- <Address>
<unit>5</unit>
<street>river street</street>
</Address>
<aa />
<bb />
<FootballTeam>MU</FootballTeam>
</student>
- <student id="2">
<Class>10</Class>
<section>Mathematics</section>
- <Address>
<unit>1</unit>
<street>lake street</street>
</Address>
<aa />
<bb />
<FootballTeam>RM</FootballTeam>
</student>
</record>
|
|
|
|