community-server

Eval inside an ASP.net repeater doesn't work inside another control

半世苍凉 提交于 2020-01-06 08:13:41
问题 I have a Reapter control with a custom server side control inside of it. When I place the code: <%# Eval("DateAdded") %> inside the item template of the repeater it works fine, but when I place it inside the custom server control inside the repeater, it doesn't work. Is it possible to do something like Parent.Eval() or Container.Eval() to get back to the context of the Reapeter rather than the custom control? 回答1: The repeater is databound, the control that you are placing this eval statement

How to stop UpdatePanel from causing whole page postback?

我的未来我决定 提交于 2019-12-17 18:39:59
问题 I am using .NET 3.5 and building pages inside of the Community Server 2008 framework. On one of the pages, I am trying to get an UpdatePanel working. I took a sample straight from ASP.NET website, update a time in an UpdatePanel to current time by clicking a button, but for some reason when I try and perform the function the whole page refreshes. Here is what I have: protected void Button1_Click(object sender, EventArgs e) { Label1.Text = "Panel refreshed at " + DateTime.Now.ToString();

Cannot connect to mysql server with MAMP nor with Community Server

六月ゝ 毕业季﹏ 提交于 2019-12-11 10:16:50
问题 I created a database with MySQL Workbench, and now I need to access it. So I've written a php script to access it: <? $db = mysql_connect("127.0.0.1:3306","root", ""); if (!$db){ echo "Could not connect to database"; exit(); } $db_name = "pfc_db"; if (!mysql_select_db($db_name, $db)){ die ("Could not select database"); } $sql=mysql_query("select * from CAPAS"); while($row=mysql_fetch_assoc($sql)){ $output[]=$row; if (isset($output)){ echo "yes"; echo $output[0]; } else{echo "no";} } mysql

Community server Username issue - User Username not found in membership store does not exist

与世无争的帅哥 提交于 2019-12-11 08:48:03
问题 I have an error occuring frequently from our community server installation whenever the googlesitemap.ashx is traversed on a specific sectionID. I suspect that a username has been amended but the posts havn't recached to reflect this. Is there a way a can check the data integruity by performing a select statement on the database, alternatively is there a way to force the database to recache? 回答1: This error could be thrown by community server if it finds users that aren't in the instance of