Click here to Skip to main content
16,007,760 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Datagrid-Date Problem Pin
Sathesh Sakthivel26-Apr-07 2:41
Sathesh Sakthivel26-Apr-07 2:41 
GeneralRe: Datagrid-Date Problem Pin
Chetan Ranpariya26-Apr-07 20:43
Chetan Ranpariya26-Apr-07 20:43 
AnswerRe: Datagrid-Date Problem Pin
sra2226-Apr-07 2:06
sra2226-Apr-07 2:06 
QuestionA connection with the server could not be established. Pin
MissionSuccess26-Apr-07 1:03
MissionSuccess26-Apr-07 1:03 
AnswerRe: A connection with the server could not be established. Pin
Christian Graus26-Apr-07 1:13
protectorChristian Graus26-Apr-07 1:13 
GeneralRe: A connection with the server could not be established. Pin
MissionSuccess26-Apr-07 1:27
MissionSuccess26-Apr-07 1:27 
QuestionUsing master pages Pin
Russell Jones26-Apr-07 0:56
Russell Jones26-Apr-07 0:56 
AnswerRe: Using master pages Pin
kubben26-Apr-07 2:22
kubben26-Apr-07 2:22 
Usually, I have the controls I am trying to work with passed into the javascript functions. You just have to pass in the controlname.ClientId. Then inside of the javascript that variable is the object.
So in my code behind I have something like this:
ddlProgramCode.Attributes.Add("onchange", "OnChangeProgramDDL(" + ddlProgramCode.ClientID + "," +
                            ddlRPLine1.ClientID + "," + ddlRPLine2.ClientID + "," + ddlRPLine3.ClientID + "," + ddlRPLine4.ClientID + "," + ddlRPLine5.ClientID + ");");


Then the javascript function:
function OnChangeReadingProgramDDL(ddlRP, ddl1, ddl2, ddl3, ddl4, ddl5)
    {
        
        if (ddlRP.options[ddlRP.selectedIndex].text == "Accelerated Reader")
        {
            ddl1.selectedIndex = 1;
            ddl2.selectedIndex = 2;
            ddl3.selectedIndex = 3;
            ddl4.selectedIndex = 0;
            ddl5.selectedIndex = 0;
        }
        else if (ddlRP.options[ddlRP.selectedIndex].text == "Reading Counts")
        {
            ddl1.selectedIndex = 1;
            ddl2.selectedIndex = 2;
            ddl3.selectedIndex = 3;
            ddl4.selectedIndex = 4;
            ddl5.selectedIndex = 0;
        }
    }


Anyway, that is what I have been doing.

Hope that helps.
Ben
GeneralRe: Using master pages Pin
Russell Jones26-Apr-07 4:22
Russell Jones26-Apr-07 4:22 
GeneralRe: Using master pages Pin
kubben26-Apr-07 4:39
kubben26-Apr-07 4:39 
GeneralRe: Using master pages Pin
Russell Jones26-Apr-07 5:07
Russell Jones26-Apr-07 5:07 
Questionmodifying excel tables with asp.net Pin
TechnoGrey26-Apr-07 0:53
TechnoGrey26-Apr-07 0:53 
QuestionHow can i automatically move from Http to Https Pin
pankaj tanwar26-Apr-07 0:03
pankaj tanwar26-Apr-07 0:03 
Question301 Permanent redirect. Pin
Jes M George26-Apr-07 0:03
Jes M George26-Apr-07 0:03 
AnswerRe: 301 Permanent redirect. Pin
Chetan Ranpariya26-Apr-07 0:43
Chetan Ranpariya26-Apr-07 0:43 
QuestionCannot add or remove tables from the DataSet once the DataSet is mapped to a loaded XML document.. Pin
Imran Khan Pathan26-Apr-07 0:01
Imran Khan Pathan26-Apr-07 0:01 
QuestionAnyone Tell Me about It. Pin
Mkanchha25-Apr-07 23:57
Mkanchha25-Apr-07 23:57 
Questionperformance of the website Pin
Sophia Rekhi25-Apr-07 23:46
Sophia Rekhi25-Apr-07 23:46 
AnswerRe: performance of the website Pin
Sathesh Sakthivel26-Apr-07 0:12
Sathesh Sakthivel26-Apr-07 0:12 
AnswerRe: performance of the website Pin
Pete O'Hanlon26-Apr-07 0:40
mvePete O'Hanlon26-Apr-07 0:40 
QuestionSorting and Freezing Gridview Pin
varshavmane25-Apr-07 23:13
varshavmane25-Apr-07 23:13 
AnswerRe: Sorting and Freezing Gridview Pin
Mazdak25-Apr-07 23:55
Mazdak25-Apr-07 23:55 
GeneralRe: Sorting and Freezing Gridview Pin
varshavmane26-Apr-07 0:15
varshavmane26-Apr-07 0:15 
GeneralRe: Sorting and Freezing Gridview Pin
Mazdak26-Apr-07 1:07
Mazdak26-Apr-07 1:07 
GeneralRe: Sorting and Freezing Gridview Pin
varshavmane26-Apr-07 1:17
varshavmane26-Apr-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.