|
i am using -->
]]>
]]>
]]>
<title>WebForm1
<uc1:hamhtmleditor id="HamHtmlEditor1" runat="server">
<asp:button id="Button1" runat="server" onclick="Button1_Click" text="Button" validationgroup="1">
c# coding:
protected void Button1_Click(object sender, EventArgs e)
{
string ss = ((hamHtmlEditor)this.FindControl("HamHtmlEditor1")).ContentInnerHtml;
con.Open();
SqlCommand cmd = new SqlCommand("insert into mail values('" + ss.ToString() + "')", con);
cmd.ExecuteNonQuery();
con.Close();
Response.Redirect("mailfinal.aspx");
}
i am using text editor .if i give the string it is accept.but i give
czvcvcv
it not accept it display the error----->
A potentially dangerous Request.Form value was detected from the client (HamHtmlEditor1:ContentHtml="dfdfdf
so how to slove the problem.if you replay it will help to me...thank you
|
|
|
|
|
add ValidateRequest="False" in page directive. Hope will solve your problem.
good luck !!!!
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
thank you..it work fine in local system..but i host website to my project i didn't get the text.the empty space store to the database in the server...
so help me...thank you..
|
|
|
|
|
Which Editor Control R u using ? is it any third part control or you developed that ?
Which browser are you using ? does that control support your bowser?
Please check !~!!!
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
sorry i donot know about control.i just download the project----->
http://authors.aspalliance.com/HabdulMalak/1156.zip
i donot know it is correct or wrong.please check and tell...
i have the browsermozilla firefox..
so replay to me....
|
|
|
|
|
|
hai,
it is going to same url and same 1156.zip file.so replay to me..
how to vote to you?
thank you..
|
|
|
|
|
i dont think so, please check correctly, i am providing you the same information form the same site itself.
Thanks
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
hai,
how to save edit text in database? do you know.
|
|
|
|
|
better try to use some open source editor that you can change as your own.
There are some Editor also available at codeproject itself. try to use them
Good luck !!!
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
thank you i try my best..........
|
|
|
|
|
i want create a RequiredFieldValidator in my form in c#.net programatically . but i dont know where should i write thats code. i write this below codes but where should i put them?
protected RequiredFieldValidator validator;
validator.ControlToValidate = "TextBox1";
validator.ErrorMessage = "*";
validator.EnableViewState = true;
validator.EnableClientScript = true;
validator.Display = ValidatorDisplay.Dynamic;
validator.EnableTheming = true;
validator.Enabled = true;
validator.ID = "validator1";
Page.Form.Attributes.Add("validator1", "validator");
|
|
|
|
|
add it in page_Load()
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
add it in page_Init() or do like this:
<br />
<asp:requiredfieldvalidator runat="Server" id="rfvValidator1" controltovalidate="TextBox1" errormessage="*" text="*" display="Dynamic" validationgroup="VG1"></asp:requiredfieldvalidator><br />
Add this tag near the TextBox1 and set ValidationGroup for TextBox1
|
|
|
|
|
Hi
i have been developing windows application using vc++ for so 2 years suddenly company is taking web related project and just venturing into asp.net 2.0 . i just dont like it. i dont click due to lack of interest . I dind c++, vc++, c# windows applications more appealing. i wonder how I can generate interest in it. or should I change the job.
happy weekend
lee
Leya
|
|
|
|
|
I think you should try to become familiar with ASP.NET technology because it is cool technology...
I Love T-SQL
Don't torture yourself,let the life to do it for you.
|
|
|
|
|
right said...
using C# with ASP.net makes it more productive and real coool..
Ashish Sehajpal
|
|
|
|
|
It really worth for (he/she) learning ASP.NET technology...
I Love T-SQL
Don't torture yourself,let the life to do it for you.
|
|
|
|
|
yang__lee wrote: i just dont like it.
why ?
yang__lee wrote: i dont click due to lack of interest
First try to learn it, then you will be fan of asp.net .
yang__lee wrote: I dind c++, vc++, c# windows applications more appealing
you know C#, then you can easily learn asp.net with C#.
yang__lee wrote: i wonder how I can generate interest in it
just try to learn it.
yang__lee wrote: should I change the job.
thats depends on you. if you want to be a windows application developer then you should . or if you want to be a web developer also, then just try to learn it.
Good luck !!!!
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
Hi all,
how to disable previous dates in Ajax Calendar control?
i am unable to find the events in AjaxCalendar control.
please help me.
Murali
|
|
|
|
|
I'm not sure there's a property for you to use. This means you'll probably need to grab the AJAX toolkit and edit the JavaScript for the calendar control yourself.
|
|
|
|
|
Hi,
I want to open only one PDF file using singleton pattern.I have written a code as follows on button click event:-
FileInfo objFile;
string strFileName;
strFileName = "User Manual - Quality Feedback System.pdf";
objFile = new FileInfo(Server.MapPath(ConfigurationSettings.AppSettings["App_Name"]) + "\\" + strFileName);
Response.Clear();
Response.ContentType = "application/octet-stream";
Response.AppendHeader("Content-Disposition", "attachment; filename=" + objFile.Name);
Response.Flush();
Response.WriteFile(objFile.FullName);
Response.End();
The problem with the above code is that it opens more than one PDF file if button is clicked more than once.How can I make sure that one PDF file gets opened using Singleton design pattern.I am clear with the concept of singleton pattern but I am not able to implement this concept in my problem.Please help.
|
|
|
|
|
are you loading the pdf file where the button exists?
Regards,
Sylvester G
If we don't succeed, we run the risk of failure
|
|
|
|
|
Pranav Thakur wrote: The problem with the above code is that it opens more than one PDF file if button is clicked more than once.How can I make sure that one PDF file gets opened
Disable the button so that it can't be clicked again?
Pranav Thakur wrote: I am clear with the concept of singleton pattern
That seems unlikely given your post.
led mike
|
|
|
|
|
If you would apply the singleton pattern to this, it would mean that only one user could open the PDF file. Then you would have to restart the web application before another user could look at it...
I assume that what you really want to do, is to limit the usage per user, not per application. The problem is that the method that you use to open the file effectively prevents any attempt to check if the file is already open or not. The server code has no means at all of checking this, and you would have to open a window using client side code to have a chance to determine if there is already a window open or not. Even then, it depends on how the file is opened by the browser. If it's not opened in a browser window, but in a separate application (i.e. Adobe Reader), you can't determine if the file is still open or not. I'm not certain that it's ossible even if it's opened in a browser window.
So, what you want to do falls somewhere between "maybe working sometimes" and "impossible". Either way it's definitely not possible to implement the way that you suggest.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|