|
Yes a JS error and yes i set the control to validate
N.B when i delete the required validator the error is gone
below the code iam using, i have used it 100's of times:
<asp:TextBox ID="txtSubject" Width="300px" runat="server"></asp:TextBox><asp:RequiredFieldValidator
ID="ReqVal" Enabled="false" ControlToValidate="txtSubject" runat="server" ErrorMessage="Subject is required!"></asp:RequiredFieldValidator>
JS:
var reqValue = document.getElementById('<%=ReqVal.ClientID%>');
if (FPchk.checked == true)
ValidatorEnable(reqValue, true);
else
ValidatorEnable(reqValue, false);
|
|
|
|
|
I'm facing the same problem.... Searched for the solution but in vain!
[Update]
I've found the solution!
Just add a
<script type="text/javascript">
var Page_Validators = new Array();
</script>
to the start of your page giving the error.
And there you go!.....error solved.
modified 25-Oct-11 12:08pm.
|
|
|
|
|
|
hello
i am trying to add webreference by right clicking on project in visual studio 2008 located
at webadress http://www.uclocal.com/customerservice.asmx visual studio finds the webservice
but it dont add webreference it gives me error message below
The document at the url http://www.uclocal.com/customerservice.asmx?WSDL was not recognized
as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'http://www.uclocal.com/customerservice.asmx?WSDL' is 'The document format is
not recognized (the
the question is how to sort out error above
hannahwill
|
|
|
|
|
i have some issues in downloading. i have write a code for downloading a csv file the file is downloaded correctedly but the issue is in the name of file. i want the file to be downloaded with the exact name as i choose for it but the mozila and ie download the file with another name. in ie the fullpath along with the file name is shown along with extension but in mozila the file is else something and there is no extension. can any body help me how can i solve this issue.
thanx
amirzada
|
|
|
|
|
|
You need a 3rd party control to convert to pdf, a quick google search will finds you loads.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Hi,
How can I create controls using a Web Control library Project and use those controls in asp.net web applications
I am using 1.1 framework.
rgds,
rains
|
|
|
|
|
Got a wonderful article.
http://www.osnews.com/story/6802/Visual_Studio_NET_Design_View_and_Custom_Web_Controls/page1/
Rgds,
Rains
|
|
|
|
|
Good Morning All
i have a menu control in Asp.net , i want to click a certain item in the menu in JavaScript.
Thanks
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
|
Good DAy Ramesh
Thanks it worked
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
how do i localised (or make multilingual to english and dutch) the sitemap in asp.net
|
|
|
|
|
|
Hi all,
I want to install some prerequisite programs before intsall my web application.
Please how do I add these programs to my web application setup program.
Thanks.
SPC Nigeria
Thanks.
|
|
|
|
|
HI,
This is Junaid
I have a query regarding application deployment. I want my asp.net application (developed under vs 2008) to be executed under x64 based architecture, for that I compile my application for x64 based architecture by changing in complication settings for x64. I just want to will this application run successfully on x64 based architecture , because it complied on 32bit OS (probably win xp) , I just change the complication settings.
Regards
Junaid
|
|
|
|
|
Yes It should work. The only thing is that the IIS in the 64-bit server needs to be set to work in 64-bit mode.
Hope the followin threads will help you
Thread 1[^]
Thread 2[^]
Link 1[^]
|
|
|
|
|
Hi,
I have C# ActiveX control or (Win-form library) Using ASP.Net
When web-page display on browser,prompt Message display "Security-Warn"
with two button
Run Or Don't Run, button.
I don't want to Show this Prompt Messages or asking me for run.
i don't Want to Set Browser Setting plus.
This is possible though Codes in VBScript,JavaScript etc.
|
|
|
|
|
ActiveX controls cannot be enabled by code. It should be enabled manually in the browser's setttings.
|
|
|
|
|
Hi,
I need to create specified number of buttons dynamically with events.
can anyone plz provide me de code, its urgent.
beula,
cmots infotech.
|
|
|
|
|
|
thanks a lot
beula,
cmots infotech.
|
|
|
|
|
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class TempEvent : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Button btn = new Button();
btn.ID = "btnnew";
Panel1.Controls.Add(btn);
btn.Click += new EventHandler(btn_Click);
}
protected void btn_Click(object sender, EventArgs e)
{
Response.Write("hi");
}
}
Padmanabhan
|
|
|
|
|
Hi,
I have a country master.I want to display code and name of the country in a gridview using csharp.
I have an add new button,if i click on that button a new empty row should get added to the gridview,where i can enter a new country details.Like that if a i click on that button for required number of times,that many rows should get added.
I should insert into the table(SQL server2005) on click of an update button at one shot.
Someone please help me out to achieve this application.....
waiting for a positive reply..
|
|
|
|
|
public void EmptyGrid()
{
DataTable TempTable = new DataTable();
TempTable.Columns.Add("sino");
TempTable.Columns.Add("name");
TempTable.Columns.Add("gender");
TempTable.Columns.Add("qualification");
TempTable.PrimaryKey = new DataColumn[] { TempTable.Columns["sino"] };
TempTable = BindEmptyRows(3, TempTable);
GridView1.DataSource = TempTable;
GridView1.DataBind();
}
//Method to Bind Rows
private DataTable BindEmptyRows(int nofoRows, DataTable dt)
{
for (int i = 0; i < nofoRows; i++)
{
DataRow dr = dt.NewRow();
dr["sino"] = dt.Rows.Count + 1;
dr["name"] = string.Empty;
dr["gender"] = "0";
dr["qualification"] = "0";
dt.Rows.Add(dr);
}
return dt;
}
//refer :Temporary Values in Grid[^]">
Padmanabhan
|
|
|
|