[RESOLVED] Website

Is website a Software ?

Hi,

amt007kmr

Is website a Software ?

And what exactly is your question?

Some websites are indeed built on top of existing software like Orchard, Sharepoint, Drupal, ...

Grz, Kris.

I am asking that  website is a software or not  ?

Have you ever heard of GOOGLE??

If yes, why don't you ask the same question to it.

I believe it'll provide you better result.

amt007kmr

I am asking that  website is a software or not  ?

Please read my former reply again carefully.

Grz, Kris.

i didn't get the answer on google that's why i am asking it.

Basically today i am participating in a software competitions .

And some guys present website in that competitions , so i get confused .

WEBSITE is a software.

amt007kmr

And some guys present website in that competitions , so i get confused .

then tell us your confusion. What made you confuse between these two terms?

[RESOLVED] modify HTML output at server control

Hi all members,

I have a big problem with server controls.

Yesterday, when my SEO viewed HTML client source code , "Your html code doesn't optimize with search engine." he said that.

"HTML at client depend on Server controls, server controls automatic create the its HTML code, and I can't reformat code " I said that with my SEO; however,he don't care, he need to have a nice HMTL format at client.

But we both know that server controls can't reformat, unless you create a control by yourself, after that you override page render method. But how can I override all using controls , the while all of them are dll.

Anybody have a solution for my problem?  I'm using OBOUT  control, Dev Express Component V 8.3. 

To  get more information , please see this client code :

<div>

	<input type="hidden" name="__SCROLLPOSITIONX" id="__SCROLLPOSITIONX" value="0" />

	<input type="hidden" name="__SCROLLPOSITIONY" id="__SCROLLPOSITIONY" value="0" />
	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWHQKox4zSDQLnja/JDQKos432DwKs0YieBQLaw7aMAgKp9+HVCgKs0YieBQLaw7aMAgLR0szzBgKvxJaNBwK5hKCtDQLR0szzBgKvxJaNBwLppveACwLjpveACwLF2f/YDgKeieiHDQLu5JPuCgKXpueEAwKeieiHDQLu5JPuCgLc6JaHAwLSi4HADwK8u9CZAgL67rbzCgKR65f6DwL9qdm7CgL67rbzCgKR65f6Dw==" />
</div>
    <script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ctl00$scriptManager', document.getElementById('aspnetForm'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tctl00$webPartManager$wp1324394624GenericWebPart$wp606412926webparts_htmleditor_ascx$upContent','tctl00$webPartManager$wp1407470150$wp325829325$upContent','tctl00$webPartManager$wp584422676$wp1745679436$upContent','tctl00$webPartManager$wp2101030131$wp45885177$upContent'], [], [], 90);
//]]>
</script>

    
    
        
    
    
        <div id="ctl00_PlaceHolderToolBox_webPartToolBox_pnWebPartManager">
He need code like as : 

<div>
  <input type="hidden" name="__SCROLLPOSITIONX" id="__SCROLLPOSITIONX" value="0" />
  <input type="hidden" name="__SCROLLPOSITIONY" id="__SCROLLPOSITIONY" value="0" />
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWHQKox4zSDQLnja/JDQKos432DwKs0YieBQLaw7aMAgKp9+HVCgKs0YieBQLaw7aMAgLR0szzBgKvxJaNBwK5hKCtDQLR0szzBgKvxJaNBwLppveACwLjpveACwLF2f/YDgKeieiHDQLu5JPuCgKXpueEAwKeieiHDQLu5JPuCgLc6JaHAwLSi4HADwK8u9CZAgL67rbzCgKR65f6DwL9qdm7CgL67rbzCgKR65f6Dw==" />
</div>

<script type="text/javascript">
//<![CDATA[ Sys.WebForms.PageRequestManager._initialize('ctl00$scriptManager', document.getElementById('aspnetForm'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tctl00$webPartManager$wp1324394624GenericWebPart$wp606412926webparts_htmleditor_ascx$upContent','tctl00$webPartManager$wp1407470150$wp325829325$upContent',777777'tctl00$webPartManager$wp584422676$wp1745679436$upContent','tctl00$webPartManager$wp2101030131$wp45885177$upContent'], [], [], 90); //]]>
 </script>

<div id="ctl00_PlaceHolderToolBox_webPartToolBox_pnWebPartManager"> </div>



Anyone help me plz :D

Use Control.RenderControl method to extract Html and then try to change it as per your wish...http://msdn.microsoft.com/en-us/library/system.web.ui.control.rendercontrol.aspx 

Thanks,

ramiramilu

Use Control.RenderControl method to extract Html and then try to change it as per your wish...http://msdn.microsoft.com/en-us/library/system.web.ui.control.rendercontrol.aspx 

Thanks,

Thank you so much, I will try and tell you the result.

[RESOLVED] clearing validator control messages

I have a bunch of validator controls on a form, required, custom, regular expression.

sample 

<asp:RequiredFieldValidator ID="otherTrainReq" runat="server" ControlToValidate="otherTrain"
SetFocusOnError="true" ErrorMessage="any training is required" CssClass="errorMsg"
Display="dynamic" /><br />

I have tried to clear them with a reset (<input type="reset" onclick="clearVals();" value="Reset" runat="server"/>

and both  javascript functions below, neither works, (yes I tried them one at a time) not sure what I missed or how to get working

function clearVals() {
document.forms[0].reset();
for (i = 0; i < Page_Validators.length; i++) {
Page_Validators[i].style.visibility = 'hidden';
}
return false;
}
function clearVals() {
//Hide all validation errors
if (window.Page_Validators)
for (var vI = 0; vI < Page_Validators.length; vI++) {
var vValidator = Page_Validators[vI];
vValidator.isvalid = true;
ValidatorUpdateDisplay(vValidator);
}
//Hide all validaiton summaries
if (typeof (Page_ValidationSummaries) != "undefined") { //hide the validation summaries
for (sums = 0; sums < Page_ValidationSummaries.length; sums++) {
summary = Page_ValidationSummaries[sums];
summary.style.display = "none";
}
}

Hi,

I have just tested few approaches and this seems to be working as expected. First create yourself a function:

function hidePageValidators(e, el)
{
	e.preventDefault();
        el.form.reset();
        for (i = 0; i < Page_Validators.length; i++) {
		Page_Validators[i].style.display = 'none';
	}
}

Now you can attach it to your input like this:

<input type="reset" onclick="hidePageValidators(event, this);" value="Reset" runat="server" />

Let me know if that helps.

http://demos.telerik.com/aspnet-ajax/menu/examples/programming/addremovedisableitems/defaultcs.aspx

http://bytes.com/topic/html-css/answers/99854-how-disable-tool-bar-menu-bar-status-bar

thank u

thanks for all the replies, turns out this code works, I had some typo /version issues when testing

function clearVals() {
document.forms[0].reset();
for (i = 0; i < Page_Validators.length; i++) {
Page_Validators[i].style.visibility = 'hidden';
}
return false; 

also tpeczek, thanks for your code, but it didn't work on my page, maybe I did something wrong with that also