|
setting innerHTML means you are changing the content totally. If you are pasting the html, any data that is only present in DOM (as user Input) will not be available to HTML.
|
|
|
|
|
No thats not the problem. I have statically created the input boxes in my html file. But then when i do that javascript it just cleares the text in the input boxes. They are not related in anyway.
Strive to be humble enough to take advice, and confident enough to do something about it.
|
|
|
|
|
I presume you're talking javascript. you want something along the lines of:
for inputs:
myinput.value = myinput.value + "<p>meep</p>";
for textareas:
mytextarea.innerHTML() = mytextarea.innerHTML()+ "<p>meep</p>";
|
|
|
|
|
hello to all i am nauman khattak from islamabad pakistan student of MCS at FUUAST islamabad I am in search of friend who can help me and can share me knowldge of asp.net as i am nowadays working on asp.net
thans email me at naumankhattak@gmail.com or call me at 00923459797646
|
|
|
|
|
nauman khattak wrote: hello to all i am nauman khattak from islamabad pakistan student of MCS at FUUAST islamabad I am in search of friend who can help me and can share me knowldge of asp.net as i am nowadays working on asp.net
thans email me at naumankhattak@gmail.com or call me at 00923459797646
Hi nauman. Putting your email and phone on the web will get you more spam than friends.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
any one know how handle this error in web.config
Error Message: Only one <configSections> element allowed per config file and if present must be the first child of the root <configuration> element.
Warning 2
The 'requirePermission' attribute is not declared.
|
|
|
|
|
Please do not cross post.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
actually i look in ur blog but i not see anything about the problem i have so kindly any one know how fix that
|
|
|
|
|
I really don't know what to say. I hate to be rude, but I can't think of a non rude response. If you can't understand an error message in plain english, try to configure VSS to give you errors in a language you understand.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
i already understand the message and am new developer i just finish my courses and this is my first project so sure will face some problems like this since am new and when i ask i ask people have experience to help others so i already understand the message but i not know how can handle this xml code so i already put the web.config code if u have any idea about how fix this error i have will be thanks and if not also thanks and in the end its only respect between human what ever the experience they have. thanks
|
|
|
|
|
You are not allowed to create 2 configSections in the Web.config file.
Check if there is more than one <configsections> present in your web.config file.
|
|
|
|
|
configuration>
<!--start connection string-->
<appSettings/>
<connectionStrings>
<add name="CS" connectionString="data source=.; initial catalog=sqldata; integrated security=true"/>
</connectionStrings>
<!--end connection string-->
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
Error Message: Only one <configSections> element allowed per config file and if present must be the first child of the root <configuration> element.
Warning 2
The 'requirePermission' attribute is not declared.
|
|
|
|
|
Please do not crosspost
Jon
'When once a republic is corrupted, there is no possibility of remedying any of the growing evils but by removing the corruption and restoring its lost principles; every other correction is either useless or a new evil.' ~ Montesquieu
Soap Box 1.0: the first, the original, reborn troll-less
|
|
|
|
|
I don't know much about web configs but let us try to deconstruct this message:
Only one <configSections> element allowed per config file
I see you only have one <configsections> element : Good
and if present must be the first child of the root <configuration>: element.
The first child of the root <configuration> element is <appSettings/> : Bad
I think you will have to take it from here...
|
|
|
|
|
i already understand this and i already made this and remove <appsettings> but it give more errors and i even try put inside the <configuration> but also same make a lot errors specially as u see this is the connection string so i not know how handle this with this error
|
|
|
|
|
I do not know how to make Visual Stuido 2008 to validate the style page in accordance with css3 standarts. It checks according to css2.1 standarts and give error. So stuff lie opacity is given as error in the VS.
How could I change it to css3 validator. Thank you.
All the best.
|
|
|
|
|
|
|
|
I dont know why this statement is giving me error . I have written this in a Javascript file that is attached to my project. I am trying to declare a variable containing todays date. Can Anyone help please?
|
|
|
|
|
are you certain this line has the error ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Absolutely, I am using Visual studio 2008.
I tried following code in studio 2005 now but i am getting same error. Not sure why it is occuring? Really strange.. Is there any other way to get todays date in some variable?
function Test() {
var today = new Date();
alert(today);
}
<asp:Button ID="Button1" runat="server" OnClientClick="Test();" Text="Button" /><br />
|
|
|
|
|
I used the below code and it worked fine for me
<script type="text/javascript">
var today = new Date();
alert(today);
</script>
|
|
|
|
|
It should work because it is a correct code.
But what can be the reason for it to be failing?
Everytime i try to declare any Date variable it gives me : Microsoft JScript runtime error: Object expected
I have tried to reboot my pc still it doesnt work.. Is my Jscript engine corrupted or something?
|
|
|
|
|
I think your browser got whacked somehow. Reinstalling the browser will help you.
Date is a prototype should be declared within the library of browser.
It is working for all of us. Sorry cant help you.
|
|
|
|