Click here to Skip to main content
15,915,319 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: icon to the web page Pin
Christian Flutcher23-Oct-07 3:28
Christian Flutcher23-Oct-07 3:28 
AnswerRe: icon to the web page Pin
Bjohnson3323-Oct-07 6:03
Bjohnson3323-Oct-07 6:03 
QuestionDeclarative Catalog in Webparts ASP.Net 2.0 [modified] Pin
Sivan.G23-Oct-07 2:27
Sivan.G23-Oct-07 2:27 
Questionimage Pin
jai 12323-Oct-07 1:46
jai 12323-Oct-07 1:46 
AnswerRe: image Pin
N a v a n e e t h23-Oct-07 1:50
N a v a n e e t h23-Oct-07 1:50 
GeneralRe: image Pin
jai 12323-Oct-07 2:05
jai 12323-Oct-07 2:05 
QuestionRepeat background image in Word Pin
coolestCoder23-Oct-07 1:03
coolestCoder23-Oct-07 1:03 
QuestionGridview Problem Pin
Elizma23-Oct-07 0:16
Elizma23-Oct-07 0:16 
Hi Guys and Gals,

I am using a javascript function to update a label in a template column of a gridview. This all works fine, but the problem we are having is that when we want to update the database with the changes, the labels returns the old values instead of the updated values in the labels.

Here is our JavaScript. If anyone can tell us what we are doing wrong or how to correct this problem, it will be greatly appreciated.

string script = @"
function calcQty(QtyPerCarton,Cartons, num)
{
if(num < 10)
num = '0' + num;

var i = document.getElementById('dg3_ctl'+num+'_txtCartonsPicked');
var carPicked = i.value;
var out;

if(carPicked <= Cartons)
{
out = parseInt(carPicked * QtyPerCarton)
}
else
{
alert('Cartons Picked cant be greater than Cartons');
return;
}

var lbl = document.getElementById('dg3_ctl'+num+'_lblQtyPicked');
lbl.innerHTML = out;
}
";

this.RegisterStartupScript("Calc", script);

Kind Regards,

Elizma
AnswerRe: Gridview Problem Pin
Parwej Ahamad23-Oct-07 0:50
professionalParwej Ahamad23-Oct-07 0:50 
GeneralRe: Gridview Problem Pin
Elizma23-Oct-07 0:56
Elizma23-Oct-07 0:56 
GeneralRe: Gridview Problem Pin
Parwej Ahamad23-Oct-07 1:11
professionalParwej Ahamad23-Oct-07 1:11 
GeneralRe: Gridview Problem Pin
Elizma23-Oct-07 1:16
Elizma23-Oct-07 1:16 
AnswerRe: Gridview Problem Pin
M LN Rao23-Oct-07 1:01
M LN Rao23-Oct-07 1:01 
GeneralRe: Gridview Problem Pin
Elizma23-Oct-07 1:08
Elizma23-Oct-07 1:08 
GeneralRe: Gridview Problem Pin
M LN Rao23-Oct-07 1:17
M LN Rao23-Oct-07 1:17 
GeneralRe: Gridview Problem Pin
Lijo Rajan23-Oct-07 17:20
Lijo Rajan23-Oct-07 17:20 
AnswerRe: Gridview Problem Pin
SABhatti23-Oct-07 3:56
SABhatti23-Oct-07 3:56 
GeneralRe: Gridview Problem Pin
Saksida Bojan23-Oct-07 5:44
Saksida Bojan23-Oct-07 5:44 
QuestionHow can I do MOSS Variation Label Menu customization? Pin
Hasan Bazerbashi23-Oct-07 0:11
Hasan Bazerbashi23-Oct-07 0:11 
Questionruntime table cell value storing while postback the page Pin
hiren dave23-Oct-07 0:08
hiren dave23-Oct-07 0:08 
AnswerRe: runtime table cell value storing while postback the page Pin
Sandeep Akhare23-Oct-07 0:22
Sandeep Akhare23-Oct-07 0:22 
GeneralRe: runtime table cell value storing while postback the page Pin
hiren dave23-Oct-07 0:27
hiren dave23-Oct-07 0:27 
AnswerRe: runtime table cell value storing while postback the page Pin
N a v a n e e t h23-Oct-07 0:30
N a v a n e e t h23-Oct-07 0:30 
GeneralRe: runtime table cell value storing while postback the page Pin
hiren dave23-Oct-07 1:01
hiren dave23-Oct-07 1:01 
GeneralRe: runtime table cell value storing while postback the page Pin
N a v a n e e t h23-Oct-07 1:17
N a v a n e e t h23-Oct-07 1:17 

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.