Click here to Skip to main content
15,917,610 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralEncrypt text Pin
kavinnagarajan26-Aug-09 23:23
kavinnagarajan26-Aug-09 23:23 
Questionaccess file outside application path......help Pin
VinothRao25-Aug-09 14:26
VinothRao25-Aug-09 14:26 
AnswerRe: access file outside application path......help [modified] Pin
Not Active25-Aug-09 14:57
mentorNot Active25-Aug-09 14:57 
GeneralRe: access file outside application path......help [modified] Pin
VinothRao25-Aug-09 15:18
VinothRao25-Aug-09 15:18 
QuestionHow to Override Master page Page_Error event in Child Page. Pin
Khadir00925-Aug-09 12:57
Khadir00925-Aug-09 12:57 
AnswerRe: How to Override Master page Page_Error event in Child Page. Pin
Not Active25-Aug-09 14:53
mentorNot Active25-Aug-09 14:53 
GeneralRe: How to Override Master page Page_Error event in Child Page. Pin
Khadir00925-Aug-09 15:55
Khadir00925-Aug-09 15:55 
QuestionASP.Net Report viewer not showing data Pin
fred_25-Aug-09 10:40
fred_25-Aug-09 10:40 
QuestionInsert ,Update ,Delete with AO.NEt Entity framework Pin
malkan Rahim Nazari25-Aug-09 7:49
malkan Rahim Nazari25-Aug-09 7:49 
GeneralRe: Insert ,Update ,Delete with AO.NEt Entity framework Pin
ali_reza_zareian25-Aug-09 7:56
ali_reza_zareian25-Aug-09 7:56 
GeneralRe: Insert ,Update ,Delete with AO.NEt Entity framework Pin
malkan Rahim Nazari25-Aug-09 8:08
malkan Rahim Nazari25-Aug-09 8:08 
AnswerRe: Insert ,Update ,Delete with AO.NEt Entity framework Pin
Not Active25-Aug-09 12:16
mentorNot Active25-Aug-09 12:16 
QuestionHow to get selectedItems from listbox in asp.net???? Pin
BellaThomson25-Aug-09 7:08
BellaThomson25-Aug-09 7:08 
AnswerRe: How to get selectedItems from listbox in asp.net???? Pin
Blue_Boy25-Aug-09 7:49
Blue_Boy25-Aug-09 7:49 
Question[Message Deleted] Pin
blacknails25-Aug-09 4:25
blacknails25-Aug-09 4:25 
AnswerRe: searching from sql server database and displaying on textboxs Pin
Blue_Boy25-Aug-09 6:45
Blue_Boy25-Aug-09 6:45 
Questionplease ans me Pin
amarnath n.n25-Aug-09 3:36
amarnath n.n25-Aug-09 3:36 
AnswerRe: please ans me Pin
Abhijit Jana25-Aug-09 4:02
professionalAbhijit Jana25-Aug-09 4:02 
Generalaccessing master page controls Pin
amarnath n.n25-Aug-09 4:31
amarnath n.n25-Aug-09 4:31 
GeneralRe: accessing master page controls Pin
Christian Graus25-Aug-09 10:58
protectorChristian Graus25-Aug-09 10:58 
Questionuser control Pin
Ramkumar_S25-Aug-09 2:54
Ramkumar_S25-Aug-09 2:54 
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


public partial class SampleMenuPage1 : System.Web.UI.Page
{
private const string BASE_PATH = "~/DynamicControlLoading/";

private string LastLoadedControl
{
get
{
return ViewState["LastLoaded"] as string;
}
set
{
ViewState["LastLoaded"] = value;
}
}

private void LoadUserControl()
{
string controlPath = LastLoadedControl;
if (!string.IsNullOrEmpty(controlPath))
{
PlaceHolder1.Controls.Clear();
UserControl uc = (UserControl)LoadControl(controlPath);
PlaceHolder1.Controls.Add(uc);
}
}

protected void Page_Load(object sender, EventArgs e)
{
LoadUserControl();

if (IsPostBack)
{
//Sleeps for 1 Seconds
//A Fake Deley to show the UpdateProgress/ModalPopup
System.Threading.Thread.Sleep(1000);
}
}

protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
{
MenuItem menu = e.Item;

string controlPath = string.Empty;

switch (menu.Text)
{
case "Load Control2":
controlPath = BASE_PATH + "SampleControl2.ascx";
break;
case "Load Control3":
controlPath = BASE_PATH + "SampleControl3.ascx";
break;
default:
controlPath = BASE_PATH + "SampleControl1.ascx";
break;
}

LastLoadedControl = controlPath;
LoadUserControl();
}
}

In SampleControl2.ascx ..Even is not firing for first time(dropdown onchange event)
And !ispostback is not working

Ramkumar

AnswerRe: user control Pin
Blue_Boy25-Aug-09 2:58
Blue_Boy25-Aug-09 2:58 
AnswerRe: user control Pin
here2learn25-Aug-09 22:54
here2learn25-Aug-09 22:54 
QuestionPlaceholder+usercontrol Pin
Ramkumar_S25-Aug-09 2:28
Ramkumar_S25-Aug-09 2:28 
AnswerRe: Placeholder+usercontrol Pin
N a v a n e e t h25-Aug-09 2:31
N a v a n e e t h25-Aug-09 2:31 

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.