|
thankx for reply,
but i don't want to use scripting
any other way ????
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
koolprasad2003 wrote:
<input type="hidden" value="" name="hidTest"<big> value="<%=ValueForHiddenFieldFromServer%>"</big>>
|
|
|
|
|
assign a runat="server" property, and an ID, then you can set it's value in your code behind
<input type="hidden" runat="server" value="" name="hidTest" id="hidText">
...
in code-behind:
hidText.value = "xyz"
...
this is if you're using asp.net - if clasic asp then yuo'll need to follow the post above...
|
|
|
|
|
How to find out if a textbox if readonly in javascript? Thanks.
|
|
|
|
|
Try to check "disabled" property.
eg:
alert(document.getElementById("txt1").disabled);
OR..
alert(document.getElementById("txt1").readOnly);
Note: readOnly should be camelCase.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
if (document.getElementById("txt1").readOnly)
alert("readonly");
else
alert("not readonly");
|
|
|
|
|
Hi guys,
I have installed ASP.Net 2.0 and AJAX extensions 1.0 in the web server. And within this web server I have 2 domains. And when accessing each domain it will ask for username and password, the same with other domain.
Again, this 2 domains are within the same web server. My question is does the AJAX extensions 1.0 will work either of the 2 domains?
I haven't any problem when accessing the first domain. But when accessing the 2nd domain, my ASP.Net Page that has AJAXToolKit will display an error on the page.
Parser Error Message: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.
What do you think is the problem?
hifiger2004
|
|
|
|
|
|
Hi Guys,
I have a problem regarding the web server. We installed ASP.Net 2.0 and also the ASP.Net AJAX extension 1.0.
But we don't exactly if what's wrong because when we added ajaxtoolkit control into the aspx page the page will produce an error. I tried different work around already but still no luck.
I hope you could help me get out from this error, I'm stuck to this error 2 days already
Please see error message below:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 1: <%@ Page Language="VB" AutoEventWireup="true" MaintainScrollPositionOnPostback="true" CodeFile="PartsMain.aspx.vb" Inherits="PartsMain" %>
Line 2: <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxToolKit" %>
Line 3:
Line 4:
Source File: /pfadmin/partsmain.aspx Line: 2
Assembly Load Trace: The following information can be helpful to determine why the assembly 'AjaxControlToolkit' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
hifiger2004
|
|
|
|
|
Either the file is not in GAC or in the bin folder (in case of private assemblies)!
|
|
|
|
|
Hi,
I am developing a web app using asp.net and C# and I am trying to develop a page that has some control preferably a webgrid, This control will have one column that has a pic in it or something and when the user scrolls over the cells of the column a tooltip or something similar will display info about the row. Any ideas or suggestions would be appreciated
Thanks in advance
Tim
|
|
|
|
|
|
nice one thanks alot ill check these out
|
|
|
|
|
Regular tooltips can be set by using the label property in an html element.
---
single minded; short sighted; long gone;
|
|
|
|
|
Guffa wrote: label
or TITLE ?
Label itself is a TAG right?
|
|
|
|
|
nice one thats perfect thanks guys
|
|
|
|
|
Vasudevan Deepak Kumar wrote: or TITLE?
Yes, that's right.
(As a side note, title is both a tag and an attribute. )
---
single minded; short sighted; long gone;
|
|
|
|
|
hi,
can somebody pls. guide me how to implement this software "sharpffmpeg" available at :
http://sourceforge.net/projects/sharpffmpeg/
I need to implement it in c#.net2.0.
Actually i've tried to implement it in c#.net2.0 but it doesn't have any user interface i.e it doesn't have any .aspx file for uploading videos.
So can anybody pls. help me regarding the same or provide me the link of sample application for the same?
Its urgent...........
Thanks,
harry
|
|
|
|
|
Hi guys,
I am having problem getting the complete directory path of the file thru FileUpload control.
Is there a property to get the directory path by using the FileUpload control?
Thanks
hifiger2004
|
|
|
|
|
The FileUpload control uploads a file from a client computer ... there is no call for you - on the server, so to speak - to know the path on their computer that they got it from.
If you want to though, I imagine you can use the .value of the control in JavaScript to perform some client-side scripting - the value should be the full path. (Never actually tried this with 2.0 FileUpload control, but can't see why it shouldn't work.)
On the server you can always use Server.MapPath to get the full physical path of a file. (But an just uploaded file won't have one until you save it somewhere first, of course.)
Fred
|
|
|
|
|
Hi Fred,
That's a good idea, but I haven't tried it before.
Do you have a sample code on how to do it in ASP.Net?
Thanks in advance
hifiger2004
|
|
|
|
|
|
I mean about using .value in javascript. I think you've tried it before in other version. Do you have some idea about how it will be coded?
Can you give me a sample code for that?
hifiger2004
|
|
|
|
|
Well, the code below will popup an alert with the full path of the file selected - this is on a simple HTML file input box. For a server control (FileUpload) you'll need to add the onchange property in your code behind using the .Attributes.Add method of the control -eg, if your FileUpload control has id="FileUpload1 then you'd use:
FileUpload1.Attributes.Add("onchange", "checkPdf(this)")
should work....
Fred
<head >
<title></title>
<script language="javascript" type="text/javascript">
<!--
function checkPdf(what){
alert(what.value);
}
// -->
</script>
</head>
<body>
<form id="form1" name="form1" >
<div>
<input id="File1" type="file" onchange="checkPdf(this)" /></div>
</form>
</body>
</html>
|
|
|
|
|