English 中文(简体)
我能否放弃这一点,或者说它太粗劣,不切实际?
原标题:Can I get away with this or is it just too crude and unpractical?

我在昨天晚上整整整段搜索了自由的AspNet网网站聊天控制,我可以把这种控制拖到我的网站上。 搜查完全徒劳,因为我无法找到符合我需要的控制权,即: 用户名单,1至1 聊天,不易点燃用户。

最后,我决定自封地建立自我控制。 尽管它在我的机器上运作良好,但它担心,在共用住宿场所方面可能没有什么粗略和不切实际的。

基本上,这是我所做的:

  1. Created an sql database that stores the chat messages.
  2. Wrote the stored procedures and and included a statement that clears old messages

然后是粗略部分:

  1. Dragged an update panel and timer control on my page
  2. Dragged a Repeater databound to the chat messages table inside the update panel
  3. Dragged another update panel and inside it put a textbox and a button
  4. Configured the timer control to tick every 5 seconds.

..and then I made it all work like this In the timer tick event I refreshed the messages display by invoking Databind() on my repeater i.e

 protected void Timer1_Tick(object sender, EventArgs e)
    {
       MyRepeater.DataBind();
    }

然后,我发来的纽顿点击事件

 protected void btnSend_Click(object sender, EventArgs e)
    {

       MyDataLayer.InsertMessage(Message, Sender, CurrTime);

    } 

水井 该系统在我的机器上运行良好,Ive利用其他功能(用户名单,列出用户)。

但与我一样,这似乎对我很粗略。 因此,我需要一种推论。 我是否应该这样做或尝试另一种做法?

最佳回答

我不敢肯定你为什么认为是粗略的——我会期望其他所有伙伴关系。 NET 聊天控制将利用客户对口投票进行完全相同的方式发展。 然而,作为使用更新小组的一种替代办法,我建议使用JQuery(或其他一些Javascript framework)——ASP.NET,来撰写客户-AJAX功能。 更新小组实际上只是一个标准的伙伴关系。 该网络使用 render子进行后退,因此必须更新屏幕。

如果你走到你已经走得很远的地方,我将继续走下去。 即便你决定用其他办法取代聊天客户,这仍将是一次关于其要求的重要学习。

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签