I copy from the article website with photos or videos to the word file, then I post the article using CKeditor when I copy, why doesn't the CKeditor display the images or videos ? You see the attached image file [File sharing and storage made simple](http://www.mediafire.com/view/1474bnmta4epfg5/website2010\_12a.jpg/file) I saved the post and saw the post but it didn't show the picture or the video, I had to click to view the photo or the video, you can see the attached image [File sharing and storage made simple](http://www.mediafire.com/view/74q32shmfxs9mqo/website2010\_12b.jpg/file) Here is an example of the word file I posted [Tired Of Neck Pain](http://www.mediafire.com/file/z8dcyhzclt2qheg/Tired\_Of\_Neck\_Pain.doc/file)
User 2456424
Posts
-
I use CKeditor to post articles, but why can't I display images ? -
How to use FCKeditorV2 instead of FreeTextBox ?123/5000 In this place I have replaced FCKeditorV2 for FreeTextBox but when running it does not appear the editor, do you know why ? you see attach file [http://www.mediafire.com/file/lvc6m3pupnd4430/website2010\_10d.jpg\](http://www.mediafire.com/file/lvc6m3pupnd4430/website2010\_10d.jpg)
-
Why can't I login to the web even though the User and password are correct ?You can log in, but in the code you've posted, you're not assigning any roles to the user. Any calls to User.IsInRole will therefore return false. ASP.NET 3.5 - Roles | Microsoft Docs[^] I don't understand you saying "Any calls to User.IsInRole will therefore return false." Can you tell me where this is ? How do I edit the code? I debug in the button_click event code, I see
protected void btLogon_Click(object sender, EventArgs e)
{
if (Membership.ValidateUser(txtEmail.Text, txtPassword.Text))
{
try
{
if (Request.QueryString["ReturnUrl"] != null)
{
FormsAuthentication.RedirectFromLoginPage(txtEmail.Text, false);
}
else
{
FormsAuthentication.SetAuthCookie(txtEmail.Text, false);
Session["username"] = txtEmail.Text.Trim();
Response.Redirect(Globals.ApplicationPath + "Logon_Redirect.aspx");//You see the message output in the attached image, I choose yes
}
}
catch (Exception ex)
{
Debug.Print("Error login sql: " + ex);
}
}
else
{
try
{
// kiem tra xem co UserName hay ko
if (txtEmail.Text==ConfigurationManager.AppSettings["EmailWebmaster"].ToString() && txtPassword.Text == ConfigurationManager.AppSettings["Password"].ToString())
{
FormsAuthentication.SetAuthCookie(txtEmail.Text, false);
Session["username"] = txtEmail.Text.Trim();
Response.Redirect(Globals.ApplicationPath + "Logon_Redirect.aspx");//You see the message output in the attached image, I choose yes
}
else
lblMsg.Text = ResourceManager.GetString("Logon_False");} catch (Exception ex) { Debug.Print("Error Web.config: " + ex); } } }
I am debugging both the user/pass sql server and user/pass cases in the Web.config file when I came to the code "Response.Redirect (Globals.ApplicationPath +" Logon_Redirect.aspx ");" In both cases, a notification is sent to view the http://www.me
-
How to use FCKeditorV2 instead of FreeTextBox ?I did my own research, tinkering and programming, according to you in addition to FCKeditor and CKeditor, currently the programming tool supports better than CKeditor what tool do you use ?
-
How to use FCKeditorV2 instead of FreeTextBox ?I want to use FCKeditorV2 (Figure 2) http://www.mediafire.com/view/pdmvi0aezyqpil5/website2010\_10b.jpg/file instead of FreeTextBox (Figure 1) http://www.mediafire.com/view/oahtm7k3883elow/website2010\_10a.jpg/file The code I have edited
In file ArticleAddEdit.aspx
line 5:
original
<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>edit
<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>line 79:
original:edit:
But when I change the code the following error message: http://www.mediafire.com/view/zpze8g7k7o3wm4a/website2010\_10c.jpg/file Line 40: txtTitle.Text = obj.Title; Line 41: txtExcerpt.Text = obj.Excerpt; Line 42: txtBody.Text = obj.Body; Line 43: if (obj.Priority == 1) Line 44: chkPriority.Checked = true; For the original code
In file In file ArticleAddEdit.aspx
<%@ Page ValidateRequest="false" Language="C#" Theme="WebMaster" MasterPageFile="~/WebMaster/MasterPage.master" AutoEventWireup="true" CodeFile="ArticleAddEdit.aspx.cs" Inherits="webapp4U.UI.ArticleAddEdit" %>
<%@ Register Src="~/WebMaster/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register TagPrefix="webapp4U" Namespace="webapp4U.UI" %>
<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %> -
Why can't I login to the web even though the User and password are correct ?If so, why can I login the sql server's user/password ?
protected void btLogon_Click(object sender, EventArgs e)
{
if (Membership.ValidateUser(txtEmail.Text, txtPassword.Text)) //web.config
{
...
}
else //sql
{
...
}
} -
Why can't I login to the web even though the User and password are correct ?I login the user/pass of the normal sql server but I cannot login the user/pass of file web.config, you can not view the image file I can login [http://www.mediafire.com/file/wydeh0jm629lchm/website2010\_09.jpg\](http://www.mediafire.com/file/wydeh0jm629lchm/website2010\_09.jpg)
-
Why can't I login to the web even though the User and password are correct ?I am writing a small example of Login webSite, there are two types of accounts and passwords, one is an account and password is stored in the Web.config file and the other two accounts and passwords are saved in SQL Server database, My problem is that in form 1, when logging in it opens Logon_Redirect.aspx file but cannot access, the following is my code I am debugging and running to the code where this opens the Logon_Redirect.aspx file but nothing, but when I log in with another account and password (the user password of SQL Server) log in well.
In file Web.config
......
In file Logon_Redirect.aspx
...Untitled Page
In file Logon_Redirect.aspx.cs
...
public partial class Logon_Redirect : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
// kiem tra va Redirect toi trang can thiet
if (Page.User.IsInRole(Globals.Settings.AppRoles.KhachHang))
Response.Redirect(Globals.ApplicationPath);
else if (Page.User.IsInRole(Globals.Settings.AppRoles.Admin))
Response.Redirect(Globals.ApplicationPath + "WebMaster/Contacts/Contact.aspx");
}
}In file Logon.aspx.cs
protected void btLogon_Click(object sender, EventArgs e)
{
//I can't Login User/Pass in file Web.config, check User: admin and Pass: 123
if (Membership.ValidateUser(txtEmail.Text, txtPassword.Text))
{
if (Request.QueryString["ReturnUrl"] != null)
{
FormsAuthentication.RedirectFromLoginPage(txtEmail.Text, false);
}
else
{
FormsAuthentication.SetAuthCookie(txtEmail.Text, false);
Session["username"] = txtEmail.Text.Trim();
Response.Redirect(Globals.ApplicationPath + "Logon_Redirect.aspx");
//I am debugging and running to the code here and opens the Logon_Redirect.aspx file but nothing
}
}
else //Login SQL Server very good
{
// check User/pass other on SQL Server
if (webapp4U.BOL.User.CheckUserName(txtEmail.Text) && txtPassword.Text == ConfigurationManager.AppSettings["Password"].ToString())
{
FormsAut -
Name of the software that can package websites to install on smartphones: android and iphone ?Because I see several smartphone applications that can access SQL Server data, I don't know what programming language they use to do this.
-
Name of the software that can package websites to install on smartphones: android and iphone ?Suppose I have a website written in asp.net and the database is SQL Server, after I "Publish the web site" and I want to encode this code for smartphones (both android and Android operating systems) iphone) what software do I use? Note that I only packaged the code in "Publish web site" and the SQL Server data I still kept on the server (not packing the SQL Server data)
-
Error: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl)I have fixed it, thank you for reading my post.
-
Error: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl)The website is working fine now I added MenuLeft.ascx into the folder "C:\WebSite2010\WebMaster\Controls\" when pressing the Rebuild website button with the error "Error: C:\WebSite2010\WebMaster\Controls\MenuTop.ascx.cs(14): error ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl)". Note that the folder "C:\WebSite2010\Controls\" already has a file with the same file name: MenuLeft.ascx now I copy the declaration of 2 files with the same name, how do I change the code ?
in the file: C:\WebSite2010\Controls\MenuLeft.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MenuLeft.ascx.cs" Inherits="MenuLeft" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register Src="~/Controls/ThuvienHinhAnh.ascx" TagPrefix="uc" TagName="ThuvienHinhAnh" %>
<%@ Register Src="~/Controls/QuangCaoLeft.ascx" TagPrefix="uc" TagName="QuangCaoLeft" %>
<%@ Register Src="~/Controls/WebURL.ascx" TagPrefix="uc" TagName="WebURL" %>
<%@ Register Src="~/Controls/Newsletter.ascx" TagPrefix="uc" TagName="Newsletter" %>
<%@ Register src="DanhMucBDS.ascx" tagname="DanhMucBDS" tagprefix="uc" %>
<%@ Register TagPrefix="webapp4U" Namespace="webapp4U.UI" %>...
in the file: C:\WebSite2010\WebMaster\Controls\MenuLeft.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MenuLeft.ascx.cs" Inherits="MenuLeft" %>
<%@ Import Namespace="webapp4U" %>...
-
Differences of 3 libraries in voice programming ?I have found out. SpeechLib is interop com version of Microsoft Speech The short answer is that Microsoft.Speech.Recognition uses the Server version of SAPI, while System.Speech.Recognition uses the Desktop version of SAPI. The APIs are mostly the same, but the underlying engines are different. Typically, the Server engine is designed to accept telephone-quality audio for command & control applications; the Desktop engine is designed to accept higher-quality audio for both command & control and dictation applications.You can use System.Speech.Recognition on a server OS, but it's not designed to scale nearly as well as Microsoft.Speech.Recognition.The differences are that the Server engine won't need training, and will work with lower-quality audio, but will have a lower recognition quality than the Desktop engine
-
add code text to speech voices windows 7 ?Hi Pete O'Hanlon! I don't think the 2 pages I resend charge for one microsoft page, the other one of Azure, thank you for answering my questions. In case other countries do not support voice pronunciation like Vietnam, those countries often use which programming language ? Is there any library for C# programming support ?
-
Differences of 3 libraries in voice programming ?I found a speech pronunciation example that uses these libraries, I haven't found the source materials and the documentation for them, if someone who has programmed on this issue will answer it quickly, every time I don't know, thanks to you answers, I would say google search so what was the forum set up for ?
-
Differences of 3 libraries in voice programming ?I searched online for 3 speech pronunciation libraries: "System.Speech.dll, Microsoft.Speech.dll and Interop.SpeechLib.dll". I want to know their time and origin, in which 3 libraries easy to use to write code ? Which library supports many countries' voices ? Which library is the most popular with programmers ? In the future, which 3 of the libraries will drop out ? et... ?
-
Is the command to check if the bell is running or stopped ?Thank you for answering my questions.
-
add code text to speech voices windows 7 ?The link you sent me is a pronunciation program but there is no C# code and I can't find the *.dll pronunciation library, the program is written in C language, I am looking for C# code to read Vietnamese, microsoft now supports Vietnamese you see my links below
// Create an in-process speech recognizer for the en-US locale.
using ( SpeechRecognitionEngine recognizer = new SpeechRecognitionEngine( new System.Globalization.CultureInfo("vi-VN")))//You must set up Vietnamese pronunciation codes or pronunciation codes for other languages you need
{
...
}[SpeechRecognitionEngine Class (System.Speech.Recognition) | Microsoft Docs](https://docs.microsoft.com/en-us/dotnet/api/system.speech.recognition.speechrecognitionengine?redirectedfrom=MSDN&view=netframework-4.8) [Language support - Speech Service - Azure Cognitive Services | Microsoft Docs](https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/language-support) by default, the program only English pronunciation does not support other languages.
-
add code text to speech voices windows 7 ?I run the code below only the code "en-US, en-GB" I want to add the code "vi-VN" in win7, what should I do ?
foreach (RecognizerInfo ri in SpeechRecognitionEngine.InstalledRecognizers())
{
System.Diagnostics.Debug.WriteLine(ri.Culture.Name);
} -
Is the command to check if the bell is running or stopped ?Ok, if not using PlaySync instead use mciSendString with status command, will this command play sequentially ?