|
mpavas wrote: DateFromToCombo.Attributes.Add("onChange"," makeVisible('<%=DateFromLabel.ClientID%>')");
Have you looked to the viewsource ? Is that coming correctly there ? Are you able to alert the id from makeVisible function ?
|
|
|
|
|
Yes the ID comes properly.
Regards,
Pavas
-----------------------
[http://longjump.com/]
Dynamic business applications that manage and coordinate teams and information
-----------------------
|
|
|
|
|
Opps sorry, When I use alert. It says ID is null or not an object.
Regards,
Pavas
-----------------------
[http://longjump.com/]
Dynamic business applications that manage and coordinate teams and information
-----------------------
|
|
|
|
|
Since you are using id from server side, you can directly write Label.ClientId without specifying it inside scriptlets.
|
|
|
|
|
When I try to it says style is null or not an object. I am really not sure y this is happening
Regards,
Pavas
-----------------------
[http://longjump.com/]
Dynamic business applications that manage and coordinate teams and information
-----------------------
|
|
|
|
|
function makeVisible(lblObj)
{
var dtfromlabel = document.getElementById(lblObj);
dtfromlabel.style.visibility ='visible';
}
DateFromToCombo.Attributes.Add("onChange"," makeVisible('" + DateFromLabel.ClientID + "')");
|
|
|
|
|
mpavas wrote: function makeVisible()
{
var dtfromlabel = document.getElementById('<% =DateFromLabel.ClientID %>');
dtfromlabel.style.visibility='visible';
}
Hi if you are using above function then cant call like below code.
mpavas wrote: DateFromToCombo.Attributes.Add("onChange"," makeVisible('<%=DateFromLabel.ClientID%>')");
change it,
Var ControlID;
function makeVisible(ControlID)<br />
{<br />
var dtfromlabel = document.getElementById(ControlID);<br />
dtfromlabel.style.visibility='visible';<br />
}<br />
But why u r passing ID ? as you can get that id from your function.
R u not getting ID there?
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
I am trying to display data in list box with multi column in asp.net . Can it possible in asp.net
multi column list box . ?
Thanks
Piyush Vardhan Singh
|
|
|
|
|
|
Hi,,,
i finished from implement a class its name ValidationApplicationBlock.css and it has some property to make custom validation on some controls in web page its name ValidationApplicationBlock.aspx also i used Validator Attributes in my implementation for this task instead of using enterprise library configuration tools.because it does the same work but with visual tool so i prefer to make my custom validation with Validator Attributes,but you should to set property (sourcetypename) in web form to define the control to its property and Validator Attributes i try to do that more then one time and change the path for ValidationapplicationBlock.css to define it to web form but no result so please help me
ASAP to solve that ,and the error is
Server Error in '/PresentationWeb' Application.
The source type could not be found for name "/PresentationWeb/App_Code/Pages/ValidationApplicationBlock".
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.InvalidOperationException: The source type could not be found for name "/PresentationWeb/App_Code/Pages/ValidationApplicationBlock".
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:
[InvalidOperationException: The source type could not be found for name "/PresentationWeb/App_Code/Pages/ValidationApplicationBlock".]
Microsoft.Practices.EnterpriseLibrary.Validation.Integration.AspNet.PropertyProxyValidator.Microsoft.Practices.EnterpriseLibrary.Validation.Integration.IValidationIntegrationProxy.get_ValidatedType
() +181
Microsoft.Practices.EnterpriseLibrary.Validation.Integration.ValidationIntegrationHelper..ctor(IValidationIntegrationProxy integrationProxy) +21
Microsoft.Practices.EnterpriseLibrary.Validation.Integration.AspNet.PropertyProxyValidator.EvaluateIsValid
() +25
System.Web.UI.WebControls.BaseValidator.Validate() +86
System.Web.UI.Page.Validate() +133
System.Web.UI.Page.Validate(String validationGroup) +2049947
System.Web.UI.WebControls.Button.RaisePostBackEvent
(String eventArgument) +81
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
|
|
|
|
|
hi all,
hi problem as follows,
previously we are using to upload the documents inside the virtual folder only . now client want to crate the folder out of virtual directory .i am able to create the directory .but unable to retrieve the files from that directory .i am using grid view in item template using the hyper link binding the physical path to it. but it is not opening the file and not giving any error also .
Please help me in this .if u have any reference links please let me know i am trying in Google unable to find the proper solution. please help in this.
Thanks And Regards,
Guru
|
|
|
|
|
Hi,
do you set this ?
you must have use templatefield and in that you have added hyperlink.
Now in the navigate URL pass full path of file.
like http://servername/foldername/filename.ext
And debug what file name you are passing in hyperlink.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
hi rays,
i am passing "file:///D:/FNTPlacer/Documents/TEST/TestCases.txt"
even through it is not working.
Thanks And Regards,
Guru
|
|
|
|
|
hi,
I am using the reports in my web application using c# in .net 2005
I have created a dataset
then i added a new rdlc file to my website
i couldnt find the Report Item tab in the toolbox dats needed for my report.rdlc design....
I dont know wat i am missing can anybody help me out
thanx in advance
zaree
modified on Monday, December 10, 2007 5:29:13 AM
|
|
|
|
|
Hi all,
I am trying to download a zip file from the server to the mobile device and extract it there with an aspx.
Could any one have idea how it can be done.
Thanks,
Aruna.G
|
|
|
|
|
hi all
i am using a treeview control where checkbox is enabled.
i want to check/uncheck all the nodes if i check/uncheck on the root node.
please help how to do that.
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
|
Hi,
you can check out this link.
Link[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
hi
i want on butttonclick event all data transfer in excel and save it.
in my code when i click on btnSaveToExcel button that time one dialogbox open wheh ask you want to save file in .exe . if yes click then file saved on desktop or whtever path.but when you want to open it that time excel open but there one popupbox comming which have message unable to read file.
pls help me.
this is my code
protected void btnSaveToExcel_Click(object sender, EventArgs e)
{
objVarInit.sqlDS.Reset();
objVarInit.sqlDT.Reset();
objClsDllSql.sqlCon = objReadIniFile.funReadIniSql();
objClsDllSql.sqlCon.Open();
objVarInit.sqlDA = new SqlDataAdapter("select * from tUser", objClsDllSql.sqlCon);
//objVarInit.sqlDT = new DataTable();
objVarInit.sqlDA.Fill(objVarInit.sqlDT);
objClsDllSql.sqlCon.Close();
Response.Clear();
Response.ContentType = "application/vnd.ms-excel";
string sep = "";
foreach (DataColumn dc in objVarInit.sqlDT.Columns)
{
Response.Write(sep + dc.ColumnName);
sep = "\t";
}
Response.Write("\n");
int i;
foreach (DataRow dr in objVarInit.sqlDT.Rows)
{
sep = "";
for (i = 0; i < objVarInit.sqlDT.Columns.Count; i++)
{
Response.Write(sep + dr[i].ToString());
sep = "\t";
}
Response.Write("\n");
}
}
Gayatri
|
|
|
|
|
Where is the file coming from ? Is the file created on the server and then sent to the client ? Does the file exist as you expect ? Are you sure it will exist on the server, not the client, when this is deployed ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi
i want code for --
i am using farpoint spreadshhet control. and my database is in sql.
i want to save data in excel on button click.
and iam using asp.net 2.0 with c#.
Gayatri
|
|
|
|
|
I can think of two ways to put your data into excel file...
1.) Use com object.Add reference to microsoft office and use namespace microsoft.office.interop.excel;
then create ur workbook, worksheet and put all the data one by one in a forloop.
Export To Excel[^]
Export to excel.[^]
2.) Another and very interesting way of doing it use xsl transformation.wot u need to do is just get xml from dataset and then apply xsl on the same and create ur excel sheet.Lemme knw if u r interested...
modified on Monday, December 10, 2007 5:24:30 AM
|
|
|
|
|
i have a windows control which is to be loaded on a webpage(.aspx page)
control is loaded with the aid of "object" tag
the control is developed in C#.net(managed code basically)
the control makes use of the system resources and even makes use of some other dll's too
problem:
the control fails to load on the webpage
first solution tried:
change the .net security with the aid of caspol
so i tried giving full trust to all code
this worked fine and the control got loaded.
however this worked fine only when the webpage was a part of the default website in IIS
in case if the webpage which hosts the control is a part of a virtual website apart from the default website
the control is failing to load
so what might be the problem...??
from some of the blogs which i read...the .net tries to give trust
to assemblies based on from where the assembly is getting streamed
so i also tried to load the control by making this site a trusted one
still the control didn't load
any idea...as to might b wrong....
|
|
|
|
|
|
Hi! ALL
I m generating Crystal Reports by Push method (via DataSet);
but while executing it display a message & four fields in which two are editable & two are uneditable as following
report further inofmration.
Dataset name;
Server name : DataSet name;
DataBase name ..uneditable
User ID ..
Password ...
All these are requested when generating reports with pull method nevertheless I passed all these in ConnectionInfo to TableLogOnInfo.
so how i tackle this.
Any suggestion regarding this will be anticipated.
Thanks in Advance.
|
|
|
|