Cells in DataGridViews have a Validating event. Look here[^] for how to use it.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
ahmad25 wrote:
replace abc with mno and so on in C#
Do you mean replace like with the "C-Preprocessor"? Using two arrays is not the way to go in any case.
thanx for ur kind attention. i am seeing th link. actually, in my xml file has & and mdash; and i write in this character code in html , an want to show the above code is in character like: & and - is there any namespace , to read entity thanx
Hi ahmad25, Just try little googling[^] you will surely get very good answer easily. Because it is very common scenario to achieve. HTH
Jinal Desai - LIVE Experience is mother of sage....
Now try this one. I think you have just copy pasted my code. By mistakenly I have printed 'o' of önResize with some different language. So you just need to replace önResize with onResize. HTH
Jinal Desai - LIVE Experience is mother of sage....
modified on Saturday, July 17, 2010 2:29 AM
If you're using .NET 3.5+
XDocument doc = XDocument.Load( "file.xml" );
var authors = ( from n in doc.Descendants( "author" )
select n );
if (authors != null) {
authors.Remove();
doc.Save( "file.xml" );
}
I do assume you know how to concatenate two strings and if you don't you should get a C# book and go through it. If you are not sure what order they words are coming from the database in, I'm afraid you cannot do a 'grammatically correct' concatenation unless you build your own language parser. That would mean writing tons of parsing logic and building your own language database.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
You should really avoid the use of Server.Transfor for such simple scenarios like this. ASP.NET allows you to cross-post from one page to another. Just set the PostbackURL property on the button to page2.aspx, and access the value for txtFirstPage directly from the form: Request.Form["txtFirstPage"]
hi!sir but when i write firstuser.it gives error. because my first user id is 'arun' & password is 'kumar'and second user user id is 'vijay' and password is 'raj'
I have a column which contain a complete Path. Like-->: d:\folder\folder1\pic.jpg and so on: I want to print only filename like "pic" and show them in a datalist. in datalist i take linkbutton To display all value. hopefully, I think u understand.
ahmad25 wrote:
I fetch only one value from a column. if I want to fetch a entire row what can I do?
ExecuteScalar can return only a single column. Use ExecuteReader instead. Take it to a SqlDataReader instance.
Navaneeth How to use google | Ask smart questions