|
Thanks Jinal
But after conversion and saving in particular folder i am not able to replace the text and it saves the same content in different files generated.
|
|
|
|
|
int a = Convert.ToInt32(txtQuantityOrdered.Text);
int b = Convert.ToInt32(txtQuantityReceived.Text);
if (b > a)
{
}
I have two Text Boxes and I want to compare that if txtQuantityReceived is greater than txtQuantityOrdered then an error message must show. But as you know that in Windows Forms there are MessageBoxes but no such thing in the ASP.NET, so how must I tackle my problem? I just want to display a small message box or something like that, to show that "Quantity Entered Is Invalid."
Also one more thing to tell, i.e., I tried to use the validation control called the CompareValidator, but as you know that this control is used only for comparing the equalities, but not the inequalities. So I failed to to solve up my problem.
My issue here is regarding the inequality, i.e, if txtQuantityReceived is greater than txtQuantityOrdered then an error message must be displayed.
What can be the possible solution for it?
|
|
|
|
|
You can use javascript for the same.
Do your validation in javascript by passing value and
give alert box for displaying error message.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
|
When i set the textbox value to "" but it still take the what ever value set by server side previously
|
|
|
|
|
How you are setting the value? Is that textbox disabled?
|
|
|
|
|
Can you please elaborate more on your question ?
or provide the code for the same, so that it is
better to understand what you are missing ?
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Could the page be reloading after you set the text to ""? If so the value may be being reset to the original value if that was happening during the pageload event.
|
|
|
|
|
How grouping in rdlc done?please say the steps for grouping in rdlc in web application(c#)
|
|
|
|
|
Have a look at what I found by little googling[^].
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
i want to get text box value in my javascript function but my textbox visible=flase so i am not getting value in my function.
Help ME
|
|
|
|
|
Instead of setting Visible property set Style = "display:none;"
Arun Jacob
My Technical Blog : Code.NET
modified on Tuesday, July 13, 2010 6:37 AM
|
|
|
|
|
|
Javascript will not identify hidden controls.
You need to do following to achieve the same.
1. Keep textbox visible.
2. Define following css class.
<style type="text/css">
.hidden
{
display:none;
}
</style>
3. Assign your textbox the class as follow.
<asp:TextBox ID="txtName" runat="server" CssClass="hidden"></asp:TextBox>
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
|
for your attention when you set Visible="false" in server side it will not render in client side. if you want to check take View Page Source
Raju.M
|
|
|
|
|
Experts,
I have created one windows application and deployed it in some 500 machines in my company. The problem is, the applicaiton is updated weekely atlest. I cannot reinstall the .exe once again in all the 500 machines. Any solution for this.........
|
|
|
|
|
Please do not repost the question in different forum.
You question here[^] is already get attention and answered.
If you have not gone through the guidelines for posting question then
please go through with it here[^].
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
I searched through the forum but couldn't find anything that solved my problem.
I have visual studio 2008 installed with .NET 3.5 SP1. In an asp.net application I am trying to write an Inline Javascript function.
<script language ="javascript" type ="text/javascript" >
document.write('Hello world');
</script>
the intellisens under the script tag doesn't seem to work. Like when I type document . nothing comes..
am I missing something or visual studion doesn't support intellisense for JavaScript ?
Thanks
|
|
|
|
|
Look what I have found by little googling[^].
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Hi,
thanks for the google link but I couldn't find anything useful there ? can you point me to more appropriate link or something ?
|
|
|
|
|
You need to do two things.
1. First you need to verify that whether javascript intellisense is enable in your Visual Studio IDE
or not??
To do that just go to
Tools->Options->Text Editor->JScript->General section
and see it's "Statement Completion" Block.
Verify that options "Auto list members" and "Parameter information" are checked.
2. Second is prefer to put your javascript in separate ".js" files. Sometimes it will take time to show
you intellisense, when you are using javascript as inline code.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Hi,
Thanks Jinal for the reply.. I finally found the solution and solution was pretty weird..
I upgraded to Visual Studio 2008 SP1 and now the intellisense in Visual Studio works.
Thanks all for looking
|
|
|
|
|
Great.
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
hello,
I'm novice in design pattern and want to know how to implement MVC Architecture in my new asp.net 3.5 application
any one plz let me know any simple tutorial or site link from where i'm able to start.
|
|
|
|