Click here to Skip to main content
15,888,527 members
Home / Discussions / C#
   

C#

 
GeneralRe: using IsNumeric Function in c# Pin
Dave Doknjas16-Jul-08 4:30
Dave Doknjas16-Jul-08 4:30 
GeneralRe: using IsNumeric Function in c# Pin
Le centriste16-Jul-08 4:33
Le centriste16-Jul-08 4:33 
GeneralRe: using IsNumeric Function in c# Pin
Le centriste16-Jul-08 4:34
Le centriste16-Jul-08 4:34 
GeneralRe: using IsNumeric Function in c# Pin
Dave Doknjas16-Jul-08 14:19
Dave Doknjas16-Jul-08 14:19 
AnswerRe: using IsNumeric Function in c# Pin
mark_w_15-Jul-08 0:27
mark_w_15-Jul-08 0:27 
AnswerRe: using IsNumeric Function in c# Pin
Nirandas15-Jul-08 1:27
Nirandas15-Jul-08 1:27 
AnswerRe: using IsNumeric Function in c# Pin
Le centriste15-Jul-08 1:58
Le centriste15-Jul-08 1:58 
Question5 Star Rating Control using CallBack Pin
Neeraj Kr14-Jul-08 23:45
Neeraj Kr14-Jul-08 23:45 
I am creating a 5 star rating control. For this I have created a user control with the Callback functionality. When I implement the usercontrol on an aspx page, I want that the label control to populate the value of the image that was clicked. But, when I debug my application, it shows that the label control has the value and it does not show on the page. Following is the code I am using for the User Control:

public event System.Web.UI.WebControls.CommandEventHandler Rater;

protected void Page_Load(object sender, EventArgs e)
{
sCallBackFunctionInvocation = Page.ClientScript.GetCallbackEventReference(this, "message", "ShowSuccess",
"context");
String callbackScript;
callbackScript = "function CallServer(message, context)" +
"{ " + sCallBackFunctionInvocation + ";}";
Page.ClientScript.RegisterClientScriptBlock(this.GetType(),
"CallServer", callbackScript, true);
}

public void RaiseCallbackEvent(string eventArgument)
{
if (hdn.Value.ToString() == "" && (eventArgument == "0" || eventArgument == string.Empty))
{
returnValue = "0";
totChecked = returnValue;
hdn.Value = returnValue;
}
else
{
returnValue = eventArgument;
hdn.Value = returnValue;
totChecked = returnValue;

CommandEventArgs args = new CommandEventArgs("Rated", hdn.Value.ToString());
Rater(this, args);
}
}

public string GetCallbackResult()
{
return returnValue;
}

The following code is used for aspx page

protected void Page_Load(object sender, EventArgs e)
{
rc1.Rater += new CommandEventHandler(rc_Rater);
}



private void rc_Rater(object sender, CommandEventArgs e)
{
RatingControl rc = new RatingControl();
lbl.Text = e.CommandArgument.ToString();
}

-----Have A Nice Day-----

GeneralRe: 5 Star Rating Control using CallBack Pin
Simon P Stevens15-Jul-08 1:32
Simon P Stevens15-Jul-08 1:32 
QuestionWeb Browser CONTROL Pin
hadad14-Jul-08 21:58
hadad14-Jul-08 21:58 
AnswerRe: Web Browser CONTROL Pin
sumit703415-Jul-08 0:07
sumit703415-Jul-08 0:07 
Questionwindows service Pin
arkiboys14-Jul-08 21:45
arkiboys14-Jul-08 21:45 
AnswerRe: windows service Pin
J4amieC14-Jul-08 21:53
J4amieC14-Jul-08 21:53 
GeneralRe: windows service Pin
arkiboys14-Jul-08 21:56
arkiboys14-Jul-08 21:56 
GeneralRe: windows service Pin
J4amieC14-Jul-08 22:07
J4amieC14-Jul-08 22:07 
GeneralRe: windows service Pin
arkiboys14-Jul-08 22:16
arkiboys14-Jul-08 22:16 
GeneralRe: windows service Pin
J4amieC14-Jul-08 22:42
J4amieC14-Jul-08 22:42 
GeneralRe: windows service Pin
wurzel_cidermaker14-Jul-08 22:45
wurzel_cidermaker14-Jul-08 22:45 
GeneralRe: windows service Pin
arkiboys15-Jul-08 3:14
arkiboys15-Jul-08 3:14 
GeneralRe: windows service Pin
leppie15-Jul-08 3:16
leppie15-Jul-08 3:16 
Questionsaving into database Pin
Metik14-Jul-08 21:36
Metik14-Jul-08 21:36 
AnswerRe: saving into database Pin
leppie14-Jul-08 22:28
leppie14-Jul-08 22:28 
AnswerRe: saving into database Pin
Rupesh Kumar Swami14-Jul-08 22:28
Rupesh Kumar Swami14-Jul-08 22:28 
QuestionHow to set batch file argument in "Execute Process Task" (SSIS Packages) Pin
Chintan.Desai14-Jul-08 21:27
Chintan.Desai14-Jul-08 21:27 
AnswerRe: How to set batch file argument in "Execute Process Task" (SSIS Packages) Pin
leppie14-Jul-08 22:29
leppie14-Jul-08 22:29 

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.