|
sabby2006 wrote: the problem is that if one of the box is not having any thing and the other is having a value its not comparing the validator is not showing message
Off course It won't. If you are doing a comparision then you should provide the value, right?
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
If u want to compare two values
Then It should be exists.
So If u keep Both of Your Text box/inputs Mandatory Then YoU can Compare two values.
In advance U can use Require field validator and additionaly u can use customevalidator for entering only numarics.
And Change Ur Validator's Display Property To Dynamic.
Just Do IT™ [Information Technology]™ :->
|
|
|
|
|
Hi friends,
I am using DataList control which have checkbox control.when i click checkall button All checkbox are selected.this is my code
for (int i = 0; i < Dgr_hotel.Items.Count - 1; i++)
{
((CheckBox)Dgr_hotel.FindControl("chk_Box")).Checked = true;
}
but I am getting Error this Error
Object reference not set to an instance of an object.
How can I do ? pl help me
Thank& Regards
Vijay s
|
|
|
|
|
Try this
foreach(CheckBox c in Page.Form.Controls)
{
c.Checked = true;
}
|
|
|
|
|
Vijayitsb wrote: for (int i = 0; i < Dgr_hotel.Items.Count - 1; i++)
{
((CheckBox)Dgr_hotel.FindControl("chk_Box")).Checked = true;
}
Vijayitsb wrote: when i click checkall button All checkbox are selected.
How cum? In the above given code you are not navigating through the items of the DataList Control to find the CheckBox and mark it Checked. Most importantly the i value is not used anywhere in the loop. It will not serve your purpose in any way.
You can try the below code to do the same
foreach (DataListItem Items in DataList1.Items) {
((CheckBox)Items.FindControl("chkBox")).Checked = true;
}
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Hi all,
I am new to the web development. Presently i am working with mark entry system using web(.net) technology, where we need to enter the marks in data table. But while entering the marks, only tab is used to navigate in the cells. But i want to make use of arrow keys to navigate in the table.
ii) When i press enter key the page gets refreshed, instead that should move the cursor to the next cell.
Can any one help me out in finding the solution for the above...
Thanks in advance,
Rdv
rdv
|
|
|
|
|
Hello Everyone,
I've desinged a websitte in ASP.NET1.1 and it's desinging looking as i want but it is looking ugly in mozilla......
Mainly my Side Menu. Here i'm giving the CSS below if u find any probs. plz let me know.....
http://www.kiritbhaiji.com/Rough_New.aspx[^]
CSS
#Table1 TR.TR1 { PADDING-BOTTOM: 1px; PADDING-TOP: 1px; HEIGHT: 22px; TEXT-ALIGN: left }
#Table1 TR.TR1 TD A { PADDING-LEFT: 26px; FONT-WEIGHT: bold; FONT-SIZE: 8.5pt; BACKGROUND: url(Images/New4.jpg) #7eb6ff no-repeat center center; WIDTH: 100%; COLOR: white; PADDING-TOP: 4px; FONT-FAMILY: arial; HEIGHT: 21px; TEXT-DECORATION: none }
#Table1 TR.TR1 TD A:hover { BACKGROUND: url(Images/New5.jpg) #7eb6ff no-repeat center center; WIDTH: 100%; COLOR: #b4d34c }
|
|
|
|
|
HI
AS I Have Told U Earlier...
The Biggest Diffrence Is The Structure Of ur page :
Css Can make No more Diffrence In That Look
U have to just Follow Everywhere Wherever u want to use Table.
So Next Time Remember 2 Things
Don't Use Framework 1.1, U can use 2.0[Amazing] :->
Don't USe Tables or Panels Anywhere, Use Everywhere Where u need Table.
Believe This I have Faced This Earlier :
Learn From Other's Experience, That's The Way To Groth In Our Industry.
Hope This Help...
Just Do IT™ [Information Technology]™ :->
Don't Forget to Give Ratings
|
|
|
|
|
Hi to everyone.
Following is my doubt:
Working with asp.net and web references I often used a tip to configure on the fly my web reference and it's timeout, with two parameter in the web.config file, and making a little change to the auto-generated reference.cs file.
When starting with VS2005 and Asp.net 2.0 I was very happy that now this feature came in an automatic way.
But the reference.cs file are created in the paths:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\[$APP_NAME]\...\...\Sources_App_WebReferences\....
So, my question is: It's possibile to set the environment in such a way this file can be added automatically under my solution?
In this way tracking and making changes to the code will be more simple.
Thanks,
Aniel
|
|
|
|
|
I am developing web parts for an application. I have all the web part zones inside of an update panel, but this doesn't really exploit the capabilities of the update panels. Is there a possible way to have each webpart in its own update panel.
I really need a code example of how to do this.
Bye
|
|
|
|
|
Hi,
I am trying to launch a c# windows form from my aspx page....
Process ps = new Process();
ps.StartInfo.FileName = @"D:\abc.exe";
ps.StartInfo.WorkingDirectory = @"D:\";
ps.Start();
I have tried running this on windows xp with few modifications:
Modified processmodel section in machine.config..
IIS service to allow service to interact with desktop
it worked perfectly!! but when i tried the same on windows server 2003 it still runs in background....pls help in this regard.
|
|
|
|
|
Hi,
What error you are getting ?
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
it does not throw error....as the windows form i.e abc.exe is launched successfully..but UI does not come to desktop it runs in background
|
|
|
|
|
Hi,
1: just click on exe and start it. Is it working fine ?
2: if yes then just write below code. Put yr exe in c: drive.
Process prs = Process.Start("Exa path");
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
Hi,
if you are able to see the form when clicking directly in exe then there must be some problem of your web application from where you are running the Process.
Also check window form proepry if someone has changed it.
Chekc its opacity too.
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
cool83 wrote: I am trying to launch a c# windows form from my aspx page....
Why ? Do you think this will appear on the client machine ?
|
|
|
|
|
this will run only on the server machine...
UI comes to desktop on windows xp but it is not coming on 2003 server...
|
|
|
|
|
May be for security reasons 2003 server might not allow the user to run the exe file.
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
cool83 wrote: this will run only on the server machine...
Yes. So why do you want to start a windows application from ASP.NET ? Your question doesn't make any sense.
|
|
|
|
|
Ho wcan i retreive firstname, lastname, email, department for active users from ldap using asp.net 2.0
thanks
|
|
|
|
|
Sorry but could you explain what is ldap ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
ok, from active directory.
|
|
|
|
|
playing with bugs ) wrote: Sorry but could you explain what is ldap ?
LDAP (Light weight directory access protocol) is a protocol for accessing directory services. Basically it is used by companies to keep employee information. Most of the big companies having LDAP servers. So if we are writing an application which works on companies intranet, instead of adding all the users to the application database, we can use LDAP server and authenticate the details.
|
|
|
|
|
Thanks Navneeth now got the proper direction to get right info
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
samerh wrote: Ho wcan i retreive firstname, lastname, email, department for active users from ldap using asp.net 2.0
thanks
Have you searched[^] ?
|
|
|
|