تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
كيف تصنع حاوية لاكواد بواسطة css
#4
[HTML]<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="WebApplication3.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>

<style type="text/css">
.div{
float:left;
width:100%;
height:auto;
background-color:pink;
border:2px solid black
}
</style>
</head>
<body>
<form id="form1" runat="server">

<asp:Literal ID="Literal1" runat="server"
Text=" [q]msgbox(&quot;hi how are you&quotWink[/q]"></asp:Literal>

</form>
</body>
</html>[/HTML]

كود :
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim result As String = Regex.Replace(Literal1.Text, "\[q\](.*?)\[/q\]$", "code:<div dir=ltr class=div>$1</div>")
        Literal1.Text = result
    End Sub


الملفات المرفقة
.rar   WebApplication3.rar (الحجم : 47.55 ك ب / التحميلات : 57)
الرد }}}
تم الشكر بواسطة:


الردود في هذا الموضوع
كيف تصنع حاوية لاكواد بواسطة css - بواسطة tariq2812 - 22-11-12, 06:02 AM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم