更新时间:2023-12-06 11:58:28
demo_reqfieldvalidator [ ^ ]
看到这个......
demo_reqfieldvalidator[^]
see this...
if ( textbox.Text =="" )
{
// then assign ur variable null
}
else
{
// do your coding
}
it helps pls select as answer
尝试这个我觉得这就是你需要的............. >
if(textbox1.Text ==){
messagebox.show(你不能离开文本框空白。);
}
else {
//你的代码在这里
}
请接受为答案.......
Reagards,
Ahsan Naveed。
try this I think this is what you need.............
if (textbox1.Text==""){
messagebox.show("You cannot leave the textbox blank.");
}
else {
//your code here
}
please accept as answer.......
Reagards,
Ahsan Naveed.