Click here to Skip to main content
15,889,403 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Problem with Checkbox and Radio Buttons Pin
Narendra Mohan1-Apr-07 21:36
Narendra Mohan1-Apr-07 21:36 
Questionurgent AJAX concept Pin
Vinay Dornala1-Apr-07 21:14
Vinay Dornala1-Apr-07 21:14 
AnswerRe: urgent AJAX concept Pin
Naveed Kamboh2-Apr-07 0:01
Naveed Kamboh2-Apr-07 0:01 
Questionhow to insert multiple records in a database from a multiple selected item listbox in a detailsVIew? Pin
irkahc1-Apr-07 21:11
irkahc1-Apr-07 21:11 
AnswerRe: problem with check box and radio button Pin
Sun Rays1-Apr-07 21:22
Sun Rays1-Apr-07 21:22 
GeneralRe: problem with check box and radio button Pin
www.suniltvl.in1-Apr-07 21:35
www.suniltvl.in1-Apr-07 21:35 
GeneralRe: problem with check box and radio button Pin
Colin Angus Mackay2-Apr-07 0:19
Colin Angus Mackay2-Apr-07 0:19 
QuestionProblem in Getting the value of as server side hidden control on client side. Pin
MissionSuccess1-Apr-07 20:57
MissionSuccess1-Apr-07 20:57 
Respected Gurus

How to get the value of a hidden server control on client side.

I mean i have a
control.

I m setting its value on the page_load event of my web page.

I want its value in one of my javascript function.
How to do that.

My code is


function SetInitialFocus()
{
var chk=document.forms[0].getElementById('ChkNewEdit').value;
if (chk="new")
document.forms[0].getElementById('txtName').focus();
else
document.forms[0].getElementById('txtContactPerson').focus();
}




<asp:textbox id="txtName" runat="server">
<asp:textbox id="txtContactPerson" runat="server">



Server side code is:---------

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

if some condition then
ChkNewEdit.value="Edit"
else
ChkNewEdit.value="New"


end sub

Thanx in advance...
AnswerRe: Problem in Getting the value of as server side hidden control on client side. Pin
Sun Rays1-Apr-07 21:16
Sun Rays1-Apr-07 21:16 
AnswerRe: Problem in Getting the value of as server side hidden control on client side. Pin
faiqshah2-Apr-07 7:21
faiqshah2-Apr-07 7:21 
Questionhow to change language in web application Pin
Rama krishna.M1-Apr-07 20:50
Rama krishna.M1-Apr-07 20:50 
Questioncreating a table Pin
Oga M1-Apr-07 20:31
Oga M1-Apr-07 20:31 
AnswerRe: creating a table Pin
Sathesh Sakthivel1-Apr-07 20:39
Sathesh Sakthivel1-Apr-07 20:39 
Questionneed help with select image button Pin
neodeaths1-Apr-07 20:14
neodeaths1-Apr-07 20:14 
AnswerRe: need help with select image button Pin
Deepak the Cool1-Apr-07 21:00
Deepak the Cool1-Apr-07 21:00 
GeneralRe: need help with select image button Pin
neodeaths1-Apr-07 21:49
neodeaths1-Apr-07 21:49 
QuestionSub Report in crystal report (ASP.NET 2.0) Pin
varshavmane1-Apr-07 20:13
varshavmane1-Apr-07 20:13 
QuestionIs it possible to select multiple items from a listbox and insert into a database? Pin
irkahc1-Apr-07 19:53
irkahc1-Apr-07 19:53 
QuestionBooks Pin
aaraaayen1-Apr-07 19:29
aaraaayen1-Apr-07 19:29 
AnswerRe: Books Pin
Sathesh Sakthivel1-Apr-07 20:03
Sathesh Sakthivel1-Apr-07 20:03 
Questionhow to separate the sessions?? or have two form authenfitication?? [modified] Pin
bigeyed1-Apr-07 15:32
bigeyed1-Apr-07 15:32 
QuestionCss doesn't apply to my pages. Pin
rockxuyenmandem1-Apr-07 13:54
rockxuyenmandem1-Apr-07 13:54 
QuestionASP.NET load/stress testing Pin
econner1-Apr-07 8:31
econner1-Apr-07 8:31 
QuestionNew Row Pin
hadad1-Apr-07 8:01
hadad1-Apr-07 8:01 
AnswerRe: New Row Pin
Venkatesh Mookkan1-Apr-07 19:35
Venkatesh Mookkan1-Apr-07 19:35 

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.