|
Thank u Atif..
have Published My site
|
|
|
|
|
Hi Friends,
I want to create online quiz in webapplication with output is generated in pie chart
can u help me??
regards
saravanan
|
|
|
|
|
Hi All,
I need to enter decimal value in a textbox but only one decimal.
For eg: 55.3 (Valid)
55.5.5 (Invalid)
It should not accept second decimal.
Also, I need to validate for dash(-) ie it should not accept minus sign.
I want to use javascript for this.
Please help...
Thanks in advance...
|
|
|
|
|
ASP.NET 2.0 wrote: I want to use javascript for this.
Get the text of textbox
and Iterate through it while doing that check (-) and digits after (.)
Accroding to that return bool or Show alert
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... "
|
|
|
|
|
Hi Varsha
Have look at this code i think you are looking for the same
<br />
function CheckText()<br />
{<br />
var returnValue=false;<br />
var text=document.getElementById("TextBox1").value;<br />
var temp=new Array();<br />
var temp1=new Array();<br />
<br />
for(var index=0;index<text.length;index++)<br />
{<br />
<br />
if(text.charAt(index)=='-')<br />
{<br />
alert("Text Containd Minus");<br />
returnValue=false;<br />
break;<br />
}<br />
<br />
}<br />
temp = text.split('.');<br />
<br />
if(temp!='undefined' && temp.length>2)<br />
{<br />
alert("Text Contains more than 1 decimal ");<br />
returnValue=false;<br />
}<br />
<br />
<br />
return returnValue;<br />
<br />
}<br />
You can check the dot in the loop itself but the complexity will increase
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... "
|
|
|
|
|
Hi Sandeep,
Thanks for the help this is what I was looking for.
Thanks again...
|
|
|
|
|
Hi
I want to change or pass the formula fields to crystal reports programatically. Can anyone help me through sample code?
Regards
Shahzad Aslam
Software Engineer
|
|
|
|
|
hi i am trying to make an gridview which lets user change the user infomation(from login provider table)
however whenever the update button is click this error appear:
Implicit conversion from data type sql_variant to uniqueidentifier is not allowed. Use the CONVERT function to run this query.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Implicit conversion from data type sql_variant to uniqueidentifier is not allowed. Use the CONVERT function to run this query.
any one know how to solve this?"
|
|
|
|
|
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.
|
|
|
|