|
The autoeventwireup , if it is set to false , it will not execute the code written in the page load function , and reverse is true.
My question is , how should i implement this case in the project and in which situation i should use it?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Pankaj Garg wrote: how should i implement this case in the projec
you have create your own eventhandler and
delegte it to execute function. you have also create some custome property , if its true then you should delegete to that function else not.
Pankaj Garg wrote: which situation i should use it?
if you check "FileSystemWatcher" components in C# windows application, it has raised event like "Create, Delete , Rename and Changed" and according to that it delegate to some function.
Now there is a property EnableRaisingEvents . if you set it to yes then it will raised those events.
hope this clears you !!!
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
hai,
i am doing texteditor concept it return error message in
---->A potentially dangerous Request.Form value was detected from the client (HamHtmlEditor1:ContentHtml="dfdfdfd
i will search the google it return to set -->validateRequest="false"
i set it work fine ,i solve my error ,but i host website in my project. it is not work.the empty page display to me..
if you know the code or answer replay to me....
thank you
|
|
|
|
|
your problem is not clear . can you please inform it in details ?
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
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.
|
|
|
|