|
Hi,
This is the situation...Now i have 2 requiredfield validators for 2 texboxes, one save button and one cancel button. When i click save button the 2 validators must be raised. When i click the cancel only one validator for one textbox should be raised. Plz help me, how is this possible....
thanx,
yamini
|
|
|
|
|
For this u have to create 3 validators. Apply 2 validators for save button and 1 validator for cancel button.
Check the Validation Group property in Save button and its validators, Apply the same name for both.
Apply the different Validation Group name for cancel button.
Shahzad Aslam
Software Engineer
|
|
|
|
|
|
Validation group will solve your problem ...check out this ..
<asp:TextBox ID="TextBox1" Runat="server" ValidationGroup="First"></asp:TextBox>
<asp:TextBox ID="TextBox2" Runat="server" ValidationGroup="First"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" Runat="server" ValidationGroup="First"
ErrorMessage="TextBox1 should not be blank" ControlToValidate="TextBox1">
</asp:RequiredFieldValidator>
<asp:Button ID="Submit1" Runat="server" ValidationGroup="First" Text="Submit 1" />
<asp:TextBox ID="TextBox3" Runat="server" ValidationGroup="Second"></asp:TextBox>
<asp:TextBox ID="TextBox4" Runat="server" ValidationGroup="Second"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" Runat="server" ErrorMessage=" TextBox3 should not be blank"
ControlToValidate="TextBox3" ValidationGroup="Second">
</asp:RequiredFieldValidator>
<asp:Button ID="Submit2" Runat="server" ValidationGroup="Second" Text="Submit 2" />
|
|
|
|
|
Hi All
I am in a situation like.....i need transformation from aspx page to asp page. Means i have a dropdownlist i n my aspx page. when i select one option i need to transfer from aspx page to asp page. Is it possible to transfer? i kept both asp and aspx pages in same page.Bt after execution i am getting an error like
......
* Error while accessing data.
Error executing child request for Excess_Premium_Refund.asp.
System.Web
Plz give some idea how to manage the thing if anyone have idea
Suresh.R
|
|
|
|
|
sooreeagt wrote: i kept both asp and aspx pages in same page
How ?
sooreeagt wrote: Is it possible to transfer?
Redirect the values as querystring to ASP page
|
|
|
|
|
Thank you for your reply
But i should not use querystring here ...
Suresh.R
|
|
|
|
|
Ifyou cannot use QueryStrings (for security reasons?) then you should POST the data to your asp page.
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
please tell me
how to add image from oracle database into asp.net using vb as code behind.
and also tell me how to edit it..
thanks
|
|
|
|
|
sanaja wrote: i just want to add new row in datagrid in every new row button click.
I assume that you are using Datatable to bind your grid. Then add a datarow to the datatable and bind the grid again with the datatable. That will add a new row.
sanaja wrote: when i click save button then data is saved in database
Take items from grid using a loop and pass that values to query
|
|
|
|
|
n thts how i was willing to suggest u. but got late. ne ways. its a gud suggestion.
|
|
|
|
|
Thanks
|
|
|
|
|
Dear Gurus
I just want to make a chat programme like yahoo in asp.net.
but i dont have a any idea to start it.
plz suggest some URL from where i can get help regarding this.
|
|
|
|
|
hi i am trying to make a website where by only the loged in user whose role is administrator can add new user to the website..
however i have trouble assigning the roles.. to the new user..
as now i have 2 option which i dont know how to inmpltement help me if you can pls:
1#
let the user choice his/her role when registoring at the reistration page.
(if its even possible)
2#
create a page which let the administrator sets the role for the users.
so please could any one pls giv me advice, samples anything which can help me achieve my objective
thx in advance
|
|
|
|
|
Hi
The first one is not a good idea.
The administrator should give role for each new user.
When the administrator add new user, give an option for role selection.
If U Have Interest, U Can...
Sherin Iranimose
|
|
|
|
|
hi i am trying to set my smtp mail setting so that when i register with my webpage it would send an email to the user.
currently i am haunted by this error
<br />
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond <br />
i refer to this webpage for the server: [^]
is there any additional stuff to configure besides:
<smtp>
<network host="mail.flashcom.net">
?
as i only set this so far..
|
|
|
|
|
Hope this[^] stuff will help you in solving the SMTP Problem.
Regards,
Satips.
|
|
|
|
|
My problem is that if I use a normal URL and select open document the document cannot be saved to the webfolder transparently. Now if i open the webfolder from the open option in the file menu and check the open as webfolder option i can open the document and its saved without any problems.
Is there a way to link to documents specifying to be openned the same method as the webfolder?
|
|
|
|
|
Hello All!
I'm trying to grab a value from a details view, to put in a text box.
Here is my attempt
DetailsView1.DataItem(5) = Session("Test")<br />
Session("Test") = testtext.Text
I have this at my page load event. The Details view gets filled on the Page load as well. Maybe I need to creat a session afterwards?
TIA!
Rudy
|
|
|
|
|
Hey!
I got it! Just had the it backwards.
Session("Test") = DetailsView1.DataItem(5)
testtext.Text = Session("Test")
Genuis;P
Thanks!!!
Rudy
|
|
|
|
|
hi i have been working on a asp.net website project recently
now i haved put it inside a wwwroot and tryed to accessed it from my web browser for testing
could any one list out the steps to put the files inside the root or do i just dump everything in>??
my attempt when i dump everything:
ended up in an error in the web browser
:doh:The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
A name was started with an invalid character. Error processing resource 'http://localhost/testing/Default.aspx'. Line 1, P...
<%@ Page Language="C#" AutoEventWireup="true"
-^
|
|
|
|
|
Hi
what frame work u r using 1.1 or 2.
Once the same problem stop my website.
The fault was I'm created my website in ASP.net2.0.
But IIS was not registered to 2.0.
So I run following command
<br />
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i<br />
It solved my problem.
If U Have Interest, U Can...
Sherin Iranimose
|
|
|
|
|
a different error appear after i tried the command though
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 22: </controls>
Line 23: </pages>
Line 24: <membership defaultProvider="MyMembershipProvider">
Line 25: <providers>
Line 26: <add name="MyMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="HASDBConnectionString1" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
Source File: c:\inetpub\wwwroot\testing\web.config Line: 24
|
|
|
|
|
Hi ,
I'm submiting my web site to google search engine.
I use the URL rewrite tech.
But, when I login to the google website management, I found that all the googlebot send me many error messages:
Such as:
http://www.msproject.cn/Article/codehighlight_freetextbox.aspx[^]
500 (Internal server error) [?]
I'm sure the web can be access in your web browser, but why googlebot return 500 error?
|
|
|
|
|
I heard URL rewritting can make the pages inaccessible from google bot some times. But first time I am hearing url rewritting making 500 (Internal server Error ). One suggestion that I have is, check your website in some text browsers something like LYNX. Google spiders will be seeing your page something like LYNX does. So check that LYNX can see your page correctly. Could you tell me what method you used for URL rewritting ?
For more information try these links also
|
|
|
|