|
They must enter the text in another textbox, and then add it yourself.
|
|
|
|
|
Aw, damn.
Calling all South African developers! Your participation in this local dev community will be mutually beneficial, to you and us.
|
|
|
|
|
The only idea I have is to use the ASP.NET AJAX AutoComplete extender[^]. It looks like a drop down, but at the same time it allows you to type in any text. I haven't used it myself yet.
Kind regards,
Pawel Krakowiak
|
|
|
|
|
Thanks Pawel, I will look at that control for future work, but I can't use it now. We have rolled out own AJAX, so no external controls are desirable.
What I'm thinking of doing is placing a textbox over the dropdown, and only ever using the textbox value. Whenever the user chooses from the dropdown, the text box gets the value of the dropdown, but they can overwrite this. When they save, I read the textbox.
Calling all South African developers! Your participation in this local dev community will be mutually beneficial, to you and us.
|
|
|
|
|
Hi Friends
I am trying to go from one page to another page using Javascript in my aspx page.
I am using
{
window.location.href = link;
}
My var link has the URL and i did confirm it by using alert.
I am getting the correct URL but i want it to go to that page.
I think window.location.href is the method for redirecting to another page.
Not sure whats wrong.
If any of you have any suggestions or help, it would be appreciated.
Thanks
Cheers
Menon
|
|
|
|
|
What you have will work in IE, but not Firefox. Someone will no doubt say this is because FF is w3-compliant and IE isn't or some such nonsense, but don't believe them: it's a bug.
The fix is twofold:
First, add a "return false;" to stop FF posting the page back to itself:
window.location.href=link;
return false;
Second, note that if running this script locally you will need to make your link absolute (http://...) but when running on a live web server a relative link will work.
cheers
Fred
|
|
|
|
|
Thanks Fred,
Well you are correct it was bug from the browser, It doesnt work for FireFox and older versions of IE also, but works for IE7.
Thanks again
Cheers
Menon
|
|
|
|
|
hi there,
i hav created a web service (converts currencies) wel its working fine at my system, but when i try to access it from some other machine, it gives an exception and in its detail all i understand is " this service is to test on local machine only" how to resolve this prob??
i want to access it from remote location??
help plz...
i m faisal
|
|
|
|
|
Have you installed a web server, like IIS, on your machine?
If you use the built in web server in Visual Studio, that can only be used on the local machine.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
yeah..IIS is installed on that machine.
but still having problems
i m faisal
|
|
|
|
|
hello to all
I put one datalist in the form and there puting one textbox. data is bind from the database into the textbox. i want to disable textbox by using java scirpt ?
|
|
|
|
|
You can disable the textbox by using the Javascript below..
var txt = document.getElementById('textbox');<br />
txt.disabled = ture;
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
|
Yups, use publish web site and uncheck the option "Allow this site to be updatable".
/// -------------------------
Braulio Díez
tipsdotnet.com
/// -------------------------
|
|
|
|
|
Thanks for your reply. Can you write the steps from the beginning?
|
|
|
|
|
I require to create a Web Setup project in VS.NET 2005 that I am interested not to give the Source code to client. Please give the idea how to create.
Thanks in advance
|
|
|
|
|
I am declard a field name as date of birty - data type as date
now I get a date in a textbox as dd/mm/yyyy format. but
sqlserver as mm/dd/yyyy format
how can i store into a table as my getting value as dd/mm/yyyy
Please give me a source code in vb
thanking you
abglorie
|
|
|
|
|
If you pass the date as a parameter rather than trying to inject it into the SQL String you won't have to worry about date formats.
It will also give you an extra benefit of protecting you against SQL Injection Attacks.
And this appears to be a database question - Why isn't it in the SQL Forum?
|
|
|
|
|
This is a presentation issue. SQL Server stores date in a particular format. You can change the format when selecting data. Use CONVERT function to format date.
|
|
|
|
|
hello abglorie,
in the database change the datatype of the datefieldname as varchar(50)
u will get or in the query write it as
select convert(varchar(10),getdate(),101) or 103
ok byee
murali
|
|
|
|
|
yesterday Mr.John sir has helped me in one issue which is related to the same task
code---
else if (txtHospitalName.Text== "Medb" || txtHospitalName.Text== "Medw")
{ FileInfo thefile1 = new FileInfo(Server.MapPath("RtfFilesPath") + "\\voice\\" + txtOriginalName.Text.Trim() + ".wav");
if (thefile1.Exists)
{
File.Copy(Server.MapPath("RtfFilesPath") + "\\voice\\" + txtOriginalName.Text.Trim() + ".wav", Server.MapPath("RtfFilesPath") + "\\voice\\" + txtFilename.Text.Trim() + thefile1.Extension);
GetData();
}
hello frns
the above is the snippet of code i used in my application what i am doing is copying a file and saving it with the someother name its working fine, but the actual problem is i'll be having two types of files in my folder one is .mp3 and .wav .
so in the above code i am checking only the .wav file
note: i'll be entering only the name of the file without extension, there may be any one of the two filetypes.
what are the modifications/additions i have to make in my code to check for two types of file extensions
thanks for ur replies in advance
|
|
|
|
|
sunilwise wrote: FileInfo thefile1 = new FileInfo(Server.MapPath("RtfFilesPath") + "\\voice\\" + txtOriginalName.Text.Trim() + ".wav");
if (thefile1.Exists)
{
File.Copy(Server.MapPath("RtfFilesPath") + "\\voice\\" + txtOriginalName.Text.Trim() + ".wav", Server.MapPath("RtfFilesPath") + "\\voice\\" + txtFilename.Text.Trim() + thefile1.Extension);
GetData();
}
<br />
FileInfo thefile1 = new FileInfo(Server.MapPath("RtfFilesPath") + "\\voice\\" + txtOriginalName.Text.Trim() + ".wav");<br />
<br />
if (!thefile1.Exists){<br />
thefile1 = new FileInfo(Server.MapPath("RtfFilesPath") + "\\voice\\" + txtOriginalName.Text.Trim() + ".mp3");<br />
}<br />
<br />
if (thefile1.Exists)<br />
{<br />
File.Copy(Server.MapPath("RtfFilesPath") + "\\voice\\" + txtOriginalName.Text.Trim() + ".wav", Server.MapPath("RtfFilesPath") + "\\voice\\" + txtFilename.Text.Trim() + thefile1.Extension);<br />
GetData();<br />
}
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
thanks for u r answers sir its working fine
|
|
|
|
|
how to convert date time day from text datatype
for example text field=2007/11/13,04:38:14:859
and i want to convert this text(2007/11/13) into date formate Like(13 Nov 2007- Tuesday ) in MSaccess
please help
Piyush Vardhan Singh
|
|
|
|
|
use like this
date.ToString("DD/mm/yyyy")
can solve ur problem.
Devjit Das.
|
|
|
|