Click here to Skip to main content
15,905,071 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Session variable expires Pin
kubben17-Oct-07 3:17
kubben17-Oct-07 3:17 
AnswerRe: Session variable expires Pin
hifiger200419-Oct-07 7:02
hifiger200419-Oct-07 7:02 
GeneralRe: Session variable expires Pin
hifiger200416-Oct-07 5:23
hifiger200416-Oct-07 5:23 
QuestionSharepoint server 2007 Pin
nompat15-Oct-07 22:39
nompat15-Oct-07 22:39 
AnswerRe: Sharepoint server 2007 Pin
SHatchard16-Oct-07 21:31
SHatchard16-Oct-07 21:31 
QuestionLooking for a Javascript Example... Pin
Bhicken7815-Oct-07 10:44
Bhicken7815-Oct-07 10:44 
AnswerRe: Looking for a Javascript Example... Pin
led mike15-Oct-07 11:06
led mike15-Oct-07 11:06 
AnswerRe: Looking for a Javascript Example... Pin
Elizma16-Oct-07 1:53
Elizma16-Oct-07 1:53 
Hi,

This is code I used to work with 1 textbox value passed and a label that must change.

Hope this help.

if (!IsPostBack)
{
string script = ""+
"function calcQty(val1, num)"+
"{"+
"var i = document.getElementById('gv_ctl0'+num+'_txtinput');"+
"var val2 = i.value;"+
"var out = parseInt(val1) + parseInt(val2);"+
"var lbl = document.getElementById('gv_ctl0'+num+'_lblVal');"+
"lbl.innerHTML = out;"+
"}";
Page.RegisterStartupScript("Calc", script);
}

DataTable dt = new DataTable();
dt.Columns.Add("ID");
dt.Columns.Add("Val");
dt.Rows.Add(new object[] { "1", "Shakeel" });
dt.Rows.Add(new object[] { "2", "Elizma" });
dt.Rows.Add(new object[] { "3", "Mervyn" });

gv.DataSource = dt;
gv.DataBind();

int start = 2;
for(int i = 0; i < gv.Rows.Count; i++, start++)
{
((TextBox)gv.Rows[i].Cells[2].FindControl("txtinput")).Attributes.Add("onblur", "calcQty(" + dt.Rows[i].Cells[1].Text + "," + start + ")");

}
QuestionWeb Service -DLL bound deployment Pin
Bob Enein15-Oct-07 5:18
Bob Enein15-Oct-07 5:18 
Questionasp:CustomValidator Control Pin
Brendan Vogt14-Oct-07 23:57
Brendan Vogt14-Oct-07 23:57 
AnswerRe: asp:CustomValidator Control Pin
Christian Graus15-Oct-07 0:17
protectorChristian Graus15-Oct-07 0:17 
QuestionClient FTP Error Code 12029 Pin
dev2414-Oct-07 22:10
dev2414-Oct-07 22:10 
QuestionSearch Feature [modified] Pin
saaiman14-Oct-07 21:11
saaiman14-Oct-07 21:11 
AnswerRe: Search Feature Pin
pmarfleet14-Oct-07 21:51
pmarfleet14-Oct-07 21:51 
GeneralRe: Search Feature Pin
saaiman15-Oct-07 21:09
saaiman15-Oct-07 21:09 
GeneralRe: Search Feature Pin
pmarfleet15-Oct-07 22:07
pmarfleet15-Oct-07 22:07 
GeneralRe: Search Feature Pin
Christian Graus15-Oct-07 22:45
protectorChristian Graus15-Oct-07 22:45 
QuestionControl that automatically drags when page is scrolled down Pin
CandyMe14-Oct-07 20:36
CandyMe14-Oct-07 20:36 
AnswerRe: Control that automatically drags when page is scrolled down [modified] Pin
Bjohnson3317-Oct-07 1:25
Bjohnson3317-Oct-07 1:25 
GeneralRe: Control that automatically drags when page is scrolled down Pin
CandyMe22-Oct-07 18:45
CandyMe22-Oct-07 18:45 
GeneralRe: Control that automatically drags when page is scrolled down Pin
Bjohnson3323-Oct-07 0:56
Bjohnson3323-Oct-07 0:56 
GeneralRe: Control that automatically drags when page is scrolled down Pin
CandyMe25-Oct-07 2:31
CandyMe25-Oct-07 2:31 
GeneralRe: Control that automatically drags when page is scrolled down Pin
Bjohnson3325-Oct-07 22:12
Bjohnson3325-Oct-07 22:12 
GeneralRe: Control that automatically drags when page is scrolled down Pin
CandyMe29-Oct-07 17:38
CandyMe29-Oct-07 17:38 
QuestionI used nant to build ASP .NET application Pin
balpanbh14-Oct-07 18:36
balpanbh14-Oct-07 18:36 

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.