|
My requirement is that i need only one textbox out of four to be validated, it can be any textbox.
If i use required field validator for all textbox, it validates all four textboxes which is not my need.
It is sufficient to have value in any of these four
|
|
|
|
|
Take Foyr textbox on the page...
make one function "txtnull"
and copy the code...
------------------------------------------------------------------
protected void Button1_Click(object sender, EventArgs e)
{
txtnull();
if (n == 4)
{
Response.Write("alert('Atleast one')");
return;
}
}
int n = 0;
private void txtnull()
{
if (TextBox1.Text == "")
{
n++;
}
if (TextBox2.Text == "")
{
n++;
}
if (TextBox3.Text == "")
{
n++;
}
if (TextBox4.Text == "")
{
n++;
}
}
------------------------------------------------------------------
|
|
|
|
|
I think it is not possible for requiredfield validator to validate multiple controls.
Try with custom validator.
|
|
|
|
|
|
As sugested, use customvalidator and in the js function write your code to check your requirement.It can't be done through requiredfieldvalidator
Cheers!!
Brij
|
|
|
|
|
hi friends
<td style="background: url(http://localhost/images/main.jpg) no-repeat top left; width: 684px;>
In my html mail template,i have used above code for backround image,my problem is the backround image not display in gmail,yahoo,hotmail..etc
how can solve this?
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
saravanan05 wrote: td style="background: url(http://localhost/images/main.jpg)
The URL specified here would cause the browser to look for main.jpg on the client machine since localhost refers to 127.0.0.1 which is the self IP for all machines.
Change localhost to your Server.DomainName , if it is exposed over the internet or else host your images on a external host and refer it from there.
HTH!
|
|
|
|
|
hi thanks for reply
Already i tried in live server what you have mentioned(http://192.158.74.120/images/main.jpg)..but it is also not working...
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
Are you able to view the images from outside your home/work network? Did you check if Gmail is not just preventing the image display??
|
|
|
|
|
yes,i can see from outside home
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
In that case I think it is just Gmail blocking the images. You should have an option near the email header that says "Display Images", click it to get your images.
|
|
|
|
|
Hi,
I am having two files with extenstion of .rar, how to restore these backup’s of databases in sqlserver 2000.
Explain what steps i need to follow to restore it.
Thanks in Advance.
|
|
|
|
|
.rar is a compressed file format - kind of like a zip file.
You will probably find there are database backup files (or detached database files) inside the .rar files.
|
|
|
|
|
Extract files from rar then open sqlserver 2000 create a database
Right click on created data base,Tasks restore database from device, browse to that back up file you need to overwrite the database thats it your database is restored.
|
|
|
|
|
Only files with extension .rar can be restored in sql server 2000.
You should decompress these files firstly,and then restore them.
modified 27-May-14 4:55am.
|
|
|
|
|
I'm new to ASP.net (mildly experienced with Visual Studio -C#,Visual Basic) and am trying to simply publish my web app to ftp://ftp.tripod.com...here's a snapshot of my Output screen:
Connecting to ftp://ftp.tripod.com/...
Publishing folder /...
Publishing folder App_Data...
Unable to add folder 'My Project' to the Web site
. Cannot create folder "My Project".
Publishing folder bin...
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
Thanks for everyone's time.
--Kyle
|
|
|
|
|
kdgab26 wrote: . Cannot create folder "My Project".
You need to look for more detailed error messages. Cannot create folder is too generic.
Best wishes,
Navaneeth
|
|
|
|
|
Thanks for your response! Where can I find these detailed error messages? The output I posted is all it shows on my output window, and there are no error messages in my Error List.
Thanks again.
|
|
|
|
|
Hi All,
May be I shouldnt put this question here, but still request you all to forgive me for this time.
My question is "Can I do a BizTalk project development using Windows XP Profe'al SP1. Alteast can I load BizTalk software in Windows XP Profe'al SP1 environment."
I want to practice BizTalk Server. I have Win XP OS. Please help me. Any link also sufficient.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
Hi....
I have used masterpage and have iframe on it and set Src = "Rotator.aspx".
Now my masterpage and Rotator.aspx are on same directory (just under the root).
My rest of the pages uses this masterpage and they are under 'root/user/' directory.
Pages which are in the root directory will load iframe with "rotator.aspx" but pages which are in the 'root/user/' directory gives "page not found" in iframe.
so how would I set the src property properly..
thanx in advance.
By:
Hemant Thaker
|
|
|
|
|
Try setting the source property for the IFrame as Src = "~/Rotator.aspx"
HTH!
|
|
|
|
|
|
Hello Guys
I've a datatable whose values need to be maintained across postbacks. (Just single page, not across multiple pages). This datatable is not read only. I mean to say some data can be changed based on user selection during partial postbacks and need to be maintained till the final submit. I declared the datatable as static and could retain the values across partial postbacks. But the problem is that I've always thought that in multiuser environment only one copy of the static variable is created and shared across the users. But my datatable behaves differently.
I opened the page in a browser and pressed Ctrl+N for new window. When I work on both windows, the datatable is not clashed. I mean - changes done in one window is not reflected in the other window. This is the behaviour I want exactly. One user's change should not affect other user. This is a reporting page and I store the user selections in the datatable before the final submit. Based on the options in the datatable, the report is created.
Though I achieve the desired functionality, I am worried whether what I am doing is right. Is it true that a static variable is shared acorss users or not??? Any inputs?
I am using VWD 2008 Express edition and c#.
Kit
|
|
|
|
|
By my understanding, it depends on the container that you use. If the static variable is contained in a instantiable class then the variable is not shared across users. If it is contained in a static class then it is shared across users. This is just my understanding and there is every possibility that I might be wrong.
A safer and a much cleaner approach to this problem would be to put the datatable in the page's viewstate. This way the datatable along with the changes is available as long as the page is alive and you get peace of mind!
HTH!
|
|
|
|
|
Hi everybody,
I´m trying to deal with a little problem using Certificates, I have a ASP.NET Website (VB) with the traditional User/Password login. Now I want use SmartCards attached to the Client-Machines. I saw few ASP.NET websites poping up some Windows Dialog for Certificate Selection (NOT a Windows Chalenge Login) it´s just a list of certificates inside the SmartCard CHIP.
Does anyone know how to ask for that Dialog using server side?
HouseofDev
Angelo Bestetti
|
|
|
|