Click here to Skip to main content
15,916,189 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: field validation in content pages Pin
firozu3-May-07 1:26
firozu3-May-07 1:26 
Questionhow can I modify the content of a contentplaceholder Pin
rom901251-May-07 11:09
rom901251-May-07 11:09 
AnswerRe: Link within a Textbox Pin
StianSandberg1-May-07 10:34
StianSandberg1-May-07 10:34 
GeneralRe: Link within a Textbox Pin
Ibuprofen1-May-07 11:52
Ibuprofen1-May-07 11:52 
QuestionSecurity Exception Pin
deepaks31-May-07 8:37
deepaks31-May-07 8:37 
AnswerRe: Security Exception Pin
CharlyBrownx31-May-07 9:11
CharlyBrownx31-May-07 9:11 
GeneralRe: Security Exception Pin
deepaks32-May-07 8:49
deepaks32-May-07 8:49 
QuestionMaster Pages Pin
hahii1-May-07 8:18
hahii1-May-07 8:18 
Hi,

I am stuck now. I have a master page. and I have one dropdownlist in master page. When I click one item on master page it redirects to me some folder and opens the file in that folder.
I am using one javascript for opening the url. but if I include that java script it doesn't go to that
selectedIndexChanged property. because I need to know the infdex of selected item in the dropdownlist.

but if I remove the javascript it goes to selexctediIndexChanged property event. But I need jhavascript to call
I don't know where is the problem. Could you please help me to solve it.

Thanks.

Here is my code in master page

protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DataSet ds;
ds = AppName();

DropDownList2.Items.Add(new ListItem("--Select Application--"));
DropDownList2.AppendDataBoundItems = true;

DropDownList2.DataSource = ds;
DropDownList2.DataTextField = "AppName";
DropDownList2.DataValueField = "AppLocation";
DropDownList2.DataBind();
}
DropDownList2.Attributes.Add("onchange", "goToNewPage(this.value)");

}

here is my Java script



function goToNewPage(url)
{
window.location.href=url;
alert("hello");


}



Here is my selectedIndexchanged property


protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
{
int index = DropDownList2.SelectedIndex;
DataSet ds1;
ds1 = AppName();
Session["apprightid"] = Convert.ToInt32(ds1.Tables[0].Rows[index - 1][1]);
int count = Convert.ToInt32(ds1.Tables[0].Rows[index - 1][1]);
}
QuestionProblem in using timer control in asp.net Pin
RohitRajPokhrel1-May-07 8:04
RohitRajPokhrel1-May-07 8:04 
AnswerRe: Problem in using timer control in asp.net Pin
CharlyBrownx31-May-07 9:16
CharlyBrownx31-May-07 9:16 
GeneralRe: Problem in using timer control in asp.net Pin
RohitRajPokhrel2-May-07 9:00
RohitRajPokhrel2-May-07 9:00 
QuestionItems in a RadioButtonList Pin
donkur1-May-07 7:34
donkur1-May-07 7:34 
AnswerRe: Items in a RadioButtonList Pin
Ibuprofen1-May-07 8:40
Ibuprofen1-May-07 8:40 
GeneralRe: Items in a RadioButtonList [modified] Pin
donkur1-May-07 8:59
donkur1-May-07 8:59 
GeneralRe: Items in a RadioButtonList Pin
Ibuprofen1-May-07 9:17
Ibuprofen1-May-07 9:17 
GeneralRe: Items in a RadioButtonList Pin
donkur1-May-07 9:23
donkur1-May-07 9:23 
GeneralRe: Items in a RadioButtonList Pin
Ibuprofen1-May-07 9:46
Ibuprofen1-May-07 9:46 
GeneralRe: Items in a RadioButtonList Pin
donkur2-May-07 4:24
donkur2-May-07 4:24 
QuestionASP.NET error Pin
MohammadAmiry1-May-07 7:29
MohammadAmiry1-May-07 7:29 
AnswerRe: ASP.NET error Pin
kubben1-May-07 7:52
kubben1-May-07 7:52 
QuestionMs Access image Pin
nc3b1-May-07 7:04
nc3b1-May-07 7:04 
QuestionCreate a page like Windows Explorer? Pin
Ibuprofen1-May-07 6:51
Ibuprofen1-May-07 6:51 
QuestionVertical align text in label Pin
packerfan19041-May-07 6:13
packerfan19041-May-07 6:13 
AnswerRe: Vertical align text in label Pin
Sandeep Akhare1-May-07 20:02
Sandeep Akhare1-May-07 20:02 
QuestionCausing validation on postback Pin
cullyk1-May-07 6:06
cullyk1-May-07 6:06 

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.