|
Hi,
I have a problem with me.....like i have a wizard page this page rendered by parsing the xml and creating the controls in page there are required filed validators also there for textboxes my problem is that there is one link for logout...if the user clicks in the next button with out filling the required filed then there will be validation problem at that time user clicks logout button(one linkbutton) he can't go to logout he need to click 2 times for logging out...i made cause validation property as false..but still user needs to click 2 times...
can anybody help me...is there any javascript for removing all the validation or something..
alex.
|
|
|
|
|
not sure what you are trying to ask. But a button has a property called CausesValidation. If this is set to false the postback from the control will not make the page validate.
|
|
|
|
|
Malayil alex wrote: i made cause validation property as false
At run time or design time?
|
|
|
|
|
design time itself...but still needs 2 clicks to go logout
|
|
|
|
|
So when you click logout first time, Validation is happening, isn't it?
Please post you page load and link button coding.
|
|
|
|
|
My webpage is redirect into default error page when I fetching morethan 10Mb of file . Why this ?
Got ? Give...
|
|
|
|
|
Because you have a slow connection perhaps ? It sounds like it's timing out. Hard to say tho, based on the info you provide ( which is not much )
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
u have to use <httpRuntime executionTimeout="200" maxRequestLength="1024000" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/>
as u need modify maxRequestLength and other tags
|
|
|
|
|
i want how to use textchanged event
gayatri
Gayatri
|
|
|
|
|
Explain your ques for good solution
// Just double click the control and use it
|
|
|
|
|
sir my code
protected void txtClientCode_TextChanged(object sender, EventArgs e)
{
if (!IsPostBack)
{
btnTextChanged.Visible = true;
}
}
but its not run
what i forgot?
Gayatri
|
|
|
|
|
It will not(It will fire only in next post back).
You might use javascript.
|
|
|
|
|
give me a sample code pls
Gayatri
|
|
|
|
|
protected void TxtFilePath_TextChanged(object sender, EventArgs e)
{
ur code here
}
Sunny
|
|
|
|
|
hi Gayatri
you can use it by changing autopostback property to true.
wasim khan
|
|
|
|
|
i changed it but its not run
pls give me a some code
Gayatri
|
|
|
|
|
HI gayatri
u can use it when you change autopostback to true;
then in textchange event do some action like change the label text.
after that build your project. when you write some think inside your textbox and press tab u will see apost back and end your event will be fire
wasim khan
|
|
|
|
|
if you want to use via javascript use this
onkeydown="return validateInt(this.value)
and define a function name validateInt(str)
else on server side code you have to wait for postback
after this textchange event will accure
Sunny
|
|
|
|
|
Test_Changed event wont fire automatically
You need to set Autopostback to true
Alexei Rodriguez
|
|
|
|
|
Asp.net project I have registered a webService.
Using Add Web Reference i have created a proxy class in my asp.net application.
After creating the proxy class following files are added in my web project.
Reference.Map
MyService.disco
MyService.wsdl
AFter that I have deployed my asp.net application in several machines.
But if i did any modification in web services , it will not refelected in my asp.net clients. The proxy class are not updated when ever i modify the web services.
Is there is any way to modify the proxy class ?
How can solve this problem ?
|
|
|
|
|
Well, even if you did update it, what would it matter ? Any new methods you add, are not going to be called by your code anyhow, right ? So, unless you're deploying a whole new exe, it really doesn't matter at all.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
is there is way to update the proxy class automatically????
|
|
|
|
|
Sometimes I wonder if people even read my responses.
1 - no
2 - so what ? how can it matter ? Will your code magically call new methods ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
tnx. i understand your answer.
Is there any way to create dynmix proxy (using IProxyInvocationHandler ) ?
|
|
|
|
|
I am using Validators (IValidator ) to validate the data edited by users in a DetailsView. This is the workflow that I want:
1. User updates data
2. User presses save
3. System Saves data
4. Details View stays in edit mode
5. Validation controls display any broken rules.
I can do everything except show the validation messages. The validation message will be displayed if, in the ItemUpdating event of the DeatilsView, i cancel the DetailsViewUpdateEven by setting the property: DetailsViewUpdateEventArgs.Cancel = true .
This behaviour makes me think that once the DetailsView has been directed to save it does not show the Validation errors. (even if I do a Page.Validate() after the save has completed).
Does anyone have an ideas on how I can display the error messages even if I want to save the DetailsView ?
|
|
|
|