|
Cheers. It's been a busy couple of months blogging for me. It's helped working alongside Karl Shifflett - he's a coding/article writing machine, and has spurred me on.
|
|
|
|
|
Pete O'Hanlon wrote: It's helped working alongside Karl Shifflett
Indeed - We almost managed to get him along to Developer Day Scotland earlier this year.
|
|
|
|
|
That sounds good, How do i find out what the publicKey of my test project is
|
|
|
|
|
Use sn -Tp on the test dll. This depends on you having strong named the test project of course.
|
|
|
|
|
Thanks, I have just done some reading and am working it out. I think i need to look into strong names more, but you have given me enought to work with.
Thanks for your help, its appreciated
Mark
|
|
|
|
|
|
If only everybody were as polite as you...
Cheers,
Vıkram.
"You idiot British surprise me that your generators which grew up after Mid 50s had no brain at all." - Adnan Siddiqi.
|
|
|
|
|
I always 5 the people who take the time to offer thanks.
|
|
|
|
|
Being polite costs nothing. As a member of a number of (coding/car/RC Helicopter) forums I see no end of rudeness. When others try and help (even if they cant solve your problem), they have taken their time to try, why not be polite and say thanks
just my 2p worth
Mark
|
|
|
|
|
i've this scenario
a user fill out a form (email account request)
when user submit, it save to database, to sharepoint list then send an email to their manager for approval
when manager see the email, he/she open the file in sharepoint then decide to approve or reject
when manager submit, it send an email back to the user, update approval field in the database and of course update the sharepoint list
at the moment i'm using 1 form and 2 view (user and manager), rules
it all work fine until it need to update approval field to database, i decide to use manage code but my rules no longer run
any idea how? or maybe other approach on this scenario?
i'm using infopath 2007
PS: i'm not sure that i'm posting in the right forum..
thanks,
erick
|
|
|
|
|
Hi,
I want to convert JPEG Images into XML elements. Could you please let me know how canI do it?
Thanks in Advance,
AR Reddy
|
|
|
|
|
AR Reddy wrote: I want to convert JPEG Images into XML elements. Could you please let me know how canI do it?
Normally, JPEGs are encoded as Base64 when put in XML. There are methods in the .NET Framework to do that for you.
|
|
|
|
|
Hi All,
I've got an application that opens a csv file and save the data in the file to a Database. When the app reads the file it only reads the second column my problem is, the format of the date in the file has changed the date use to be like, 20081019 now it has changed to "October 26, 2008",.
The file is like Day,Visitors
"October 26, 2008",356 where day is the date. Now the app reads year 2008 when i want it to read the Visitors 356.
Please can you help me
Regards,
Ndeza
modified on Tuesday, October 28, 2008 4:52 AM
|
|
|
|
|
Who has the time to go through all that rubbish? Please post only "relevant" code, if required. Read the guidelines before posting a question.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
Not sure I understand... but you're saying the CSV actually has the enclosing quotes? Then it is the app which fails to parse properly.
There are libraries that handle CSV files, you're better off using one of them.
Cheers,
Vıkram.
"You idiot British surprise me that your generators which grew up after Mid 50s had no brain at all." - Adnan Siddiqi.
|
|
|
|
|
Hello friends
Can Any One tell me how can I read or write a specific line from a txt file.
Suppose using StreamReader or Straemwritter.
Thank in Advance
Johnny
|
|
|
|
|
Files are not line based (or even character based). You have to read the lines before to get to the correct position in the file.
To change a line you have to write that line and rewrite all the lines that follows it.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi,
What about using LINQ to read the specific line, writing is another story. I agree with Guffa about the writing each line again.
take the following into consideration: read all customers who live in UK.
var query =
from c in
(from line in File.ReadAllLines(filePath)
let customerRecord = line.Split(‘,’)
select new Customer()
{
Firstname = customerRecord[0],
Lastname = customerRecord[1],
JobTitle = customerRecord[2],
City = customerRecord[3],
Country = customerRecord[4]
})
where c.Country == "UK"
select c;
Regards,
The only programmers that are better those C# programmers are those who code in 1's and 0's |
Programm3r
My Blog: ^_^
|
|
|
|
|
Programm3r wrote: What about using LINQ to read the specific line
With the drawback that it always reads the entire file, even if you want a line at the beginning of the file.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Guffa wrote: With the drawback that it always reads the entire file
This is true, on the other hand you can read it, once and perform various LINQ queries on it.
The only programmers that are better those C# programmers are those who code in 1's and 0's |
Programm3r
My Blog: ^_^
|
|
|
|
|
What does the text book say?
|
|
|
|
|
In my C# Application program, I have two DataGridViews which are not bound to any data source. I have coded them so that the user is allowed to drag and drop data between the two DGVs as well as within them.
So, when a data item in a cell is dragged and dropped on another cell, the data on the original is deleted - that is set to null.
The problem is, when I do that, after dropping, it automatically select the last cell (the one in which I just set the value to null).
How do I get that cell to be NOT selected?
Here is my code:
dgvSchedule.DoDragDrop(text, DragDropEffects.Copy);
if (bDataDrop == true)
{
dgvSchedule.Rows[info.RowIndex].Cells[info.ColumnIndex].Value = null;
dgvSchedule.Rows[info.RowIndex].Cells[info.ColumnIndex].Selected = false;
bDataDrop = false;
}
There, right after I set the value to null, I set the 'selected' property to false, but despite that it still selects that.
Please HELP!
|
|
|
|
|
try calling the refresh method of datagridview after you are done.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Nope mate, it doesn't work.
|
|
|
|