|
|
Hi,
I cteated dynamic item templated in gridviw. I wat to validate from javascript . like
Col1 - col2 - Col3
50 - 60 - 40
Here i want to validate the col2 shold not leads Col1 if it so i shold produce pop up from client side...
Can any one help me...
regards
sekannak
kannak
|
|
|
|
|
Place the data in data controls within columns and place compare validators to validate the data between the two controls. Use an error summary control and set the prompt type as message box.
|
|
|
|
|
Hi,
Before start doing your logic. Can u give idea of my logic please.
Actually the grid contains two/more rows and 3/more coloumns which is dependes upon the selection changes from the Dropdownlist control.
Second one is User can enter value on the text box controls of grid view , which all textbox are dynamically created item template not static item template.
Problem:
I want to validate Second & Third text box should always less then the First Text box.
I was trying to take the Textbox id then i compared the current values less the the first textbox values or not? like such a way from Javascript ,
ctl00_ctl00_ctl01_ContentPlaceHolder1_grdSal_ctl02_txt0
so this is the id of the text box but i cannot find the values of the text box on the Onblur Event. Is the any other event to find out the text box values except Onblur,onkeypress...
can u plz ...
kannak
|
|
|
|
|
I'm not sure if I got your requirement right, so I'm rephrasing it here -
* You have a datagrid with item template
* The controls in the item template are not defined in the design time? - I don't see why you would need to dynamically add items to your item template. Even if it is needed, just place it in at design time and hide it on the server runtime. Confirm how you are placing the controls on the item template.
* The values that you wish to check are loaded based on some user selection? - All 3 values are loaded or does the user enter any values? confirm
* You wish to validate that textbox1's value is always more than textbox2 and textbox3's value.
All that you need to do is put a compare validator along with textbox2 and textbox3 and validate the value against textbox1 using the control to validate and control to compare properties.
|
|
|
|
|
i m gettin this exception while makin a connection
|
|
|
|
|
|
rajatarora wrote: i m gettin this exception while makin a connection
What is the exception message ?
You should give problem explanation of your problem so that you can get the exact answer. While you are asking question like "I am getting this exception while making a connection" - Now as a end user persprective thing about it. What connection ? What exception ?
So, please be specific.
Thanks !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
How can i count number of browsers running on my system by using .net application.
regards,
basha'
|
|
|
|
|
On the client computer? AFAIK answer should be no.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Are you talking about Client or Server ?
IF you are talking about Your own machine, you can just use System.Diagnostics.Process.GetProcesses and point out all the application exe's running on the system.
If you are talking about Clients who logs in to your system, you cant do that.
|
|
|
|
|
in my system only...if u have any samples code plz post it.
Regards,
Basha.
|
|
|
|
|
inayat basha wrote: in my system only
So that makes this a wrong forum.
There is a method GetProcesses in the class Process . That will give you list of all the processes running on your computer. From them, you will need to filter out the processes related to the browsers. For eg. chrome.exe for chrome browser.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
|
Hi All,
I have a cube created using SSAS 2005.
1- I need to create Roles related to this cube using ASP.net. Any help or suggestions.
2- Is it possible to develop some code that opens the window that pops up when creating a Role from SSAS and the manipulation is done through this window instead of code.
Thanks
|
|
|
|
|
Hi,
I have a plain template coloum in a gridview, when user click on the template coloum a dropdown list should display in the particular cell with dynamically binded values.
How can we do so?
Thanks
YPKI
|
|
|
|
|
You can put a label in the template column , and onclick event of the label show the dropdown
|
|
|
|
|
You add EditTemplate Item with that template field.
there you can add a drop down and bind the values
in grid view Edit event
|
|
|
|
|
Hi,
Is it possible to bind all the columns in a data table to a dropdownlist? ex, I have the below table, I want to bind all the columns except ProductID column to a dropdownlist and when user select product from the list I need to get the productID.Can any one suggest me.. If not possible in dropdown is there any alternative method to meet my requirement? am using vs2008 asp.net and C#
ProductID Product Name Version Platform
111 Madeira 2.0 windows
222 Amazon 1.1 windows
333 Madeira3 2.1 Lynux
|
|
|
|
|
Loop the datatable and Append All the values expect productId into string
.Use this string as DataTextField anf ProductId as DataValueField
|
|
|
|
|
thanks for your suggestion. I have hundreds of products in the table. Is there any possibility to have scroll bar in the dropdonwnlist.
|
|
|
|
|
When you click on the arow in the drop down list , it will be shows a list of items with scroll bar. am i right?
|
|
|
|
|
|
Then why should you need a scroll bar in dropdownlist?
|
|
|
|
|
when the dropdownlist gets too many items in it the user cannot select the bottom ones (the bottom goes below the screen area). How do i put the scrollbar in the dropdownlist?
|
|
|
|