|
|
for my page i have 88 CheckBox when the page is load i want set the selected to false. so any one can help me create a for loop when page is load all the checkbox set to false by using
<asp:CheckBox ID="CheckBoxXS" runat="server" Text=" XS" onClick="forXS(this)" class="checkboxS" OnCheckedChanged="CheckBoxXS1_CheckedChanged"/>
function forXS(sender) {
var tb1 = document.getElementById('<%= txtXS.ClientID %>');
tb1.style.display = sender.checked ? 'inline' : 'none';
if (tb1 != null) {
tb1.focus();
ValidatorEnable(document.getElementById('<%= val1.ClientID %>'), sender.checked);
}
}
________________________________________________
can use Java Script fumction for this and call on page load as below: but i dont know how to place inside my script
function UncheckAll(){
var w = document.getElementsByTagName('input');
for(var i = 0; i < w.length; i++){
if(w[i].type=='checkbox'){
w[i].checked = false;
}
}
}
|
|
|
|
|
To set all the checkboxes to false on the whole page, you can use JQuery...
$('input').find(':checked').each(function() { $(this).removeAttr('checked'); });
|
|
|
|
|
|
Hey Everybody.
I have created crystal report in asp.net project in VISUAL STUDIO DOT NET 2010. These reports are running fine when I run the application by pressing F5 in my development machine. But i want to know how to publish these reports to web server.
<%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
The above line will help you to know the version of Crystal Report.
Following ERROR Occurs
Quote: Server Error in '/' Application.
Invalid file name.
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.Runtime.InteropServices.COMException: Invalid file name.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x800001fb): Invalid file name.]
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +95
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +270
[CrystalReportsException: Load report failed.]
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +333
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +876
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +84
WebPathLab.AgentList.Page_Load(Object sender, EventArgs e) +504
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
Thanks in advance.
modified 21-Apr-13 21:32pm.
|
|
|
|
|
|
I have asked the web hosting provider to install crystal report. They have done their part.
Then
I have copied Quote: Copy aspnet_client folder from c:\inetpub\wwwroot folder to the new website root folder.
the aspnet_client folder at root of my website contains the following folders but no solution
Quote: C:\Inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13
Again the same FILE NOT FOUND error occur
|
|
|
|
|
error when i want to delete data at database, i no have link any relationship btw the table.
when i wan delete the data microsoft visual studio 2010 will prompt out the message
No row were deleted.
A problem occured attempting to delete row 8.
Error source: Microsoft.VisualStudio.DataTools.
Error message:The row value(s) updated or deleted either do not make the row unique or they alter multiple row(3 rows).
correct the error and attempt to delete the row again or press ESC to cancel the changes.
this is what error ? why sometime will occur this problem ? if i delete other row that no problem, how to slove ?
|
|
|
|
|
|
ya no have primary key ~ but that is one to many relationship table
|
|
|
|
|
I'm guessing you're using a DataAdapter; don't.
|
|
|
|
|
what u mean by using DataAdapter? i using this
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
using System.IO;
using System.Data;
using System.Diagnostics;
|
|
|
|
|
|
LOL, that's everything he's using!
I think a basic class on ASP.Net is in order. I hope somebody isn't paying for this!
|
|
|
|
|
I Higly recommend you to use an Identity column or a UniqueIdentifier Column and set it as Primary Key.
Heap tables with equal row data have this problem due to uniqueness is null and SQL Server nor you could identify which record is fine.
|
|
|
|
|
I am a beginner with asp and I want to start to build professional sites. I had a look at some books and links href="http://www.w3schools.com/aspnet/">
I am more than confused on where to start. I see no structure in my mind
Is there some guidance or strategy, not only a list of technologies available?
Question1:
There is the tool "WebMatrix". It seems to support any needs. Why do I need VStudio then? What is the difference from WebMatrix and VStudio
Question2:
There seems to be a principal difference between "WebPages" and "WebForms (&MVC)". What is this difference
|
|
|
|
|
|
|
|
I want to create yes/no buttons in a popup menu any ideas regarding this?
|
|
|
|
|
Are you looking for simple javascript popup ?
You can try
var r=confirm("Are you sure?");
if (r==true)
{
x="You pressed OK!";
}
else
{
x="You pressed Cancel!";
}
But here you will see OK and cancel instead of yes/no.
|
|
|
|
|
I want code about "how to create setup file in asp.net/c#"
|
|
|
|
|
|
Here's the problem :
When the gvWorkReportList is invisble and gvWorkReportList.FooterRow =null in page loading i get the bellow error :
Quote: System.NullReferenceException: Object reference not set to an instance of an object.
the error is on this part of code :
__doPostBack('<%=gvWorkReportList.FooterRow.FindControl("lnkAdd").UniqueID%>', '');
Quote: this is the piece of my code!
<script type="text/javascript">
function KeyDownHandler() {
// process only the Enter key
if (event.keyCode == 13) {
__doPostBack('<%=gvWorkReportList.FooterRow.FindControl("lnkAdd").UniqueID%>', '');
}
}
</script>
This doesn't seem like it should be that hard, so if someone could just give me a kick in the right direction, that'd be awesome.
I have used these solution but it dosen't work :
var grid = document.getElementById('<%=gvWorkReportList.FooterRow.FindControl("lnkAdd").UniqueID%>');
if (grid != null) {
__doPostBack('<%=gvWorkReportList.FooterRow.FindControl("lnkAdd").UniqueID%>', '');
}
var grid = document.getElementById("ctl00_ContentPlaceHolderContent_gvWorkReportList");
if (grid != null) {
__doPostBack('<%=gvWorkReportList.FooterRow.FindControl("lnkAdd").UniqueID%>', '');
}
var gridFooter = gvWorkReportList.FooterRow;
if (gridFooter != null) {
__doPostBack('<%=gvWorkReportList.FooterRow.FindControl("lnkAdd").UniqueID%>', '');
}
|
|
|
|
|
Hi,
if the gridview is invisible i.e. you have made visible = "false" , the control will not be rendered into the client, and object will go null. So, this is what happening in your case.
if you want the gridview to be rendered into the client but not to be displayed, then try by using style attribute like this. style = "display: none;" . if you do so, probably you can access UniqueID .
hope it helps.
Vande Matharam - Jai Hind
|
|
|
|