|
Thank you very much.
It works fine
Rahul Kulkarni
|
|
|
|
|
Hi,
I'm getting an "object reference not set to an instance of an object" message in an exception generated while trying to assign a value to a cell in a DataTable. This assignment is happening within an event fired from the Grid that is used to display this table. What puzzles me is that there are no nulls in the assignment opeartion that is being done, and secondly the exception appears to originate from somewhere deep inside the code for the DataTable object.
The call at which the exception occurs according to the stack trace is
at System.Data.NameNode.Eval(DataRow row, DataRowVersion version)
Any pointers as to what might be causing this would be most appreciated.
Please let me know if you want the full stack trace (I didn't want to fill up all the space here with it).
Many thanks in advance.
Vishnu
|
|
|
|
|
Check do you have any of the column name having "." Charactor.
Regards
Elayaraja.S
|
|
|
|
|
Nope, no dots in any column name.
The first time I bind the table to the UI grid everything works fine. However after the datasource is bound to the grid a second time (for refreshing the result set), it starts behaving this way.
|
|
|
|
|
Found the problem
One of the columns was being removed and added again in a previous step before the event was triggered. Skipping this step seems to solve the problem. What I still don't understand is why the datatable should throw an exception when the schema is essentially unchanged.
I'll post an update when I find out, if anyone knows why please do let me know.
Thanks and regards,
Vishnu
|
|
|
|
|
Hello Every body,
I had generated an report but i m facing an problem in detail section.
In detail section I had four fields
1) category name
2) Category description(are not Mandatory)
3) sub category Name
4) sub category description (are not Mandatory)
But when the report is generated if their is no category description then it leaves that space and I want that next i.e. sub category name should come at that space not the blank space.
ex if description is their the output should be like dis:
Category1
this category belongs to birds.
subCategoryName
Sub category description .....
IF their is no category description then output should be:
Category1
subCategoryName
Sub category description .....
BUT IT SHOWING LIKE DIS:
Category1
subCategoryName
Sub category description .....
(working on c# 2005 windows application)
Regards,
rahul saini
|
|
|
|
|
Hi,
If you want resize the row depending the values in crystal report, you can have multiple detail section instead of single detail section.
there is some property in each section , suppress the section for empty block.
also explicity you can write your own function against the suppress property of section.
Regards
Elayaraja.S
|
|
|
|
|
Dear all,
I have made one application to check digital certificate against Revocation.
but it is throughing an error like : "The revocation function was unable to check revocation because the revocation server was offline.\r\n"
This is the code i have made up,
X509Store store = new X509Store("MY", StoreLocation.CurrentUser);
store.Open(OpenFlags.OpenExistingOnly | OpenFlags.ReadWrite);
//Output store information.
Console.WriteLine("Store Information");
Console.WriteLine("Number of certificates in the store: {0}", store.Certificates.Count);
Console.WriteLine("Store location: {0}", store.Location);
Console.WriteLine("Store name: {0} {1}", store.Name, Environment.NewLine);
//Put certificates from the store into a collection so user can select one.
X509Certificate2Collection fcollection = (X509Certificate2Collection)store.Certificates;
X509Certificate2Collection collection = X509Certificate2UI.SelectFromCollection(fcollection, "Select an X509 Certificate", "Choose a certificate to examine.", X509SelectionFlag.SingleSelection);
X509Certificate2 certificate = collection[0];
//X509Certificate2UI.DisplayCertificate(certificate);
//Output chain information of the selected certificate.
X509Chain chain = new X509Chain();
Oid oid = new Oid("2.5.29.31");
chain.ChainPolicy.ApplicationPolicy.Add(oid);
chain.ChainPolicy.CertificatePolicy.Add(oid);
chain.ChainPolicy.RevocationFlag = X509RevocationFlag.ExcludeRoot;
chain.ChainPolicy.RevocationMode = X509RevocationMode.Offline;
chain.ChainPolicy.UrlRetrievalTimeout = new TimeSpan(1000);
chain.ChainPolicy.VerificationFlags = X509VerificationFlags.AllFlags;
chain.Build(certificate);
if (chain.ChainStatus.Length != 0)
Console.WriteLine(chain.ChainStatus[0].Status);
Console.Read();
store.Close();
Please Help me if any one know its solution
Thanks and Regards,
Nitin Khubani
|
|
|
|
|
You need to provide more information than this, such as where the authority is.
Try running PKVIEW to see how healthy your PKI is. This tool can be located at here[^] (it's part of the Windows 2003 resource kit).
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi all!!,
how i can to set the TransparencyKey of a MDI child form ? , i' ve tried but it does not work:
<br />
this.TransparencyKey = Color.Magenta;<br />
this.BackColor = Color.Magenta;<br />
but the background is magenta and not transparent, how i can have the background transparent? thanks
Bye
|
|
|
|
|
Hello,
The Doku[^] gives only the information, that it is not supported when "RightToLeftLayout" is set to 'true'.
I think it could also be, that your graphic card doesn't support this feature (had it once, and it's also documented at msdn).
I think it had something todo with the "Color quality" in your "Display Properties" settings.
Maybe you can try to set it to "16Bit" instead of "32Bit"!
All the best,
Martin
|
|
|
|
|
But if i set my form as MDI child it does not work, but if i set the mdiparent property as null it work. why??? hel me !!!! pls...
Bye
|
|
|
|
|
Hi
i am crested the six dropdown lists each ahving the seven items .(c# windows application)
if i click one itemin one dropdown list that item canot repet the remining items i need this if u have any idea
plas send to me
regards,
vikramk1410@gmail.com.
kommineni vikram
|
|
|
|
|
How can I convert the keyboard layout to arabic? I could covert the characters using the API 'LoadKeyboardLayout'. But the digits are not converting to arabic. I searched in the net for the API I understand the digits can convert with the function 'SetLocaleInfo'. This function receives 3 arguments but i don't know the value should be passed to this funtions. Please help to find the values of the arguments.
Thanks and Regards,
Mic
|
|
|
|
|
you must use System.Windows.Forms.InputLanguage Class to do this
here is an example to change the input language to Farsi
foreach (InputLanguage lang in InputLanguage.InstalledInputLanguages)
if (lang.LayoutName == "Farsi")
{
InputLanguage.CurrentInputLanguage = lang;
break;
}
|
|
|
|
|
Thanks for your reply. It will change the characters but it is not changing the digits.
Thanks and Regards,
Mic
|
|
|
|
|
|
use the following statement to change the input language.
InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(CultureInfo.CurrentCulture);
Regards
Elayaraja.S
|
|
|
|
|
Hi All,
Now, I wrote an application with C#, and I add it to run at the Startup list of OS.
I found that the application need 60 sec to start.
However, when I run it 10 min after the start of the OS, it only costs 8 sec.
Could you give me the reason why and what cause the difference of the performance?
Thanks very much,
|
|
|
|
|
I think that is because when you start the OS, it needs time to start all process... And, if you sum the start of your app is more time. And if you think in the first time that your app is started expenses more time... IT's too much time to sum!!
To start your app faster the first time you can use ngen.exe. It precompiles and makes your application run the first time as fast as the other next.
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
Hi,
Don't have any syncronize call in the startup function like database/web service call.
Use asyncronize(delegate) call to do the startup functionality.
Regards
Elayaraja.S
|
|
|
|
|
I trashed the C# forum (in Firefox) last time I posted a RegEx question - so apologies before hand if the screen all goes pear shaped..
This is C# in the loosest sense of the word in that I am using the RexEx class...
My File :-
=======================================================================
D:\\APPS\\23JUL07_1700__PID1520.LOG
--------log end-------------
2007-Jul-25 09:47:10:038 Boring text...
2007-Jul-25 09:47:10:194 Really boring text
=======================================================================
D:\\APPS\\23JUL07_1702__PID2304.LOG
--------log end-------------
2007-Jul-25 09:47:01:475 Some secret stuff 471773.1
2007-Jul-25 09:47:02:085 more secret stuff
=======================================================================
D:\\APPS\\24JUL07_1430__PID8908.LOG
--------log end-------------
2007-Jul-25 09:47:09:850 Important stuff...
2007-Jul-25 09:47:10:007 Critical stuff
Is there anyway to extract the PID and the timestamp in each block in a single regex? The pattern I am using, which gives me the PID is ...
(PID(?<MYPID>\d{1,9})\.LOG)</code> I can then iterate through a MatchCollection obect returned from RegEx.Matches and process all the PIDS using the MYPID group. But I need the date as well. There will always be three lines following the line with the PID...
I can get the date with
(?<date>^\d{4}-[A-Z]{3}-\d{2}.(\d{2}: ){3}\d{3}) but can't join the two so I get the PID and date for each block.
The space after the colon in the date regex shouldn't be there - it prevents a smiley from showing.
Any help much appreciated.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.
|
|
|
|
|
<code>(PID(?<nums>\d{1,9})\.LOG)((.*?)\r\n){3}(?<date>^\d{4}-[A-Z]{3}-\d{2}.(\d{2}: ){3}\d{3})
again, remove the space after the colon. (if anybody except me is really bothered!)
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.
|
|
|
|
|
I have some weird problems connecting to SQL Server 2005 and I hope you can help me:
I have written a c# app on an acer n300. My app is connected to a SQL SERVER 2005 database. This app works fine. So I decided to install the app on a second pda . Both pdas have wireless lan and windows ce 5.0. But my app does not run on the new pda.
// ConnectionString = "Data Source=192.169.71.10,1433;Initial Catalog=PocketPcDatabase;User ID=sa;Password=server;";
// 192.168.71.10 - your IP address
I have installed Compact Framework 2 SP2, but as soon as I try to connect to the database a get the error SQL Server does not exist or access denied. I am absolute sure that my connect string is OK, as it works on the acer pda. The configuration of SQL Server should also be ok, as I can connect from the acer devices.
Network connection is also OK, as I
can connect with remote Terminal Services to the machine hosting the database without any problems.
Can you give me a hint whats wrong? Are there any cab files that I must install on the pda before SQL Server 2005 Client is working? I only installed .net Compact Framework.
Nasanbat Ts. ( Jason )
|
|
|
|
|
Your message subject should better reflect a summary of the problem. Adjectives like 'Urgent', 'Help Me' (with or without emphatic exclamation marks never gets paid for whatsoever)
|
|
|
|