|
Does anybody know where I can find a command line utility for compressing javascript files? I want to use some sort of tool to compress javascript files when they are deployed via a NAnt script.
Thanks, all.
Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA www.defaultn.com
|
|
|
|
|
Dear Friends,
How to clear a session,when F5 or refresh button is clicked..?
The Scenario is as follows..
I 've a session,which maintains an user's name and password..
when a button is clicked, these details are fetched from a session and filled in the appropriate text boxes..Now
When button is clicked, though the page gets submitted,session keeps the value.
Now when user clicks on F5, or clicks on refresh button from IE6, the session should be cleared..
Is it possible..?
Muthu
|
|
|
|
|
Session variables are supposed to keep their values. I believe that you are just using the wrong tool. Where do you get the user name and password from in the first place, and why do you think that you need to store them in session variables?
---
single minded; short sighted; long gone;
|
|
|
|
|
Actually speaking, I just said an example with username and password. I just want to know,whether i can retain the values, all the times,except while pressing F5.
I want to know this,because I think this logic could help me in a mini project that I am doing. As I am facing such a need, I posted this thread.
Thanks Guffa..
Muthu
|
|
|
|
|
John.G wrote: I just want to know,whether i can retain the values, all the times,except while pressing F5.
No, you can't. If you want to do something different when the page is reloaded, you have to keep track of the requests so that you can detect if a request is repeated.
---
single minded; short sighted; long gone;
|
|
|
|
|
Dear Friends,
Could any of u tell me, how to restrict copying and pasting of text into an Number restricted field.?
Say, I have a text box which should accept only Amount..
So,I have restricted text entry to that text box,by javascript.
But,a block of text is copied and pasted into that field.
Thus tell me how I could avoid this?
Thanks a lot.
Muthu
|
|
|
|
|
I don't think this can be done easily. What you could do though is handle the JavaScript onchange event for your INPUT control and prevent the user from navigating away from the control if it contains non-numeric input. Follow this link[^] for an example of a function that checks whether a string is numeric. If the string is not numeric, cancel the onchange event.
Paul Marfleet
|
|
|
|
|
Here is the situation
I have a web page where I use the following code for prepopulate dates into two text boxes(in Page_Load event),
If Not IsPostBack Then
Me.DateFromTextBox.Text = System.DateTime.Now.AddDays(-15).ToShortDateString
Me.DateToTextBox.Text = System.DateTime.Now.ToShortDateString
End If
Now I have a date picker icon next to each text box and the user selects the date by clicking the icon(another aspx page opens, usual java script date picker stuff),
<asp:textbox autopostback="true" id="DateFromTextBox" width="90" readonly="true" runat="server"></asp:textbox><a href="javascript:;" onclick="calendarPicker('DateFromTextBox');" title="Pick Date from Calendar"> <img alt="Pick" src="calendar_icon.png" width="20" height="20" style="border-width:thin"/></a>
<script language="javascript" type="text/javascript">
function calendarPicker(strField)
{
window.open('DatePicker.aspx?field=' + strField, 'calendarPopup', 'width=250,height=250,resizable=no');
}
</script>
Now I am not able to capture these values selected using datepicker, If the user enters the date without selecting from datpicker I am able to capture the values properly,
No matter what I do I am not able to capture the dates picked using date picker, am I missing anything here
Thanks in advance, Appreciate any help
Sri
|
|
|
|
|
I don't know how to get values from another page.
However, instead of another page, you might want to check out AJAX calendar extender at www.asp.net/ajax.
I just added it to my page, and it works well.
"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."
"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."
|
|
|
|
|
Try it without the readonly="true" property of the textboxes and see if that works...
|
|
|
|
|
Hi,
Which version are you using? If you are using .net 2.0 then probably you may use CalenderControl which comes with .Net. That serves your purpose I feel. But the thing is the control do not pops up in a different window, instead it gets visible in the same page. Its really good control with lot of readymade functionality.
hope this works for you.
Regards,
Rakesh
Rakesh
|
|
|
|
|
HI,
we have a web service and our application(.net 1.1, C#, oracle) consumes this web service. By default the security(authentication) is given anonymous, now as for security reasons we want to remove this option.
So lets say we use Integrated Windows Authentication. Doing so we would get Access Denied 401 error. On searching though it is found that we could pass few credentials and access the web service (this works fine)
What are the cons in providing user credentials in the code?
What are the steps to be followed to make a web service secure and accessible?
Is there a way that a web service can be accessed after removing anonymous access and not providing any credentials in the code?
Thanks a ton!
gauthee
|
|
|
|
|
|
|
I've heard this is a good book too - I will check it out, thank you!
Coleen
NV DMV ISS 3
|
|
|
|
|
am not getting the popup window when am clicking an image button.the code as follows
am getting image in this button,but when clicking it is not going to the given page.
<asp:imagebutton id="imgPhoto" runat="server" height="100px" imageurl="<%# FormatUrl(DataBinder.Eval(Container, "DataItem.MEMBERID")) %>" postbackurl="javascript:window.showModalDialog('~/MemberDetails.aspx','','help:no');">
|
|
|
|
|
Kurian_Kurian wrote: the code as follows
I don't see any code. If you are posting markup code, use the "Ignore HTML" option.
---
single minded; short sighted; long gone;
|
|
|
|
|
in web page i create word document. i referenced to MSWord.olb file. But there is no Bin directory, there is no any delegate as it is automaticaly created when you referance to dll file.
my site works on local machine, it creates word documants.
but at server, i got error :S
how could i solvE?
|
|
|
|
|
Hello,
I'm thinking about two solutions:
1. Try to call MS Word using late binding.
2. Ty to use Aspose.Word library
|
|
|
|
|
hi
i m devloping a web application
and i m passing a parameter i.e empid through query i.e command text
i m getting error that parameter not found
pankaj sahni
|
|
|
|
|
I have a user control specified in an aspx page thus:
<CAS:BodyBox runat="server" TitleImage="../Style/Users_small.gif" Width="800">
<Title>
Welcome to <strong>Caslon</strong>
</Title>
<Content>
<CAS:Welcome runat="server" />
</Content>
</CAS:BodyBox>
I get parsing errors
Validation (XHTML 1.0 Transitional): The element 'Title' cannot be nested within the element 'bodybox'.
such that I cannot view the page in design view.
What is the correct way to write this snippet?
BTW, I did not author this code, I have merely been tasked with trying to understand it.
Kevin
|
|
|
|
|
I have put my web-site together and everything works fine when working on my computer. I have one page that works with a Visual FoxPro table (dbf). In my web.config file, the only way to get it to find the table is to put in the complete path to the file. The file on my site is located in the App_Data folder off of the root. Here is the connection string that works on my local computer when running under Visual Web Developer:
<connectionstrings>
<add name="ADAInfoConnectionString"
connectionstring="Provider=VFPOLEDB.1;Data Source='C:\Users\David\Documents\Visual Studio 2005\WebSites\Damar\App_Data\ADASurvey.dbf'"
providername="System.Data.OleDb">
How can I get my ASP.Net application to find this table on my web-site? Should I use information in the web.config file or is there another approach that will work?
Any help would be much appreciated.
Thanks!
Dave
|
|
|
|
|
Hello,
You can use Server.MapPath("App_Data\ADASurvey.dbf"); This method maps the specified relative or virtual path to the physical directory on the server.
|
|
|
|
|
Ilya,
Can I use this in my web.config file or do I need to do something in my page load event?
Dave
|
|
|
|
|
You should manage this in load event.
|
|
|
|