网页上的默认Webparts [英] Default Webparts on webpage

查看:89
本文介绍了网页上的默认Webparts的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们有一个网站,可以在该网站上添加Web部件,例如标题栏,页脚,左侧导航和内容等.通过在登录后将它们拖到页面上,即可.
但是客户要求是首次登录后在页面布局上具有一些默认的Webpart,而不要查看空白页面.

我了解aspnet_PersonalizationAllUsers和aspnet_PersonalizationPerUser存储WebParts中的信息abt

您能帮助我理解通过吹嘘到网页来确切地存储所添加的Webparts信息的位置以及存储方式.我们能否以编程方式自动将Web部件添加到页面并保存它们?

问候,
Uma.A

Hi,

We have a website, to which we can add webparts like title bar, footer, left navigation and content etc....by dragging them to the page after the login.
But the customer requirement is to have some default webparts on the page layout after login for the first time instead of looking at a blank page .

I understand the aspnet_PersonalizationAllUsers and aspnet_PersonalizationPerUser stores the info abt the webparts

Can you please help me in understanding where exactly and how the added webparts info by bragging to webpage will be stored. And can we automaticaly add the webparts to the page programatically and save them?

Regards,
Uma.A

推荐答案

Hi Tapan,

Thanks for replying .

we are not using the share point.

But, now i undertsand that,the saved webparts to a page will be stored in the table''s aspnet_Applications,aspnet_Paths,aspnet_PersonalizationAllUsers & .aspnet_PersonalizationPerUsers.

And it uses aspnet_PersonalizationAllUsers_SetPageSettings for storing the webparts information for an application.which takes applicationname,path,pagesettings and currentdatetime as inputs and set the pagesettings to the page(adds the defaults webparts we want to add).

Now, i want to run this storedparocedure to add some default webparts to my homepage through c# .net.
But,for Pagesettings, which is a ''image'' datacolumn in SQL,i need to send pagesettings data as byte[] through C# .net

but the pagesetting value(which i got from aspnet_PersonalizationAllUsers_GetPageSettings) is like below.How can i convert it to byte[] and pass to the storedprocedure ''aspnet_PersonalizationAllUsers_SetPageSettings'' thorugh C#??

Can you please able to help me to do this?

0xFF01142B000E02020201192A3153797374656D2E5765622E55492E576562436F6E74726F6C732E57656250617274732E576562506172744D616E6167657205055F5F77706D6602021E12576562506172745374617465536861726564142B0010051D777031393633353838333232436F6E666967757261626C655469746C6505095469746C655A6F6E656668051D777031303838383434303335566572746963616C4C696E6B734C697374050B4C6566744E61765A6F6E6566680518777035313734393230343047656E6572616C536561726368050B436F6E74656E745A6F6E65666805117770333935363834393937466F6F746572050A466F6F7465725A6F6E65666867681E1544796E616D69635765625061727473536861726564142B0010051D777031393633353838333232436F6E666967757261626C655469746C650537494349536F6C7574696F6E732E4B77696B576F726B4250462E5765622E57656250617274732E436F6E666967757261626C655469746C656464051D777031303838383434303335566572746963616C4C696E6B734C6973740537494349536F6C7574696F6E732E4B77696B576F726B4250462E5765622E57656250617274732E566572746963616C4C696E6B734C69737464640518777035313734393230343047656E6572616C5365617263680533494349536F6C7574696F6E732E4B77696B576F726B4250462E5765622E57656250617274732E47656E6572616C536561726368646405117770333935363834393937466F6F746572052C494349536F6C7574696F6E732E4B77696B576F726B4250462E5765622E57656250617274732E466F6F74657264646768

Regards,
Uma.A



您是在使用共享点还是其他方式,请告诉我,以便我为您提供帮助

谢谢
Tapan kumar
Hi,
Are you using sharepoint or something else, please tell, so that I can help you out

Thanks
Tapan kumar


这篇关于网页上的默认Webparts的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆