|
treah wrote: sysRoot = "C:\\WINNT\\Media\\ir_begin.wav";
dlg.InitialDirectory = sysRoot + @"\..\Media"; // start in media folder
This does not work, .. removes one level of directory provided there is no filename
in between
try
sysRoot = "C:\\WINNT\\Media\\";
dlg.InitialDirectory = sysRoot; // start in media folder
|
|
|
|
|
Hi,All! how can I fill a dropdown list in the script itself....
-- modified at 4:47 Thursday 28th June, 2007
Hi,Im Razana
|
|
|
|
|
razanabanu wrote: how can I fill a dropdown list in the script itself....
What is "the script"? What script? Is this a specific script? Or are you using it as a synonym for the language (C# in the context of this forum)
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
In c#'s .aspx file,we include "JavaScript" file,here in this javascript file..I need to fill up the dropdown list...
Hi,Im Razana
|
|
|
|
|
That has nothing to do with C#. ASPX files are part of ASP.NET which is a framework. The fact that you can include C# in ASPX files is purely incidental (you can also use VB.NET).
Your question is better asked in the Web Development or ASP.NET forums, not here.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
Hi
Can anybody tell me Equivalent namespace of follwoing in vb.net.
using WCPierce.Web;
df
|
|
|
|
|
WCPierce.Web. The namespace doesn't differ just because it's VB and not C#. You do understand the concepts behind .NET don't you?
|
|
|
|
|
when i write equivalent namespace Imports WCPierce.Web.
it dosenot works.It tells namespace cannot found.
df
|
|
|
|
|
|
Import/using globalises a namespace, it doesn't force the namespace to be present. You need to make sure you have a reference to your dll.
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 )
|
|
|
|
|
The namespace is language independent.
To start using a namespace you must:
- add to your project a reference to the DLL file (use Visual Studio Solution pane);
- add an Import statement to your VB source file(s)
|
|
|
|
|
An Array name as
string list[]={value1,valve2…..}
is string type I had also inserted the values but now I want to separate these values by commas like value1, value2…. in array then this is assign to
string= value1,value2…
then I want to pass it through SQL query as
“select “+string+” from table ” please provide me code in c#
|
|
|
|
|
string[] array = new string[] { "value1", "value2", "value3" };
StringBuilder insertString = new StringBuilder();
for (int count = 0; count < array.Length; count++)
{
insertString.Append(array[count].ToString());
if(count < array.Length - 1)
insertString.Append(",");
}
string sqlString = "Select " + insertString.ToString() + " from table";
MessageBox.Show(sqlString);
For StringBuilder, you will need to use System.Text
Dude, I have been observeing you for quite a few days. I really suggest you to buy a book of c# and go through it. Not every time you gonna be fed by spoon.
|
|
|
|
|
Manas Bhardwaj wrote: Dude, I have been observeing you for quite a few days. I really suggest you to buy a book of c# and go through it. Not every time you gonna be fed by spoon
Well said Manas Bhardwaj
Regards,
Satips.
|
|
|
|
|
Manas Bhardwaj wrote: Not every time you gonna be fed by spoon.
But again, it worked!
|
|
|
|
|
String.Join( "," , new string[] { "value1", "value2", "value3" } );
fits in a much smaller spoon.
|
|
|
|
|
|
Er nikesh yadav wrote: please provide me code in c#
We cannot do your work.
What you have done so for about this array code.
What error it shows?
Here you can get help only.
Regards,
Satips.
|
|
|
|
|
Hey try something yourself , if u r programmer dont ask for silly mistakes. or error.
Regards
Chintan
www.visharadsoft.com
(Nothing is so purify as KNOWLEDGE)
|
|
|
|
|
Hi
I m working in VS2005 C# Windows Application.I have created a .DLL file and added reference in my application.I have also copied the .PDB(Progam Debug Database) file with DLL .Its working fine but when i debug code it does not show the code of .DLL.Orginal code is on any other computer and compiled on that. i have copied .DLL and .PDB files.When i click F11 for going into .DLL code from my application it gives error "There is no source code available for the current location".
ANy body have Idea how to view code???Can i view code if i have .DLL and .PDB file but not original code????
|
|
|
|
|
If you don't have the code, how do you expect to see it? Your best bet is to use a disassembler. Check out Reflector[^]
AFAIK, you can't integrate it with the debugger.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
reply me on my e-mail majidkhan50@gmail.com
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
|
|
|
sk007msc wrote: reply me on my e-mail majidkhan50@gmail.com
Dont expect someone to reply you on your email? This is not a support desk
|
|
|
|
|
|
Is it like this
string list[34]=new string;
|
|
|
|