Click here to Skip to main content
15,914,642 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Button click event Pin
miniThomas29-Jul-07 20:09
miniThomas29-Jul-07 20:09 
GeneralRe: Button click event Pin
N a v a n e e t h29-Jul-07 20:30
N a v a n e e t h29-Jul-07 20:30 
GeneralRe: Button click event Pin
ballameharmurali29-Jul-07 20:31
ballameharmurali29-Jul-07 20:31 
AnswerRe: Button click event Pin
vidya.p.nair29-Jul-07 20:11
vidya.p.nair29-Jul-07 20:11 
GeneralRe: Button click event Pin
miniThomas29-Jul-07 20:18
miniThomas29-Jul-07 20:18 
GeneralRe: Button click event Pin
manowj29-Jul-07 21:50
manowj29-Jul-07 21:50 
GeneralRe: Button click event Pin
N a v a n e e t h29-Jul-07 20:25
N a v a n e e t h29-Jul-07 20:25 
GeneralRe: Button click event Pin
miniThomas29-Jul-07 20:40
miniThomas29-Jul-07 20:40 
Hi Guys,

here is code:

<asp:imagebutton id="imgbtnSearch" runat="server" imageurl="~/images/search.gif" alternatetext="Search" height="35" width="30" onclick="imgbtnSearch_Click">


function checkDotOnly()
{
if (document.form1.txtcustomerName.length!=0)
{
if((document.form1.txtcustomerName.value==".")||(document.form1.txtcustomerName.value==". ")||(document.form1.txtcustomerName.value==" "))
{
alert("Please Enter Valid Customer Name.");
/*document.form1.lblErrMsg.value="Please Enter Valid Customer Name.";
document.form1.lblErrMsg.disabled=false;*/
return false;
}
return true;
}
return true;
}


protected void imgbtnSearch_Click(object sender, ImageClickEventArgs e)
{
if (RadioButtonList1.SelectedValue.ToString() == "")
{
lblMsg.Text = "";
lblErrMsg.Visible = true;
lblErrMsg.Text = "Please Select One Option.";
PnlSearchResults.Visible = false;
}
else
{

if (RadioButtonList1.SelectedIndex.ToString() == "0" && ddlOrderNo.SelectedItem.Value == "-1")
{
lblMsg.Text = "";
lblErrMsg.Visible = true;
lblErrMsg.Text = "Please Select Order Number.";
PnlSearchResults.Visible = false;
}
else
{
lblErrMsg.Visible = false;
fillSearchResults();

}
if (RadioButtonList1.SelectedIndex.ToString() == "1")
{

if (txtcustomerName.Text == "")
{
lblMsg.Text = "";
lblErrMsg.Visible = true;
lblErrMsg.Text = "Please Enter Customer Name.";
PnlSearchResults.Visible = false;
}
else
{
lblMsg.Text = "";
lblErrMsg.Visible = false;
fillSearchResults();
//Response.Write("domain=" + txtDomainName.Text + "cust=" + txtcustomerName.Text);
}
}
}
}//imgbtnSearch_Click




thanx
GeneralRe: Button click event Pin
N a v a n e e t h29-Jul-07 21:21
N a v a n e e t h29-Jul-07 21:21 
QuestionHow can eliminate constant polling? Pin
Mikeyyy29-Jul-07 19:37
Mikeyyy29-Jul-07 19:37 
AnswerRe: How can eliminate constant polling? Pin
Christian Graus29-Jul-07 20:02
protectorChristian Graus29-Jul-07 20:02 
QuestionProblem with postback Pin
dharanighanta29-Jul-07 19:31
dharanighanta29-Jul-07 19:31 
AnswerRe: Problem with postback Pin
Paul Conrad29-Jul-07 19:45
professionalPaul Conrad29-Jul-07 19:45 
GeneralRe: Problem with postback Pin
dharanighanta29-Jul-07 19:58
dharanighanta29-Jul-07 19:58 
GeneralRe: Problem with postback Pin
dharanighanta29-Jul-07 20:05
dharanighanta29-Jul-07 20:05 
GeneralRe: Problem with postback Pin
Paul Conrad29-Jul-07 20:07
professionalPaul Conrad29-Jul-07 20:07 
GeneralRe: Problem with postback Pin
dharanighanta29-Jul-07 20:58
dharanighanta29-Jul-07 20:58 
GeneralRe: Problem with postback Pin
ballameharmurali30-Jul-07 1:52
ballameharmurali30-Jul-07 1:52 
GeneralRe: Problem with postback Pin
dharanighanta30-Jul-07 2:02
dharanighanta30-Jul-07 2:02 
GeneralRe: Problem with postback Pin
Paul Conrad30-Jul-07 5:19
professionalPaul Conrad30-Jul-07 5:19 
QuestionIssue in using MSDataShape Pin
Venkatesh Mookkan29-Jul-07 19:25
Venkatesh Mookkan29-Jul-07 19:25 
AnswerRe: Issue in using MSDataShape Pin
Christian Graus29-Jul-07 19:27
protectorChristian Graus29-Jul-07 19:27 
GeneralRe: Issue in using MSDataShape Pin
Venkatesh Mookkan29-Jul-07 19:38
Venkatesh Mookkan29-Jul-07 19:38 
QuestionFunny validator problem Pin
Anton Afanasyev29-Jul-07 19:20
Anton Afanasyev29-Jul-07 19:20 
QuestionVideo and Flash files Pin
.NET- India 29-Jul-07 19:10
.NET- India 29-Jul-07 19:10 

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.