|
If i can understand your idear i dier; Please Post again your idear and tell me more about that. Examplete databese you using, application, what do you want, what about secsion... more and more details...???????/
|
|
|
|
|
Sessions are kept automatically for each client connected, you only need to set a variable like session("VarName")=1
If someone else connects a new session willl be started
Alexei Rodriguez
|
|
|
|
|
Hi,
I need to set the value of my hidden control. Up to this point I had just played around, have not created the full value of the hidden control. I just want to add the current local date, but that I will do. I just need to know how to set the value parameter from a value returned from a function.
My hidden control:
<input
id="hdnLocalDate"
type="hidden"
value="javascript:GetDateTime();"
runat="server" />
My javascript function:
<script type="text/javascript">
function GetDateTime()
{
var date = new Date();
// Year
var year = date.getFullYear();
// Month
var month = date.getMonth();
}
</script>
Please can someone help me?
Regards
ma se
|
|
|
|
|
Try the following
window.opener.document.forms("formname").elements("id (Example:hdnLocalDate) or name ").Value
Regards,
Vimal
If U Get Errors U Will Learn
If U Don't Get Errors U Have Learnt
|
|
|
|
|
I want to set the value of the hidden control. When I do the following:
Response.Write("hdnLocalDate = " + hdnLocalDate.Value);
I get the value to be something like GetDateTime().
regards
|
|
|
|
|
simply add a return statement to your function, that should work no?
<script type="text/javascript">
function GetDateTime()
{
var date = new Date();
return date.toString("DD/MM/YYYY");
}
</script>
|
|
|
|
|
When I do a Response.Write on the hidden controls value like:
Response.Write("hdnLocalDate = " + hdnLocalDate.Value);
..then it displays:
hdnLocalDate = javascript:GetDateTime();
What now?? If I do a view code, must it display the value property's value as the date returned?
|
|
|
|
|
Hmm, good point, of course the value field will never run the javascript, just take it as a string literal....how silly of me
You'd have to run some function when the page loads to populate the hidden field.
<br />
window.onload = function() {<br />
hdnLocalDate.value = new Date().toString("DD/MM/YYYY");<br />
}<br />
Of course with runat="server" on the hidden form field its ID could easily change if its inside an INamingContainer.
|
|
|
|
|
Does onload exist?? I typed in window. and then there was no onload option. I am using VS 2005.
It's still not working:
<script type="text/javascript">
<!-- // Hide from old browsers
window.onload = function()
{
hdnLocalDate.value = new Date().toString("DD/MM/YYYY");
}
//-->
</script>
<input
id="hdnLocalDate"
type="hidden"
runat="server" />
|
|
|
|
|
ma se wrote: Does onload exist?? I typed in window. and then there was no onload option. I am using VS 2005.
Javascript intellisense in practically non-existent in visual studio, personally I use Aptana for all my JS/CSS development.
My fault again that it doesn't work, using ID.attribute won't work you need a reference to the DOM element via getElementById. Try this:
<script type="text/javascript"><br />
<br />
<!--
window.onload = function()<br />
{<br />
document.getElementById('<%= hdnLocalDate.ClientID %>').value = new Date().toString("DD/MM/YYYY");<br />
}<br />
<br />
</script>
|
|
|
|
|
/// this is the code final, i have just test;
<title>Untitled Page
}
<asp:label id="Label1" runat="server" text="Label">
|
|
|
|
|
|
Unfortunately most of us are lacking in psychic ability today, so maybe if we could see the code it would be better...
|
|
|
|
|
The Code for the Above:
<title>Untitled Document
function frmSubmit() {
if( (document.get_quote.query.value).replace(/^\s+/g,'').replace(/\s+$/g,'')!="" && (document.get_quote.query.value).replace('Company name / code, MF name','')!="")
document.get_quote.submit();
}
|
|
|
|
|
That my friend is what we call Tag Soup. Try seperating out style from content, using more semantic markup (ditch the tables) with better use of CSS. Then I might be able to tell head from tail whats going on there. Oh and while your at it, why not use some progressive enhancement techniques to add the onclick handlers.
|
|
|
|
|
hi
how to use popup celander in asp.
Haresh Bogani
|
|
|
|
|
What popup calendar would you be referring to?
|
|
|
|
|
Hi,
Try the following Link : http://www.softcomplex.com/products/tigra_calendar/
Regards,
Vimal
If U Get Errors U Will Learn
If U Don't Get Errors U Have Learnt
|
|
|
|
|
|
How to handle bookmarks while using Ajax?
|
|
|
|
|
What do the two have to do with each other ? IF you mean, how to bookmark the state of a page after it's been changed by AJAX, you can't, unless it's possible to store a URL using javascript, and you use query string parameters to store/restore that state.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello,
I am a newbie to ASP.Net. I created my first web application using ASP.Net.
The project compiles and runs perfectly from my local machine.
I did a copy website from my local application onto the web server.
Now, when I open the server website on the VS Expresss Edition, and build it. I get Errors that says:
Error 1 Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. \\<webservername>\wwwroot\<location>\Form.aspx 396
Error 107 Element 'CalendarExtender' is not a known element. This can occur if there is a compilation error in the Web site. \\<webservername>\wwwroot\<location>\Form.aspx 501 36 \\<webservername>\wwwroot\<location>\
I don't know what is causing this problem.
When I run the website on the IE browser, I get a different error that says:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'Oracle.DataAccess, Version=9.2.0.700, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 37: <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
Line 38: <add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A">
Line 39: <add assembly="Oracle.DataAccess, Version=9.2.0.700, Culture=neutral, PublicKeyToken=89B483F429C47342">
Line 40: <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A">
Line 41:
Source File: c:\inetpub\wwwroot\<location>\web.config Line: 39
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Oracle.DataAccess, Version=9.2.0.700, Culture=neutral, PublicKeyToken=89b483f429c47342' 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].
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Please let me know, if you have any clue.
Appreciate your help.
Regards.
|
|
|
|
|
You're asking the wrong question. AJAX will just work on any web server. However, if you used a library to get AJAX controls, then those controls, that library, needs to be installed on the server, obviously.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You need to have the ASP.NET Ajax Extensions installed on the web server and a reference to the AjaxControlToolkit in the bin folder of the website (only if your actually using the toolkit of course, but it looks like you are).
|
|
|
|
|
Thank you for your response. I had our web server admin install "AJAX EXTENSIONS" download from the ajax.asp.net website.
Also, downloaded the AJAX control toolkit. Unzipped in the folder under Program Files/Microsoft ASP.Net
\\webserver\c$\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions
Then, I opened the web site on my local machine and when I try to build it. It gives me these errors again:
Error 1 Element 'CalendarExtender' is not a known element. This can occur if there is a compilation error in the Web site.
\\webserver\wwwroot\webforms\Form.aspx 396 30
\\webserver\wwwroot\webforms\
Error 7 Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
\\webserver\wwwroot\webforms\Form.aspx 396
Please help as I am clueless on how to make these errors go away.
Appreciate your input.
Regards,
Rekha.
|
|
|
|