|
|
Hi.
Can I use RequireFieldValidator control to check for the blank data? There, both of the two textboxes must not be blank. But it'll be ok if only one of these two textbox must be entered data. If with RequireFieldValidator, how can I use with it?
Thanks.
|
|
|
|
|
Strictly speaking, this question should be in the ASP.NET forum, and no - a required field validator validates that a field is required, not that one of two fields is required. You'll need to write a custom validator.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
This is a repost; it's already posted in the .NET Framework forum. Please be patient and don't spam the forums with the same question.
You can check out the PictureBox [^], you could adapt that to suit your needs.
|
|
|
|
|
I wanna sample demo for streaming media player in C# on WinCE, does anybody has?
Or can anyone tell me how to do that?
|
|
|
|
|
Hello everyone
Please tell me how many positive value give the signed integer in sql
Thanx in advance
|
|
|
|
|
Sure thing ... first post your question here[^] otherwise see here[^]
The only programmers that are better C# programmers, are those who look like this -> |
Programm3r
My Blog: ^_^
|
|
|
|
|
1. Your question is not clear - please reword.
2. If this really is a question about SQL then this is not the appropriate forum.
|
|
|
|
|
|
I presume you mean for the web?
If so i'd guess the VisibleMonthChanged event...
or do you want to determine whether it is the next month or the previous?
|
|
|
|
|
Hello All,
I've got a problem with EntLib 4.1 in combination with my config file.
I have a class library for data access which has its own app.config file containing the information for the sql connection.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</configSections>
<dataConfiguration defaultDatabase="CarOmnia" />
<connectionStrings>
<add name="CarOmnia" providerName="System.Data.SqlClient" connectionString="server=(local);database=CarOmnia;User Id=xx;Password=xxxx;" />
</connectionStrings>
</configuration>
Code to access the database:
public static DataSet SelectAll()
{
DataSet retValue = new DataSet();
try
{
Database db = DatabaseFactory.CreateDatabase();
DbCommand cmd = db.GetStoredProcCommand(stpTest);
retValue = db.ExecuteDataSet(cmd);
}
catch (Exception ex)
{
throw ex;
}
return retValue;
}
With this go the following includes:
using System.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
using Microsoft.Practices.EnterpriseLibrary.Data;
using System.Data.Common;
What am i doing wrong, i'm getting the following error on the CreateDatabase() line:
{"The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.Data.Database, null]) failed: The value can not be null or an empty string. (Strategy type ConfiguredObjectStrategy, index 2)"}
|
|
|
|
|
I had the same problem the other day....
Does the config file that is in the project root directory differ from the one in the Debug directory? If I remember correctly, VS overrites the config file every time you compile or change some settings in the file.
Kind regards,
The only programmers that are better C# programmers, are those who look like this -> |
Programm3r
My Blog: ^_^
|
|
|
|
|
Checked that already, unfortunately they are the same
|
|
|
|
|
What about the <app name>.exe.config ? Is that perhaps different?
Otherwise run the Enterprise Library Configuration tool and set the values again in all config files....
The only programmers that are better C# programmers, are those who look like this -> |
Programm3r
My Blog: ^_^
|
|
|
|
|
Make sure you save your application. You will get this if the application is not saved OR if the app.config is missing.
-Josh
|
|
|
|
|
Hi, how can i add checkboxes in listbox?? i want checkbox in front of every item in list box.
Thanks in advance!
yogesh
|
|
|
|
|
use a checkedlistbox instead
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Is it a possibility to use a checkedlistbox?
Good luck!
|
|
|
|
|
|
|
I'd suggest to keep it as simple as possible;
ProcesCommand("EVENT", "Other params"); You'd have to write that method yourself, off course. It's easier to swap the contents of a variable then to swap the method that you're using.
You could also search CodeProject for some articles on creating scripts. You could then launch a (precompiled?) script, depending on the parameters that you receive
|
|
|
|
|
Eddy Vluggen wrote: You could also search CodeProject for some articles on creating scripts. You could then launch a (precompiled?)
See what I can find. Thanks for the suggestion Eddy ... every bit helps.
Kind regards,
The only programmers that are better C# programmers, are those who look like this -> |
Programm3r
My Blog: ^_^
|
|
|
|
|
Is there any easy way to monitor the amount of bytes sent and received on http port 80? I don't want to monitor the content of packets, just number and size of packets is important to me.
Is TcpListener class suitable for this purpose?
Any help would be greatly appreciated
|
|
|
|
|
You can user PerformanceCounter component by setting CategoryName property to Network Interface and after selecting appropriate counter.
|
|
|
|