1
Answer

Few things still working on C# Corner

Mahesh Chand

Mahesh Chand

12y
1.2k
1
As we all know, the new version of C# Corner is live now :). We are still working on a few sections and plan to launch them in next few weeks.

- Newly branded Jobs
- Redesigned and rebranded, lighter and faster Forums
- New Editor (we are thinking of using Obout editor)
- New Videos section 
- Polls 
- Improved Mobile version of the site


Thank you for all feedback and support!

Cheers!


Answers (1)
0
kalu singh rao

kalu singh rao

NA 6.4k 63.9k 8y
You can check by this code
 
Method 1
 
if(!String.IsNullOrEmpty(txtContent.Text)){
// it is true
}
else
{
 // it is false
}
 
Method 2
 
 if(txtContent.Text != "")
{

}
 
Method 3

if (txtContent != string.Empty)
{

}
 
Accepted
0
Nilesh Sawardekar

Nilesh Sawardekar

NA 1.4k 15.2k 8y
Hello,
Thanks for accepting answer. For new question, ask same in new. with your code.
0
Joma Alrzini

Joma Alrzini

NA 61 7.9k 8y
thanks Kalu and Nilesh
I works fine but in my code above when I click on the button to submit to database the whole page is refreshed I do need to stop that I tried with updatepanel but I could not I read about ajax but I have no idea how to do it
please help me it f you have any example
I appreciate that very much
0
Nilesh Sawardekar

Nilesh Sawardekar

NA 1.4k 15.2k 8y
if you want to restrict user from saving when txtcontent is null then you can use validation control, else write your query in if (txtContent.text !="").