Click here to Skip to main content
15,891,136 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Window.close () is not working in mozilla firefox( working fine in IE) Pin
bmchugh6616-Jul-08 3:52
bmchugh6616-Jul-08 3:52 
Questionhow to download file Pin
Nika Asgari15-Jul-08 2:37
Nika Asgari15-Jul-08 2:37 
QuestionRegarding Ajax Calendar Control Problem Pin
mcmilan15-Jul-08 2:35
mcmilan15-Jul-08 2:35 
AnswerRe: Regarding Ajax Calendar Control Problem Pin
Imran Khan Pathan15-Jul-08 2:43
Imran Khan Pathan15-Jul-08 2:43 
QuestionHelp Regarding Master Page Pin
kantipudi15-Jul-08 2:04
kantipudi15-Jul-08 2:04 
AnswerRe: Help Regarding Master Page Pin
eyeseetee15-Jul-08 2:32
eyeseetee15-Jul-08 2:32 
QuestionIM integration on website Pin
wEb GuRu...15-Jul-08 1:41
wEb GuRu...15-Jul-08 1:41 
Question5 Star Rating User Control with Callbacks Pin
Neeraj Kr15-Jul-08 1:40
Neeraj Kr15-Jul-08 1:40 
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-----

Question##querystring## Pin
strawberrysh15-Jul-08 1:32
strawberrysh15-Jul-08 1:32 
AnswerRe: ##querystring## Pin
Imran Khan Pathan15-Jul-08 2:32
Imran Khan Pathan15-Jul-08 2:32 
GeneralRe: ##querystring## Pin
strawberrysh15-Jul-08 3:04
strawberrysh15-Jul-08 3:04 
GeneralRe: ##querystring## Pin
eyeseetee15-Jul-08 3:34
eyeseetee15-Jul-08 3:34 
QuestionJavascript that presses shift + ALT Pin
samerh15-Jul-08 1:21
samerh15-Jul-08 1:21 
AnswerRe: Javascript that presses shift + ALT Pin
eyeseetee15-Jul-08 1:29
eyeseetee15-Jul-08 1:29 
GeneralRe: Javascript that presses shift + ALT Pin
samerh15-Jul-08 1:31
samerh15-Jul-08 1:31 
GeneralRe: Javascript that presses shift + ALT Pin
Imran Khan Pathan15-Jul-08 2:02
Imran Khan Pathan15-Jul-08 2:02 
GeneralRe: Javascript that presses shift + ALT Pin
samerh20-Jul-08 20:39
samerh20-Jul-08 20:39 
QuestionDataset to excel file? [modified] Pin
Member 387988115-Jul-08 1:19
Member 387988115-Jul-08 1:19 
QuestionSQLBULKCOPY class - number of records copied Pin
sb_rs15-Jul-08 0:53
sb_rs15-Jul-08 0:53 
AnswerRe: SQLBULKCOPY class - number of records copied Pin
Torsten Mauz15-Jul-08 3:15
Torsten Mauz15-Jul-08 3:15 
QuestionAdding controls Runtime Pin
nagendrathecoder15-Jul-08 0:52
nagendrathecoder15-Jul-08 0:52 
AnswerRe: Adding controls Runtime Pin
firozu15-Jul-08 1:07
firozu15-Jul-08 1:07 
AnswerRe: Adding controls Runtime Pin
eyeseetee15-Jul-08 1:17
eyeseetee15-Jul-08 1:17 
GeneralRe: Adding controls Runtime Pin
nagendrathecoder15-Jul-08 19:40
nagendrathecoder15-Jul-08 19:40 
Questionfile upload control Pin
gaurav mangal15-Jul-08 0:31
gaurav mangal15-Jul-08 0:31 

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.