or
RadRotator1.DataSource =
App.WorkWith()
.Pages()
.Where(n => n.Page.Status == ContentLifecycleStatus.Live)
.Get()
.Take(
this
.NewsLimit)
.ToList()
.Join(App.WorkWith()
.Images()
.Get()
.Where(i => i.Parent.Title == albumName.ToString() && i.Status == ContentLifecycleStatus.Live),
item => item.Title.Value,
image => image.Title.Value,
(item, image) =>
new
{ NewsItem = item, NewsImage = image });
Page newsItem =
(Page)TypeDescriptor
.GetProperties(e.Item.DataItem)[
"Page"
]
.GetValue(e.Item.DataItem);
if
(text !=
null
) text.Text = newsItem.Description;
this
.RadRotator1.DataSource = App.WorkWith().Pages().Where(p => p.Page.Status == ContentLifecycleStatus.Live).Get().Take(
this
.NewsLimit).ToList().Join(
App.WorkWith().Images().Get().Where(i => i.Parent.Title == albumName && i.Status == ContentLifecycleStatus.Live),
item => item.Title.Value,
image => image.Title.Value,
(item, image) =>
new
{ NewsItem = item, NewsImage = image });
it showed me the error :) in the educationInfoTab = tabStrip.FindTabByText("Academics Info");
i am using the telerik tab stip as wizard :)
similar to this example
http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/wizard/defaultcs.aspx
the erro detils
System.NullReferenceException was unhandled by user code
Message=Object reference not set to an instance of an object.
Source=App_Web_e2z0fa1r
StackTrace:
at admin_support_files_addstudent_general.GoToNextTab() in
c:\Users\diamond\Desktop\work\site\admin\support_files\General_new_std.ascx.cs:line
25
at
admin_support_files_addstudent_general.nextButton_Click(Object sender,
EventArgs e) in
c:\Users\diamond\Desktop\work\site\admin\support_files\General_new_std.ascx.cs:line
18
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException:
please help :)
private void GoToNextTab()
{
RadTabStrip tabStrip = (RadTabStrip)Page.FindControl("RadTabStrip1");
RadTab educationInfoTab = new RadTab();
educationInfoTab = tabStrip.FindTabByText("Academics Info");
educationInfoTab.Enabled = true;
educationInfoTab.Selected = true;
GoToNextPageView();
}