Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:311252
More Search Options
RSS Available
Matching Posts
Re: Call AuthorizeWebParts in codebehind
Thanks for reference, but it looks like unuseful for me.
Posted to
Web Parts and Personalization
(Forum)
by
EDUStreet
on 6/29/2009
Call AuthorizeWebParts in codebehind
My code check each webpart in DeclarativeCatalogPart and assign the role for them. But it doesn't run the after the DeclarativeCatalogPart1_Init life cycle. Do know how to solve it? I want all webpart "Refresh" after assigned role. Appreciate if provide any solution. Thank you. ----------------------------------------------------------------------------------------------------- Default.aspx.vb Protected Sub DeclarativeCatalogPart1_Init(ByVal sender As Object, ByVal e As System.EventArgs
Posted to
Web Parts and Personalization
(Forum)
by
EDUStreet
on 6/24/2009
Call OnAuthorizeWebPart in codebehind?
My code check each webpart in DeclarativeCatalogPart and assign the role for them. But it doesn't run the after the DeclarativeCatalogPart1_Init life cycle. Do know how to solve it? I want all webpart "Refresh" after assigned role. Appreciate if provide any solution. Thank you. ----------------------------------------------------------------------------------------------------- Default.aspx.vb Protected Sub DeclarativeCatalogPart1_Init(ByVal sender As Object, ByVal e As System.EventArgs
Posted to
Web Parts and Personalization
(Forum)
by
EDUStreet
on 6/22/2009
Re: Assign different role(AuthorizationFilter) to different webpart which inside the DeclarativeCatalogPart1 dynamically
Help!!! Any solution???
Posted to
Web Parts and Personalization
(Forum)
by
EDUStreet
on 6/19/2009
Re: Assign different role(AuthorizationFilter) to different webpart which inside the DeclarativeCatalogPart1 dynamically
Now I can get webpart in DeclarativeCatalogPart and assign the role for them. However, the webpart(Announcement) which set to "admin" still show up where my Session("Role")= "user", it is not authorized to "See" the webpart in DeclarativeCatalogPart. I found that even the DeclarativeCatalogPart1_Init run in first life cycle, but the OnAuthorizeWebPart="AuthorizeWebParts" not running anymore after this. So, how can I solve it????? ----------------
Posted to
Web Parts and Personalization
(Forum)
by
EDUStreet
on 6/18/2009
Assign different role(AuthorizationFilter) to different webpart which inside the DeclarativeCatalogPart1 dynamically
Hi, I want to assign role to different webpart dynamically instead of hardcode. Hardcode: Dynamic: Protected Sub DeclarativeCatalogPart1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles DeclarativeCatalogPart1.PreRender Dim WebPartManager1 As WebPartManager = Master.FindControl("WebPartManager1") For Each wp As WebPart In WebPartManager1.WebParts If wp.ID = "Announcement1" Then wp.AuthorizationFilter = "admin" End If Next End Sub Unfortunately this
Posted to
Web Parts and Personalization
(Forum)
by
EDUStreet
on 6/17/2009
Re: Assign different role(AuthorizationFilter) to different webpart which inside the DeclarativeCatalogPart1 dynamically
Some words are missing in my last post. Resend again!!!! In the dynamic approach, the loops doesn't get all the webpart (UserControl) which is in the DeclarativeCatalogPart's WebPartsTemplate. It only get the webpart which is created in design time. I want to get control of all webpart which is in the DeclarativeCatalog. I want to use this approach to assign different roles to different webpart which based on the roles set in my database table. So it the loops incorrect? ----------------
Posted to
Web Parts and Personalization
(Forum)
by
EDUStreet
on 6/17/2009
Multithreading to Sending SMS
I'm able to send single SMS, but now I want to send bulk SMS, as advice from others, I should do the multithreading to send multiple sms. But I have no idea at all. Anyone have source code or reference to share with me are appreciate. Or any one can explain to me what the purpose to use multithreads. Is it a must to use? TQ
Posted to
Web Forms
(Forum)
by
EDUStreet
on 2/17/2009
Re: How to export a runtime datagrid to excel file?
There is something different from your code with mine: 1. Your DataGrid1 is databound in design time, my datagrid bound in runtime I do a mistake where the export button doing the AsyncPostBackTrigger. Now I change to PostBackTrigger. Now the datagrid will still remain in the page and also prompt to open/save the excel file. Unfortunately, it is blank in the file. So I track the code that when I click the export button, the DataGrid.Column.Count = 0 or DataGrid.Items.Count= 0 . That's why I get
Posted to
Data Presentation Controls
(Forum)
by
EDUStreet
on 2/11/2009
Re: How to export a runtime datagrid to excel file?
before I create this post, I was using the approach on above. In fact it could export the excel file, but the problem is the datagrid was missing in the page. I believe is this code cause the problem: Response.End I have try to change this code to Response.flush or comment it, but still doesn't work.
Posted to
Data Presentation Controls
(Forum)
by
EDUStreet
on 2/5/2009
Page 1 of 13 (121 items) 1
2
3
4
5
Next >
...
Last »
WindowsClient:
Build WPF Data Controls for Outlook Addins Easily with VS2010
Channel 9:
Channel 9 Live at PDC09: .Net Rocks Part 2
Channel 9:
Channel 9 Live at PDC09: .Net Rocks Part 1
Channel 9:
Channel 9 Live at PDC09: Wei Zhu (Facebook)
WindowsClient:
WPF Manipulation Basics
ASP.NET:
High CPU in .NET app using a static Generic.Dictionary
TechNet Edge:
Deploying Silverlight - Why and How
WindowsClient:
Windows Client Developer Roundup for 12/21/2009
Silverlight:
4 Calendars & Plans for 2010 / 5770
ASP.NET:
ASP.NET MVC 2 and Visual Studio 2010
ASP.NET:
Moving your ASP.NET Application to Windows Azure – Part II
Silverlight:
HVP – Core Scaffolding and Updated News
Channel 9:
TWC9: 2009 - The Year in Review
ASP.NET:
Tip#100: Did you know… How to view ASP.NET trace information?
ASP.NET:
Passing anonymous objects to MVC views and accessing them using dynamic
Channel 9:
Channel 9 Live at PDC09: Coding 4 Fun
Channel 9:
Channel 9 Live at PDC09: Stephen Toub
WindowsClient:
Mouse Gestures for Internet Explorer
Channel 9:
Controlling concurrency in Rx
Channel 9:
Dev Tools Ecosystem Summit Videos Available
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online