Click here to Skip to main content
15,885,365 members
Home / Discussions / Web Development
   

Web Development

 
Answer[Cross-Post ! IE share SSL connection made by myself] Pin
Garth J Lancaster9-Jan-09 18:31
professionalGarth J Lancaster9-Jan-09 18:31 
GeneralRe: [Cross-Post ! IE share SSL connection made by myself] Pin
maoxintt9-Jan-09 18:42
maoxintt9-Jan-09 18:42 
Questionhow to modify the html code before which loaded by browser? Pin
awayer9-Jan-09 13:36
awayer9-Jan-09 13:36 
QuestionRe: how to modify the html code before which loaded by browser? Pin
Shog99-Jan-09 13:59
sitebuilderShog99-Jan-09 13:59 
AnswerRe: how to modify the html code before which loaded by browser? Pin
JimmyRopes17-Jan-09 6:05
professionalJimmyRopes17-Jan-09 6:05 
QuestionAjax: Login via ModalPopupExtender issue Pin
Goalie359-Jan-09 11:00
Goalie359-Jan-09 11:00 
GeneralRe: Ajax: Login via ModalPopupExtender issue Pin
Shog99-Jan-09 14:00
sitebuilderShog99-Jan-09 14:00 
QuestionWeb Development Problem : Java Script Pin
Anudeep Jaiswal - MCA9-Jan-09 2:37
Anudeep Jaiswal - MCA9-Jan-09 2:37 
Hi all,
I have a problem in java script...
in asp.net i have a repeater.. in that repeater i have some controls and a dropdownlist.... i am showing message if user select 0 index...


function OnChangeDropDown( DropDown, DivError )
{
alert (DropDown);
alert (DivError);
var DivError1 = document.getElementById( DivError )
if ( DropDown.value == "0" )
{
DivError1.style.display = '';
DropDown.focus();
return false;
}
else
{
DivError1.style.display = 'none';
return false;
}
}

***********************
Repeater Code :


<asp:repeater id="repStudentPromotion" runat="server" xmlns:asp="#unknown">
<headertemplate>















Student Id

Student Name

Student Status

<asp:hiddenfield id="hf_sys_generated_id" runat="server" value="<%# Eval(" sys_generated_id=")%>">
]]>

]]>

<asp:dropdownlist id="ddlStatus" runat="server" onchange="return OnChangeDropDown(this,<%$ DivError.ClientID %> )">
<asp:listitem value="0"><-->
<asp:listitem value="1" selected="True">Promote To Next Semester
<asp:listitem value="2">Detained
<asp:listitem value="3">Compartment
<asp:listitem value="4">Provisionally Promoted


* Required

*********************************************************************
Calling Style in CS File:
foreach (RepeaterItem row in repStudentPromotion.Items)
{
DropDownList ddlStatus = (DropDownList)row.FindControl("ddlStatus");
HtmlGenericControl DivError = (HtmlGenericControl)row.FindControl("DivError");
ddlStatus.Attributes.Add("onchange", "return OnChangeDropDown(this,'" + DivError.ClientID + "')");
}

i want to add this attribute in aspx file as

onchange="return OnChangeDropDown(this,<%$ DivError.ClientID %> )"

*******************************************************************************

but there is a error in second parameter....

my question is how to pass controlID in javascript as a parameter instead of 'this'

waiting for reply...

Hope For The Best............Confused

anudeep jaiswal
09891599687
Noida - India

AnswerCROSS POST Pin
Not Active9-Jan-09 3:24
mentorNot Active9-Jan-09 3:24 
QuestionASP.NET 3.5 SP1 Server Side Viewstate Pin
L Viljoen8-Jan-09 23:13
professionalL Viljoen8-Jan-09 23:13 
GeneralRe: ASP.NET 3.5 SP1 Server Side Viewstate Pin
Shog99-Jan-09 14:01
sitebuilderShog99-Jan-09 14:01 
QuestionCrystal Report Print Icon does nothing Pin
Anoop Brijmohun8-Jan-09 21:58
Anoop Brijmohun8-Jan-09 21:58 
QuestionDynamic populator Pin
umaheshchandra8-Jan-09 4:37
umaheshchandra8-Jan-09 4:37 
QuestionHelp writing a SharePoint Sequential WorkFlow Pin
Jakob Farian Krarup8-Jan-09 0:04
Jakob Farian Krarup8-Jan-09 0:04 
QuestionDoes anyone know of any good Dreamweaver alternatives? [modified] Pin
Kenny McKee7-Jan-09 15:59
Kenny McKee7-Jan-09 15:59 
AnswerRe: Does anyone know of any good Dreamweaver alternatives? Pin
Aman Bhullar7-Jan-09 17:56
Aman Bhullar7-Jan-09 17:56 
GeneralRe: Does anyone know of any good Dreamweaver alternatives? Pin
Kenny McKee7-Jan-09 18:15
Kenny McKee7-Jan-09 18:15 
AnswerRe: Does anyone know of any good Dreamweaver alternatives? Pin
Mohammad Dayyan8-Jan-09 10:16
Mohammad Dayyan8-Jan-09 10:16 
GeneralRe: Does anyone know of any good Dreamweaver alternatives? Pin
Kenny McKee8-Jan-09 15:05
Kenny McKee8-Jan-09 15:05 
Question, I need to a browse button to be able to open an image in the image control and also be able to get the path for the image... Can anyone help... Pin
akshayshirke117-Jan-09 3:00
akshayshirke117-Jan-09 3:00 
AnswerRe: , I need to a browse button to be able to open an image in the image control and also be able to get the path for the image... Can anyone help... Pin
SeMartens7-Jan-09 21:13
SeMartens7-Jan-09 21:13 
QuestionSEND EMAIL IN PHP Pin
Deepak C Lakshman6-Jan-09 8:50
Deepak C Lakshman6-Jan-09 8:50 
AnswerRe: SEND EMAIL IN PHP Pin
leckey6-Jan-09 9:42
leckey6-Jan-09 9:42 
AnswerRe: SEND EMAIL IN PHP Pin
Aman Bhullar6-Jan-09 20:29
Aman Bhullar6-Jan-09 20:29 
GeneralRe: SEND EMAIL IN PHP Pin
Deepak C Lakshman7-Jan-09 6:47
Deepak C Lakshman7-Jan-09 6:47 

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.