|
'that FreeTextBox control' - what on earth are you talking about ?
I doubt very much that there would be a textbox control that displays HTML as HTML, but, gosh, if I had such a control and was wondering, I'd look for it in the docs and pass it some HTML to see what happened.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
shouldn't you ask this in their forum?[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hello All,
I have got a web design template in .HTML format. I want to parse the html file and convert that into .Aspx format programatically and then add to my ASP.Net project and start coding that.
for e.g. if i have tag in my html page, i want this to be converted as an asp.net control programatically
<asp:textbox id="TextBox1" runat="server" xmlns:asp="#unknown">
I want for all the html controls to be converted into asp.net controls.
Is there any tool available for this.
Thanx in Advance
|
|
|
|
|
No, there is not.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Is there any other way to do it, if tool is not available?
Give me some sample example.
Thanks in advance
|
|
|
|
|
Imran. Mohammed wrote: Is there any other way to do it
Yes, it's called typing. As someone else said, you could use regex, or even just plain old search and replace in the IDE. If you don't know how to do these things, I'm left wondering what you hope to do with this page after you convert it to ASP.NET.
You can actually just specify runat="server" and an id, and use the input tags, etc, as server controls, although using full ASP.NET controls is probably better, if all you need to do is access their values, that will work.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I know copy & paste thing and add runat="server" attribute.
Apart from usual things, Can we change html controls to asp.net controls programatically.
If you know, please provide me some code.
Thanks
|
|
|
|
|
REGEX is a regular expression tool that can perform string substitutions, which is basically what you are looking for. It might take a couple of passes through an HTML document in order to get the conversion done, but it should help.
|
|
|
|
|
Can you provide me some sort of example?
|
|
|
|
|
|
Welcome to CodeProject
These forums are actually designed for developers to ask questions. There is even an instructional post that always stays on the top of the forum, I guess you missed it, titled "How to get an answer to your question".
You might find that Twitter is more appropriate for telling people your frustrations and other things that no one in their right mind would give a frack about.
|
|
|
|
|
First off maybe you should read the "How to get answers" it looks like I followed the guidelines. 2nd I'm sorry your life is so horrible that you feel you must try and make those who have any communication with you unbarrible. 3rd. Well I dont have a 3rd other than Wow... you are one big a**hole.
|
|
|
|
|
|
frack off icehole... are you like 10?
|
|
|
|
|
Richard Leighton wrote: are you like 10?
"like 10"? What are you a valley girl? In case you didn't know, I really mean it, f*** off a**hole
|
|
|
|
|
Hi Friends,
I am using IIS Server with ASP, my mail code doesn't work whenever i send a mail it will go only Queue's folder it will not deliver.., but this code work well in my friend PC.
my OS Windows XP
Here My code
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="dmanivelan@siminfosystems.com"
myMail.To="dmanivelan@siminfosystems.com"
myMail.Bcc="dmanivelan@siminfosystems.com"
myMail.Cc="dmanivelan@siminfosystems.com"
myMail.TextBody="Testing." & Time
myMail.Send
set myMail=nothing
%>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
Please Reply immediately...
|
|
|
|
|
Member 4482742 wrote: Please Reply immediately
was that immediate enough for you?
|
|
|
|
|
led mike wrote: Member 4482742 wrote:
Please Reply immediately
was that immediate enough for you?
he meant "send message immediately". he was talking to his smtp server
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
I am developing an application , it has to send an email to a admin notifying the new user registration, so that admin can approve it. The email is sent when ever a new user registers into the system.
Everything is running fine , in my computer. It is sending an email , everything works fine.
but when I move the code to the testing server, its give the following error .
Server Error in '/' Application.
--------------------------------------------------------------------------------
No connection could be made because the target machine actively refused it
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
Source Error:
Line 222: }
Line 223: catch (Exception ex)
Line 224: { throw ex; }
Line 225:
Line 226:
Source File: c:\Inetpub\wwwroot\CIVARS\CIVAR\NewUserRegistration.aspx.cs Line: 224
Stack Trace:
[SocketException (0x274d): No connection could be made because the target machine actively refused it]
System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +1002146
System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +33
System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +431
[WebException: Unable to connect to the remote server]
System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) +1447736
System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) +190
System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) +21
System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) +318
System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) +227
System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) +316
System.Net.Mail.SmtpClient.GetConnection() +42
System.Net.Mail.SmtpClient.Send(MailMessage message) +1485
[SmtpException: Failure sending mail.]
NewUserRegistration.btnSubmit_Click(Object sender, EventArgs e) in c:\Inetpub\wwwroot\CIVARS\CIVAR\NewUserRegistration.aspx.cs:224
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Please help me out...
Thanks
|
|
|
|
|
check your setting? How are you sending the email? Does the test machine has permission to connect to your smtp server? or does it have smtp configured locally?
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi,
I have a Fileupload control, from where i am uploading CSV file and reading data from it and displaying in a gridview. If data is incorrect i am editting in GrdiView and click on Finish button. On click of finish button i am writing updated value back to CSV file from Gridview. This functionality i have implemented, but after hosting this application in IIS, when i access it in same system its rewriting to CSV file and renaming the file also. But if i browse hosted application in some other system and if i upload a file which is on browser system, its not renaming a file and not updating it.
So please can any one help me what are the permissions i need to set in IIS or to file i am access, so that i can rename and update that file.
I have checked following possiblities already
1. create ASPNET account and grant full permission for read, write....
2. In IIS gave Anonymous access to user.
3. Checked with Impersonate option in web.config file.
4. Gave permissions to CSV file like read, write ....
Code
-----
writing to CSV File
-------------------
StreamWriter sw = new StreamWriter(localsavedFilePath)
foreach (DataRow row in dtCSV.Rows)
{
sw.Write("\"" + row[0].ToString() + "\"");
sw.Write(sw.NewLine);
}sw.Close();
File.Copy(localsavedFilePath, OriginalFileUploadedPath, true);
Renaming File
--------------
File.Move(OriginalFileUploadedPath, OriginalFileRenamedPath);
Rashmi.M.K
|
|
|
|
|
Check the identity that runs the application pool process. Give that account full control to the directory where you are writing the file.
Also, here is a tip.
Instead of using a StreamWriter, use a StringBuilder to build your .csv then use System.IO.File.WriteAllText.
I didn't get any requirements for the signature
|
|
|
|
|
Hi,
Thanks for the reply...
I tried what ever you have suggested, still renaming issue exist. i used string builder to build CSV file and used File.WriteAllText. It works fine only when i run application using Visual Studio and on which ever system i host the application. Except these two systems on all other system its not working.
Please help me.... We need to deliver the project but due to renaming issue stuck up...
Rashmi.M.K
|
|
|
|
|
What exception are you getting?
I didn't get any requirements for the signature
|
|
|
|
|
I wont get any exception. When i click on Finish button in my screen, i am interacting with DataBase and at last saving the CSV file and changing the name of the file. It wont throw any exception as its working fine in local system using VS2008 application and also when i host the application in my system itself. But if any one browse same application on different system, all Database activities are working fine and even all the code written for renaming CSV file will get executed but it wont rename the file.
Rashmi.M.K
|
|
|
|
|