|
just set the autopostback property of radio button true, then on RadioButton1_CheckedChanged event write dropdown.enabled=true;
coolsweety
-- modified at 9:05 Thursday 20th April, 2006
|
|
|
|
|
Hey,
You need to set the radionbutton AutoPostback property to 'true'..
Then by double clicking the radiobutton, VS creates a method radiobutton_checkedchanger(..) where you write the code to enable the dropdownlist..
I'd rather suggest you use a checkbox instead of a radiobutton.
Good luck.
|
|
|
|
|
thanks for your help thats right i forgeted the atuopostbak.
that be work now thank
|
|
|
|
|
hi all,
am using a third party control called infragistics webgrid for study purpose.
and am having one problem when using it, the problem is
i have one web grid. it has a column with date value. when edititng this column(date column) with an invalid date, the column is replaced with some valid date. how can i get rid from this
plz help me
coolsweety
-- modified at 6:30 Thursday 20th April, 2006
|
|
|
|
|
Does Infragistics provide support?
|
|
|
|
|
Hiya all.
I'm about to do a new website where I need to use "friendly urls" (which I think the term is), but as I've read more about the topic, I've gotten to say the least, a bit confused about which avenue to explore most.
What I'd like to end up with is that when the user enters for instance: www.domain.com/products/productnumber.aspx that I'll then subtract the productnumber and handle it internally as if the user had typed: www.domain.com/default.aspx?pageid=xxx&productid=yyy.
(Naturally can be other types of urls, but the situation is the same)
As I understand it there seems to currently be two ways of creating these friendly urls.
1) Use HttpContext.RewriteUrl("new url") in the application.beginrequest in global.asax
2) Use/trap 404 errors on a custom page
I am unsure which of these two methods are the best and what the pros and cons on each of them are.
I haven't found many ressources which mentions both and when I do it is often in comments and not an comparison of these.
Any advice on which of the two methods to use, or possible ressources pointing to a comparison, or perhaps even a third way?
With regards, and thanks in advance.
---------------------------
127.0.0.1 - Sweet 127.0.0.1
|
|
|
|
|
Its generally a bad idea to use error conditions in the flow of normal logic, so handling 404's will be the bad way to go about it.
Rewriting URL's using the BeginRequest method would be my prefered option.
|
|
|
|
|
if i am using forms authentication and the user has disabled cookies
what will happen ? Will he be able to browse the pages through url
without going through login page ie without validation ?
is forms validation a useful way to validate the user
|
|
|
|
|
Have you tested it? What happens when you try it?
|
|
|
|
|
why this error occurs when i
write Server.Trasfer(page.aspx) in a try/catch block
|
|
|
|
|
|
Is it Possible to have 2 header rows(header for header) in a datagrid
Thanks
Lucky
|
|
|
|
|
|
Hi,
Can anyone advise me how to create "help" like html help in asp.net (2005 2.0). I am
desigining a site to be used on companies intranet, which will have this help module, & only
admin will have rights to modify it.I have documents in word for help documents.
I also need to have edititng features aswell.
Im very new to asp.net
Please help
|
|
|
|
|
Hi
I accesed Microsoft word 2003 on my website by add reference. I want to let my user to create word document in word 2003 while using website. I want to restrict my user to dont save the word document in his/her local machine . I want to save this file just in the sql server database table while using word 2003 on website.
using BLOB for saving word document into table of sql server without using word 2003 is not a problem. but how I can redirect the document towards table of sql server , when my user save the word 2003 document via save or save as dialog. by using vb.net in web application how I can control this issue.
can you please help me in this issue by any code or link
Thanks
khurram
This is a very informative site
|
|
|
|
|
You can't restrict the user that way, and I'm not sure you want to.
The only way I can think of for the user to send your server a Word file through an ASP.NET application would be through a file upload control, which would necessitate the user saving the file on his/her machine first, then browsing for it in the file upload control.
I would think another approach would be to have a special Word 2003 toolbar installed for your users that would have a "save to server" button which could (perhaps? I've never tried this, so I'm guessing here) use VBA code to send the current document to your server...
|
|
|
|
|
Hi,
does anyone know of any efficient way of catching the differences between two DataTables containing the same structure? What im trying to do is basically update my db table with any new, updated, deleted records from another DataTable. Is there any kind of function in the DataSet object that helps accomplish such a task?
ZiggY.
|
|
|
|
|
Hi
I wanna know how it s possible in C# to save a file on harddisk. I got a web site where u can download some files but the problem is that i want to let the user chose the place where to save it like when u right click on a pic then "Save As" and so u a got a browse folder that comes. If someone got an idea to do the same thing ...
ps: i already can download the file but i put the path and it s not really professional
THx a lot
See u
|
|
|
|
|
dumser1 wrote: it s not really professional
But it's simple without even writing a line of code .
Another option to implement the download functionality is to use the Content-Disposition[^] header field.
|
|
|
|
|
//to get the selected file name
string filename,MyPath;
MyPath = Server.MapPath("./doc/");
filename = txtFile.PostedFile.FileName;
string strFileName,strWO;
strFileName = txtFile.PostedFile.FileName;
string c = System.IO.Path.GetFileName(strFileName); // only the attched file name not its path
strWO = System.IO.Path.GetFileNameWithoutExtension(strFileName);
//to save the file in the directory folder
txtFile.PostedFile.SaveAs(MyPath + c);
string strStoredPath=MyPath + c;
Vishnu Vardhan rao
|
|
|
|
|
Hi,
How do we validate the date that is entered into a text box control in a form?Let me know all the posibilities existing.It is very imp for my project.As early as possible.It is a request.Thanks in advance.
Regards,
Uma
|
|
|
|
|
U can use regular expression control as regular expression control simply checks their characters to match the patttern you choose.
|
|
|
|
|
var today,visitedDate;
today = new Date()
visitedDate=document.frmAddPatient.txtDate.value;
if(!comparedates(visitedDate,today))
{
alert("Visited date cannot be greater than today");
return false;
}
function comparedates(dt1,dt2)
{
var date1,date2
date1 = new Date(dt1);
date2 = new Date(dt2);
if(date1 <= date2) return true;
else return false;
}
Vishnu
|
|
|
|
|
You can use the CompareValidator to validate a date-type value, you can see an old post[^] for more information.
|
|
|
|
|
it is quiet difficult to validate a date in aspx page. one method to validate date is
get the value of textbox and spit each value with '/' character then compare the 3 values. but if u are using any globalization it this validation will not work correctly,.
that is the date format for different countries are different and separation character also differ.
so if u r using any globalization, then get the currentculture first, decide the separator and then split, then compare.
for checking the date format u can use regular expression validator.
coolsweety
|
|
|
|