PC Review


Reply
 
 
Ntumu Siwedi
Guest
Posts: n/a
 
      24th Jun 2010

how do i include text in this line below????
something like Message "succesful" or " Failed "


<uc1:ucPageMessage ID="ucPageMessageDisplay" runat="server" />


in the button

public void btnOk_Click(object sender, EventArgs e)

{
if (StagingUnitStandards.Import(visionUnitStandardNr) == 0)
{
Response.Write("Import Successfull");
}
else
{
Response.Write("Import Failed");
}
}

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
 
Mr. Arnold
Guest
Posts: n/a
 
      24th Jun 2010
Ntumu Siwedi wrote:
> how do i include text in this line below????
> something like Message "succesful" or " Failed "
>
>
> <uc1:ucPageMessage ID="ucPageMessageDisplay" runat="server" />
>
>
> in the button
>
> public void btnOk_Click(object sender, EventArgs e)
>
> {
> if (StagingUnitStandards.Import(visionUnitStandardNr) == 0)
> {
> Response.Write("Import Successfull");
> }
> else
> {
> Response.Write("Import Failed");
> }
> }


You can place a Label on the form and use the Label.Text to display a
message to the user, clearing the Label.Text as needed.

Or you can go to the HTML Button on the ASP.NET page, using the button's
client-side HTML click-event and tie the click-event to a JavaScript
function that has an Alert("some text"), which will pop-up a messagebox
to the user.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:41 PM.