How to Navigate
-
Hai, I want to redirect from one web user control(ascx) to another (web user control) on a button click in the first ascx. I tried response.redirect and navigateurl. but it didn't work How I can do this? Please show me the right way Thank you, Rahul .P. Menon SoftwareDeveloper(.NET)
-
Hai, I want to redirect from one web user control(ascx) to another (web user control) on a button click in the first ascx. I tried response.redirect and navigateurl. but it didn't work How I can do this? Please show me the right way Thank you, Rahul .P. Menon SoftwareDeveloper(.NET)
hello rahul I think you have to use placeholder in which you have to pass a ascx object and accordding that condition you can add the specific ASCX page. Ashish Joshi
-
hello rahul I think you have to use placeholder in which you have to pass a ascx object and accordding that condition you can add the specific ASCX page. Ashish Joshi
Hai Ashish Joshi, Thanks much for the valuable and quick response. If you can elaborate it with some code snippets,it will be a great relief for me. Thank you, Rahul.P.Menon SoftwareDeveloper(.NET)
-
Hai Ashish Joshi, Thanks much for the valuable and quick response. If you can elaborate it with some code snippets,it will be a great relief for me. Thank you, Rahul.P.Menon SoftwareDeveloper(.NET)
suppose i have one ASCX topbanner.ascx in which i have one linkbutton "career" so in topbanner.ascx i will write Private Sub LkBtnCareer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LkBtnCareer.Click Response.Redirect("index1.aspx?action=career") End Sub now in index1.aspx on page load i will write first i make Public pageControl = New Control() then i will write If Request.Params("action") = "career" Then pageControl = LoadControl("career.ascx")//here this will the page PlaceHolder.Controls.Add(pageControl) end if Ashish Joshi
-
suppose i have one ASCX topbanner.ascx in which i have one linkbutton "career" so in topbanner.ascx i will write Private Sub LkBtnCareer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LkBtnCareer.Click Response.Redirect("index1.aspx?action=career") End Sub now in index1.aspx on page load i will write first i make Public pageControl = New Control() then i will write If Request.Params("action") = "career" Then pageControl = LoadControl("career.ascx")//here this will the page PlaceHolder.Controls.Add(pageControl) end if Ashish Joshi
Ashish Joshi, Thanks much for your incredible help. I am having,still a query.That is by this we need to have an aspx. Ashish Joshi wrote: Response.Redirect("index1.aspx?action=career") End Sub "With out using,an aspx page can I redirect directly from ascx to another." Any way is there? Thank You, Rahul.P.Menon SoftwareDeveloper(.NET)
-
Ashish Joshi, Thanks much for your incredible help. I am having,still a query.That is by this we need to have an aspx. Ashish Joshi wrote: Response.Redirect("index1.aspx?action=career") End Sub "With out using,an aspx page can I redirect directly from ascx to another." Any way is there? Thank You, Rahul.P.Menon SoftwareDeveloper(.NET)
its simplle the code write in ASPX that you write in ascx.. simple.coz ascx also have the same things in code behind as aspx. Ashish Joshi
-
its simplle the code write in ASPX that you write in ascx.. simple.coz ascx also have the same things in code behind as aspx. Ashish Joshi
Ashish Joshi, That is fine.I apreciate your help. Thanks a lot for showed me the right way. Thank you, Rahul.P.Menon SoftwareDeveloper(.NET)