Click here to Skip to main content
15,913,388 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: can we stop the (page(aspx) or div) postback through javascript Pin
Michael Sync8-Jul-07 21:09
Michael Sync8-Jul-07 21:09 
GeneralRe: can we stop the (page(aspx) or div) postback through javascript Pin
Piyush Vardhan Singh8-Jul-07 21:37
Piyush Vardhan Singh8-Jul-07 21:37 
AnswerRe: can we stop the (page(aspx) or div) postback through javascript Pin
N a v a n e e t h8-Jul-07 21:11
N a v a n e e t h8-Jul-07 21:11 
QuestionASP.Net? Pin
| Muhammad Waqas Butt |8-Jul-07 20:47
professional| Muhammad Waqas Butt |8-Jul-07 20:47 
AnswerRe: ASP.Net? Pin
Michael Sync8-Jul-07 21:07
Michael Sync8-Jul-07 21:07 
Questionhow display the rating Pin
suparichit8-Jul-07 20:26
suparichit8-Jul-07 20:26 
AnswerRe: how display the rating Pin
N a v a n e e t h8-Jul-07 21:08
N a v a n e e t h8-Jul-07 21:08 
GeneralRe: how display the rating Pin
suparichit8-Jul-07 21:14
suparichit8-Jul-07 21:14 
in my raing forum i took a button rate when ever i clicked on that... this z the following code in that...


if (Page.IsPostBack)
{

string x;

x = rbtnRating.SelectedItem.ToString();
if (x != "")
{
switch (x)
{
case "Excellent":
strRate = "5";
break;
case "Good":
strRate = "4";
break;
case "Average":
strRate = "3";
break;
case "Bad":
strRate = "2";
break;
case "Terrible":
strRate = "1";
break;
}


btnRate.Enabled = false;
SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["KMSConnectionString"]);
con.Open();
string str = "insert into Rating(Rate,Authorname,Replies,QId) values('" + strRate + "','" + btnName.Text + "','" + lblReply.Text + "' ,'" + btnSno.Text + "' )";
//string strT="count
SqlCommand cmd = new SqlCommand(str, con);
DataSet ds = new DataSet();
cmd.ExecuteNonQuery();
con.Close();
now the problem is how can i retrive the data to label like is the user gets 5 points i want to calculate the total replies rated.....how to bind this to my label.

harika

GeneralRe: how display the rating Pin
N a v a n e e t h8-Jul-07 21:20
N a v a n e e t h8-Jul-07 21:20 
QuestionGenerating <TD>'s at runtime Pin
Rajiya8-Jul-07 20:18
Rajiya8-Jul-07 20:18 
AnswerRe: Generating <TD>'s at runtime Pin
Michael Sync8-Jul-07 20:25
Michael Sync8-Jul-07 20:25 
QuestionSend SMS to Mobile phones from my web application Pin
Vipin.d8-Jul-07 20:12
Vipin.d8-Jul-07 20:12 
AnswerRe: Send SMS to Mobile phones from my web application Pin
N a v a n e e t h8-Jul-07 20:44
N a v a n e e t h8-Jul-07 20:44 
Questionremoving mulitple entries from datatable Pin
playout8-Jul-07 20:10
playout8-Jul-07 20:10 
AnswerRe: removing mulitple entries from datatable Pin
Vipin.d8-Jul-07 20:14
Vipin.d8-Jul-07 20:14 
AnswerRe: removing mulitple entries from datatable Pin
Venkatesh Mookkan8-Jul-07 20:33
Venkatesh Mookkan8-Jul-07 20:33 
GeneralRe: removing mulitple entries from datatable Pin
playout8-Jul-07 22:48
playout8-Jul-07 22:48 
Questionhow to scroll in a single line Pin
speedy_gonzalas8-Jul-07 19:27
speedy_gonzalas8-Jul-07 19:27 
Questionhow to create ASPNET user in SQL Server 2000 Pin
anystudent8-Jul-07 18:56
anystudent8-Jul-07 18:56 
AnswerRe: how to create ASPNET user in SQL Server 2000 Pin
Michael Sync8-Jul-07 19:31
Michael Sync8-Jul-07 19:31 
GeneralRe: how to create ASPNET user in SQL Server 2000 Pin
anystudent8-Jul-07 20:11
anystudent8-Jul-07 20:11 
GeneralRe: how to create ASPNET user in SQL Server 2000 Pin
Michael Sync8-Jul-07 20:21
Michael Sync8-Jul-07 20:21 
QuestionVbscript Pin
garga18-Jul-07 18:47
garga18-Jul-07 18:47 
AnswerRe: Vbscript Pin
Michael Sync8-Jul-07 19:41
Michael Sync8-Jul-07 19:41 
GeneralRe: Vbscript Pin
garga18-Jul-07 23:50
garga18-Jul-07 23:50 

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.