Click here to Skip to main content
15,891,777 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I set a DataGridVew column in a ListView BOLD? Pin
Robert Oujesky8-Oct-15 6:28
Robert Oujesky8-Oct-15 6:28 
GeneralRe: How do I set a DataGridVew column in a ListView BOLD? Pin
CHill608-Oct-15 6:34
mveCHill608-Oct-15 6:34 
QuestionAlert message script Pin
Member 120161066-Oct-15 15:31
Member 120161066-Oct-15 15:31 
AnswerRe: Alert message script Pin
Richard Andrew x646-Oct-15 16:22
professionalRichard Andrew x646-Oct-15 16:22 
GeneralRe: Alert message script Pin
Member 120161066-Oct-15 16:31
Member 120161066-Oct-15 16:31 
AnswerRe: Alert message script Pin
Richard Andrew x646-Oct-15 16:36
professionalRichard Andrew x646-Oct-15 16:36 
GeneralRe: Alert message script Pin
Member 120161066-Oct-15 16:53
Member 120161066-Oct-15 16:53 
AnswerRe: Alert message script Pin
Afzaal Ahmad Zeeshan6-Oct-15 22:12
professionalAfzaal Ahmad Zeeshan6-Oct-15 22:12 
Many problems! Let me dissect and show them to you:

First of all, why did you create a variable to hold the text, when you are again going to use the same object's Text property?
C#
string search=txtbox_clotho.Text;
if (txtbox_clotho.Text != "")

Either remove the variable, or use the variable here. Tip: Remove the variable.

Secondly, if you have a look at the block where your alert-dialog's code is present?
C#
else 
{
    Response.Write("<script>alert('For this Wafer ID Report is Not Generated');</script>");
}

How would you expected it execute when your condition is so wrong? "if (txtbox_clotho.Text != "")". The condition tells that the script would only be written, if the search term is empty; not invalid. Also, it doesn't work with the search result, it is applied to the search term (if I understand correctly).

Solution to this is, to re-write the code. Who wrote the code, so back? Where he was creating extra scopes (inside the if block), writing an entirely opposite condition and implement a very bad design, writing the script based on a Response.Write is always recommended not to be done. The code seriously needs some rewriting.

Explain the scenario, we can help you put some effort in it. Smile | :)
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

GeneralRe: Alert message script Pin
Member 120161066-Oct-15 23:04
Member 120161066-Oct-15 23:04 
GeneralRe: Alert message script Pin
Afzaal Ahmad Zeeshan6-Oct-15 23:18
professionalAfzaal Ahmad Zeeshan6-Oct-15 23:18 
Generalabout backend Pin
bittuu6-Oct-15 8:51
bittuu6-Oct-15 8:51 
GeneralRe: about backend Pin
dlhale6-Oct-15 8:56
dlhale6-Oct-15 8:56 
GeneralRe: about backend Pin
Mycroft Holmes6-Oct-15 14:17
professionalMycroft Holmes6-Oct-15 14:17 
GeneralRe: about backend Pin
bittuu6-Oct-15 19:00
bittuu6-Oct-15 19:00 
QuestionWhat happen when use 2 timer on a form. Pin
LeHuuTien5-Oct-15 21:13
LeHuuTien5-Oct-15 21:13 
AnswerRe: What happen when use 2 timer on a form. Pin
Pete O'Hanlon5-Oct-15 21:29
mvePete O'Hanlon5-Oct-15 21:29 
QuestionMessage Removed Pin
5-Oct-15 6:49
professionalN_tro_P5-Oct-15 6:49 
AnswerRe: How to SET Geo Location Pin
Gerry Schmitz5-Oct-15 7:55
mveGerry Schmitz5-Oct-15 7:55 
GeneralMessage Removed Pin
5-Oct-15 8:13
professionalN_tro_P5-Oct-15 8:13 
GeneralRe: How to SET Geo Location Pin
Gerry Schmitz5-Oct-15 9:33
mveGerry Schmitz5-Oct-15 9:33 
GeneralMessage Removed Pin
5-Oct-15 9:37
professionalN_tro_P5-Oct-15 9:37 
GeneralRe: How to SET Geo Location Pin
Gerry Schmitz5-Oct-15 10:00
mveGerry Schmitz5-Oct-15 10:00 
GeneralMessage Removed Pin
5-Oct-15 11:54
professionalN_tro_P5-Oct-15 11:54 
GeneralRe: How to SET Geo Location Pin
Gerry Schmitz5-Oct-15 12:24
mveGerry Schmitz5-Oct-15 12:24 
Questionrecursive function to print data in the console in the output of a tree structure in c# Pin
darkyMats5-Oct-15 4:13
darkyMats5-Oct-15 4:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.