|
if your LinkButton is called LinkButton1:
private void LinkButton1_Click(object sender, System.EventArgs e)
{
Response.Redirect("Form2.aspx");
}
|
|
|
|
|
hi imk making an
|
|
|
|
|
ashkitt wrote:
hi imk making an
an incomplete statement.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Can anyone tell me the most ideal way to store configurations in C#...what should you choose App.config, .INI files, or the registry? If there are any more modes of storing setting, please let me know.
|
|
|
|
|
If you're after the MOST IDEAL way then you should read this:
http://msdn.microsoft.com/library/en-us/dnpag2/html/config.asp?frame=true
modified 17-Jul-19 21:02pm.
|
|
|
|
|
Hi, I'm set the SelectedObject property of a PropertyGrid with a class that have two properties of type Point, one is Point1 and another is Point2. When running the program I can set the X or Y value of point property. How can I distinguish between the Point1.Y and the Point2.Y property? In the PropertyValueChanged event there is the e.ChangedItem.Label value that contains only Y and not Point1.Y or Point2.Y. I have saw that there is the "((System.Windows.Forms.PropertyGridInternal.PropertyDescriptorGridEntry)(((System.Windows.Forms.PropertyGridInternal.ImmutablePropertyDescriptorGridEntry)(((System.Windows.Forms.GridItem)(((System.Windows.Forms.PropertyGrid)(mProp)).SelectedGridItem)))))).HelpKeyword" that contains Point2.Y but is an internal property and I can't read it. How can I solve the problem? Thanks a lot!
Michele
|
|
|
|
|
How can i load an icon from an embedded resource in mt application into a System.Drawing.Icon
|
|
|
|
|
Get a stream to the resource using Resource.GetStream() and then use Image.FromStream()..You should be able to cast that to an icon or something to that effect...
|
|
|
|
|
Hi,
I want to know, how to get the list of all the available domains in a network, and the list of computers under each domain, using c#.
Thanks
Prasanna
|
|
|
|
|
Did you try pinvoking NetServerEnum from Netapi32.dll?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
|
I am trying to use a C# DLL assembly from in-memory. This DLL uses a Win32 Native function which requires HINSTANCE of the module in DLL. So, I try to use the Marshal.GetHINSTANCE Method. It works fine if I use the DLL from physical drive. However, the moment I try to run the DLL from in-memory, I get an error. After some research in MSDN, I found the following remark in the help on Marshal.GetHINSTANCE Method:
"When dynamic or in-memory, modules do not have an HINSTANCE."
Now, my problem is that when DLL is run from in-memory, its modules do not have HINSTANCE as per MSDN documentation. However, the Win32 Native function requires HINSTNCE as one of the parameters. I tried to use null or (IntPtr) 0, etc., but they do not work.
Is there any solution to this problem?
Thanks in advance.
|
|
|
|
|
When the .DLL is in memory the HINSTANCE is your application, not the DLL.
What's the Win32 Native function your trying to call and what are you doing with it?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am new of ASP.Net and facing a problem that whenever I do connection ASP.Net with Sql Server it gives me error
"Login failed for user 'ComputerName\ASPNET'.
Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'ComputerName\ASPNET'.
Line 78: thisAdapter.Fill(thisDataSet,"Customers");
I am doing like this "
string myConnectionString = "Initial Catalog=Northwind;Data Source=localhost;Integrated Security=SSPI;server=ComputerName\\MY2000";
thisConnection = new SqlConnection(myConnectionString);
and so on. It is working fine in windows form.
Thanks
|
|
|
|
|
When you're using ASP.NET, you're working as the ASPNET user. That user needs to have the right to log in to SQL Server. The easiest way around is to log in with username/password instead of using Windows authentication.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks for your mail.
I am doing like this
string myConnectionString = "Initial Catalog=MyDB;Data Source=localhost;Integrated Security=SSPI;server=ComputerName\\MY2000;user id=sa; Password=";
My password is blank.
I am not using windows authentication.
It is working without using ASP.NET.
|
|
|
|
|
If I remove this "Integrated Security=SSPI;" from connecting string then It is working fine.
Thanks a lot for your kind help.
|
|
|
|
|
Hi All,
I'm a newbie. I am trying to find out how
to store string data read from a file into
a table or another string.
I keep getting the error, cannot implicitly
assign a string to string?!
Help!
|
|
|
|
|
boomer1946 wrote:
I keep getting the error, cannot implicitly
assign a string to string?!
Perhaps if you posted your code, we could see what's going on ?
There's no reason why you can't build a string from the value of another string. What do you mean by table ? How do you want the string to move into it ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi Christain,
I solved the problem. It was my error
using improper syntax.
Thanks for your reply.
Isaac
|
|
|
|
|
Sounds as if you have a simple problem, but cannot be sure as you haven't posyed your code.
Try using the ToString() method, contained within most classes in the .NET Framework
|
|
|
|
|
Yes, it was a simple problem solved by using
the proper syntax. I guess you would call it
a newbie error. I keep building on acquired
knowledge. I'm getting there.
Thanks for your prompt reply.
Isaac
|
|
|
|
|
Hello,
Is there a way to do speech recognition in C# without using MSAGENT?
Regards,
Michael
|
|
|
|
|
|
I have a foreach loop which checks on a ArrayList
I would like to include the Timer object to go through the foreach loop at a 1 second interval.
How can I do this?
Thanks,
BingLin
|
|
|
|