|
i am having textboxes inside gridview. My textboxes are coming when we edit icon when label gets converted into textboxes. The required field validators are working but when i put something then also it is not working which is incorrect how can we do ? ???
|
|
|
|
|
I'm using asp.net and c#.
I have disabled the controls on the form using javascript on onclientclick of the Button.
But they again are activated when postback occurs when I return "true" because of the same buttonclick.
When I return "false" then only disabled controls are maintained.
But I also want to run the code at codebehind on button
click of the same button to disaplay a popup on some condition. but don't want other controls on the page to be activated.till that poup is not closed.
so how to achieve disabling of the other controls on client side and displaying popup on server side.
Please guide.
Thank you.
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
I don't really follow this ( how can you have a popup on the client side ), but you can use hidden controls to store values that change on the client side, and retrieve them on the server side to work out what HTML/script to render ( so after postback the control state does not change ).
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 )
|
|
|
|
|
Thank you for reply
I don't want to display Popup using javascript but using c#.
It means the code to display popup I'm using will run on server side not on client side.
For this I want postback to be happened on button click event. This is possible if I use "return true;" in my javascript. But when there is postback all the disabled (that I made using javascript on clientclick event of the same button ) controls become enabled.
So how to maintain the state of disability of controls even after postback of the page.
This the problem for me .
Might be clear to you now. Please suggest solution.
Thank you.
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
yogita charhate wrote: I don't want to display Popup using javascript but using c#.
It means the code to display popup I'm using will run on server side not on client side.
You can't do that. A popup has to be opened on the client side.
yogita charhate wrote: But when there is postback all the disabled (that I made using javascript on clientclick event of the same button ) controls become enabled.
That's because a new page is loaded. The controls that you did disable doesn't exist any more. If you want any controls in the new page to be disabled, you have to disable them.
---
single minded; short sighted; long gone;
|
|
|
|
|
thank you Guffa for reply.
My problem is solved by calling the function (to disable controls) on pageload .
But before calling that function I checked one flag's value which is set on server side when buttonclick event occure and some conditionds are fulfilled.
have a nice day!!
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
i want to display an empty row in which in datatable i have added empty strings. Now i have a command field in which there is imagebutton . how to
hide that.
|
|
|
|
|
u can use visibility=false of that command field.
Bytheway I didn't understand y do u want to hide it.
Bajrang Singh
Using .net 2.0 (VS2005)
|
|
|
|
|
Hi
My requirement is as follows.
I have a web app which is deployed at the head quarters. My clients are branch offices. My database too is deployed centrally. The branch offices are having separate databases deployed at branch offices. When the end user do a transaction using the centrally deployed web app, I want to store the transaction in the local server also. Is this possible by using an activeX control in the web app or Is there any other better solution?
Thanks in advance
wilson
|
|
|
|
|
Hi,
I'm searching for a good web reporting tool, a tool which provide dynamic object access at runtime, master detail, grouping, cross tabs, and all the features of the crystal reports ... but not the crystal report because its license is very expensive, and not the sql server reporting service because I want it to work with any datasource like Access, MySql and Sql server of course ... can anyone helps me in this??
Thank you in advance
bye
Mahmoud Tahoon
|
|
|
|
|
i want the user to enter the amount ie in rupees like 49.60 .
I want to have the regular expression for this in regualar expression validators .Cn anyone send me the expression.
thanks
|
|
|
|
|
\d+\.\d{2}
---
single minded; short sighted; long gone;
|
|
|
|
|
thanks .but sorry to add it that it can be numeric too
for example 23 rs
or 23.80 rs .
if you can pls club this too.
|
|
|
|
|
Make the decimal part optional:
\d+(\.\d{2})?
---
single minded; short sighted; long gone;
|
|
|
|
|
|
How do you use it, and exactly what do you enter in the field?
---
single minded; short sighted; long gone;
|
|
|
|
|
when i enter integer like 23 it displays error.
|
|
|
|
|
Guffa wrote: How do you use it
---
single minded; short sighted; long gone;
|
|
|
|
|
hi RITU,
have you ever try out this,
\d\d\.\d{2}
regards,
koolprasad2003
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
no not working i need numeric or decimal together. your expreesion is not giving even decimal .
|
|
|
|
|
|
Hi
Guys i have two drop down lists on web page, on the basis of selectione made on first dropdownlist , second drop down list will be populted from Data base ,i want to do with out post back, any one has idea how to do it, please proovide me any code sample, reply ASAP , thankx in advance.
|
|
|
|
|
|
Hi,
I saved images in the data table that bind to the repeater.
I want to change the design the of the data table i.e.
serires of images are generated. one image and then after some space or td and then next image.
also images are displayed at the center.
Thanks,
|
|
|
|
|
Just edit the template of the repeater.
(This answer seems so very obvious, so it might not be what you were after. If you want a different answer, you should clarify your question.)
---
single minded; short sighted; long gone;
|
|
|
|