Click here to Skip to main content
15,895,142 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionrefresh Pin
tanzeel853-Jun-11 2:10
tanzeel853-Jun-11 2:10 
AnswerRe: refresh Pin
shankysharma863-Jun-11 2:21
shankysharma863-Jun-11 2:21 
GeneralRe: refresh Pin
tanzeel853-Jun-11 2:33
tanzeel853-Jun-11 2:33 
GeneralRe: refresh Pin
Blue_Boy3-Jun-11 2:44
Blue_Boy3-Jun-11 2:44 
AnswerRe: refresh Pin
Monjurul Habib4-Jun-11 11:25
professionalMonjurul Habib4-Jun-11 11:25 
QuestionSend value to server side Pin
Elham M3-Jun-11 1:40
Elham M3-Jun-11 1:40 
AnswerRe: Send value to server side Pin
Not Active3-Jun-11 2:02
mentorNot Active3-Jun-11 2:02 
GeneralRe: Send value to server side Pin
Elham M4-Jun-11 9:39
Elham M4-Jun-11 9:39 
I've didn't work with ajax method How can I call it to push to the server?
this is my code:

<asp:content id="Content1" contentplaceholderid="head" runat="Server">

var MENU = [];
MENU[0] = [];
MENU[1] = [];

MENU[0][0] = new Option("New York", "NY");
MENU[0][1] = new Option("New York City", "NYC");
MENU[0][2] = new Option("Syracuse", "SYR");
MENU[1][0] = new Option("California", "CA");
MENU[1][1] = new Option("Los Angeles", "LAN");
MENU[1][2] = new Option("San Diego", "SDI");
function populateMain(mainSel, subSel) {
var mainMenu = mainSel;
var subMenu = subSel;
mainMenu.options.length = 0;
for (var i = 0; i < MENU.length; i++) {
mainMenu.options[i] = MENU[i][0];
}
populateSub(mainMenu, subMenu);
}

function populateSub(mainSel, subSel) {
var mainMenu = mainSel;
var subMenu = subSel;
var optMainMenu;
subMenu.options.length = 1;
optMainMenu = mainMenu.selectedIndex;
for (var i = 1; i < MENU[optMainMenu].length; i++) {
subMenu.options[i] = MENU[optMainMenu][i];
}
}


<asp:content id="Content2" contentplaceholderid="ContentPlaceHolder1" runat="Server">



--Please Choose--


////////////On server side


protected void Page_Load(object sender, EventArgs e)
{
const string someScript = "alertMe";
if (!ClientScript.IsStartupScriptRegistered(this.GetType(), someScript))
{

ClientScript.RegisterStartupScript(this.GetType(),
someScript, "populateMain(document.getElementById('State'), document.getElementById('City'));", true);
}
}


I can't get the value of menu in server side!I wan't to save them in database so what's your sugestion?
GeneralRe: Send value to server side Pin
Not Active4-Jun-11 10:08
mentorNot Active4-Jun-11 10:08 
GeneralRe: Send value to server side Pin
Elham M4-Jun-11 20:08
Elham M4-Jun-11 20:08 
GeneralRe: Send value to server side Pin
Not Active5-Jun-11 2:23
mentorNot Active5-Jun-11 2:23 
GeneralRe: Send value to server side Pin
Elham M5-Jun-11 7:47
Elham M5-Jun-11 7:47 
GeneralRe: Send value to server side Pin
Not Active5-Jun-11 8:25
mentorNot Active5-Jun-11 8:25 
GeneralRe: Send value to server side Pin
Elham M6-Jun-11 0:55
Elham M6-Jun-11 0:55 
GeneralRe: Send value to server side Pin
Not Active6-Jun-11 1:52
mentorNot Active6-Jun-11 1:52 
GeneralRe: Send value to server side Pin
Morgs Morgan8-Jun-11 1:17
Morgs Morgan8-Jun-11 1:17 
GeneralRe: Send value to server side Pin
Elham M8-Jun-11 7:54
Elham M8-Jun-11 7:54 
GeneralRe: Send value to server side Pin
Morgs Morgan8-Jun-11 21:20
Morgs Morgan8-Jun-11 21:20 
GeneralRe: Send value to server side Pin
Not Active8-Jun-11 8:37
mentorNot Active8-Jun-11 8:37 
GeneralRe: Send value to server side Pin
Morgs Morgan8-Jun-11 21:20
Morgs Morgan8-Jun-11 21:20 
GeneralRe: Send value to server side Pin
Elham M8-Jun-11 7:44
Elham M8-Jun-11 7:44 
AnswerRe: Send value to server side Pin
shankysharma863-Jun-11 2:08
shankysharma863-Jun-11 2:08 
GeneralRe: Send value to server side Pin
Not Active3-Jun-11 4:48
mentorNot Active3-Jun-11 4:48 
QuestionStoring and Retrieving Documents in SQL Server Pin
Aptiva Dave2-Jun-11 10:53
Aptiva Dave2-Jun-11 10:53 
AnswerRe: Storing and Retrieving Documents in SQL Server Pin
Blue_Boy2-Jun-11 20:36
Blue_Boy2-Jun-11 20: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.