|
First This is an asp.net question so you should have posted it in the correct forum.
And regarding the error it states that the gridview control has to be inside the form control which should have runat=server attributes.
Apurva Kaushal
|
|
|
|
|
how to delete a string from a string array.
|
|
|
|
|
Have a look at String.Replace method but remember that it will delete all occurrences from the string
|
|
|
|
|
you want to diminsish the size of the array or put a null or "" instead?
|
|
|
|
|
Hello,
I would suggest to use the System.Collections.Specialized.StringCollection class instead.
All the best,
Martin
|
|
|
|
|
You can also use StringBuilder. It depends how many times you will use it
|
|
|
|
|
Hello,
I wouldn't prevere the StringBuilder as an alternative to a string[].
I would miss methods like Contains.
Allt he best,
Martin
|
|
|
|
|
hello,
Thanks my problem solved
|
|
|
|
|
|
You can't easily. You'd have to copy the array to a second array leaving out the string you don't want.
Just use List<string> instead.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hi,
I am trying to learn C# for a few months. I have managed writing my own classes and developped a few little .NET applications. My Pc has .NET FrameWork of ver: 2.0 .
Recently I have a need to create a new project (In Visual Studio - 2005) for some kind of small devices that runs Windows CE and have Compact FrameWork. In Visual Studio 2005 I do this steps "File\New\Project" and choose "Visual C# \ Smart Device" and <pocket pc="" 2006=""> Or <widnows ce="" 5.0=""> as project type, and choose <device application=""> .. Just to new a project for mobile devices.
Unfortunately creating fails with this message ("This Project requires .NET Compact FrameWork v2.0, whics is not installed on this machine"). And also I tried Device Application(1.0) but the result is an error. Althoug I use C#, just to test I tried this in Vb.net but I failed creating a new Device App. project.
What does it mean ? Should I install Compact FW 2.0 on my PC, which seems strange to me ?
And I also should mention that while I was intalling Visual Studio-2005 with a Custom Instalation in which I only not choosen the J# components. I am sure that I selected all other compnents (Vb.net, C#, Web programming Tools, Device porgramming Capabilities.. things like that )
Thanks for all in advance.
|
|
|
|
|
Hi all,
Anybody could assist me. how to resize two dimensional array. Actually I have chunk the first row in matrix. like I have Matrix[2][4]. I have chunk
Matrix[0][0...3] and I want to redeclare Matrix like[1][4] dynamically. if u have any way. Please help me out.
Sapan Roy
Thanks to All
|
|
|
|
|
Hello,
Look at this question from
27 June 2007[^]
All the best,
Martin
|
|
|
|
|
hi,
any idea on how to run a c# application on solaris machine?
it can be webservice or windows application....
|
|
|
|
|
plz check-out mono...
Mono (OpenSource .NET implementation for multiplatform )
http://www.mono-project.com/Main_Page
hope, it helps..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
cool83 wrote: to run a c# application on solaris machine
You need .NET Runtime CLR. For Solaris, there should be a distribution from Mono.
|
|
|
|
|
hi i am currently trying to read/write data to an ms 2007 excel.
i already have some past experiance doing this with vb6 however i need to do it using vs.net 2005 c# console application now.
and the past code that i used be4 dont work can anyone recommand something?
|
|
|
|
|
|
hi,
My custom control property cant able to carry its value...when i pass that property in the query string...
my code is
OnClientClick="javascript:return window.showModalDialog('frmLookUpWindow.aspx?IQuery=PartnerProduct|'+document.getElementById('ctl00_ContentPlaceHolder1_LookUpTextPartnerDesc').Tag,'Look_Up','dialogHeight:442px;dialogWidth:588px;scroll ;status:off')"
please advice me!!!
Siva
|
|
|
|
|
maybe cuz of this "ctl00_ContentPlaceHolder1_LookUpTextPartnerDesc"
ct100 might be vary from time to time.. better u set the static value. in order to do this, set this.ID = "something" in page load..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi,
I have a T-SQL Script file which i want to run without opening it and reading its contents. Please tell me how can i do it using ADO.Net or any other way.
Regards,
Wasif Ehsan.
|
|
|
|
|
try the following code from this post. http://blog.miseldine.com/?p=24
<br />
private static void ExecuteSql(SqlConnection ___conn, string ___fileName)<br />
{<br />
string[] __sqlStatements;<br />
Regex __r = new Regex("^GO", RegexOptions.Multiline);<br />
<br />
StreamReader __sr = new StreamReader(___fileName);<br />
string __sql = __sr.ReadToEnd();<br />
__sqlStatements = __r.Split(__sql);<br />
SqlCommand __comm = new SqlCommand();<br />
__comm.Connection = ___conn;<br />
<br />
foreach (string __sqlBlock in __sqlStatements)<br />
{<br />
if (__sqlBlock.Trim().Length > 0)<br />
{<br />
__comm.CommandText = __sqlBlock;<br />
<br />
try<br />
{<br />
__comm.ExecuteNonQuery();<br />
}<br />
catch (SqlException)<br />
{<br />
break;<br />
}<br />
}<br />
}<br />
}<br />
thks to original author.
here is another one... http://msdn2.microsoft.com/en-us/library/ms811086.aspx
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
wasife wrote: I have a T-SQL Script file which i want to run without opening it and reading its contents. Please tell me how can i do it using ADO.Net or any other way.
If you want to use ADO.NET you need to open it and read its contents. Then pass those contents onto to a SqlCommand.
If you want to use any other process then that will have to open and read the contents too. There is no way around that.
Why do you have an aversion to opening and reading the file?
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."
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
Hi All,
I have developed a windows application in C#. Now, i want to make that application as an installer....
How Can I do that? Could any one plz help me.....
I have searched thru Google, but i didn't find one...
Thanks in ADvance.
|
|
|
|
|
You can make its installer by creating a setup project in Visual Studio. Or you can add another project of type Setup Wizard in the same solution which is a bit easier way. Then there is InstallShield which you could use. There are many many ways to create an installer.
On google, search how to create setup projects in Visual Studio.
|
|
|
|