|
It works fine with numbers... but it does not accept decimal point.I want to have only one decimal point.ne solution for this
zari
|
|
|
|
|
In that script itself check (.) Ascii value also
Sathya
|
|
|
|
|
Yeah i have checked the ascii value of ".".Its working but how to restrict the user from entering more than one decimal point...
say it should allow 123.45678
n not 123.45.67 and also not 123..45
zari
|
|
|
|
|
Is it possible to do data data binding in Classic ASP. If so, are there any good examples on the web or any on the tip of your brains?
Any help is more than welcome
Thanks
|
|
|
|
|
Hi,
This is the way i usually bind data to asp controls
<%
'get friends
getFriendsSQL = "SELECT [ID], [Name] FROM Friends ORDER BY [Name] ASC"
set friendsRS = searchConn.execute(getFriendsSQL)
if not friendsRS.eof then
friendsCheck = friendsRS.getRows
friendsCount = ubound(friendsCheck,2)
end if
%>
<select name="friendSelect">
<option value="0">- -<i>Select Friend</i>- -</option>
<% if isArray(friendsCheck) then
for u = 0 to friendsCount
%>
<option value="<%= friendsCheck(0, u) %>"><%= friendsCheck(1, u) %></option>
<%
next
end if %>
</select>
Hope this helps.
|
|
|
|
|
Hi in my aspx page page load event i call one javascript method...,
In that page lot of postback evets are there...,
To reduce those postbacks, i used more than one updatepanel & its triggers...,
If i use updatepanel my javascript is not firing...,
How to call when ever my update panels are getting refresh before that the script want to excecute how to do that?,
Help me regarding that
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
New one wrote: If i use updatepanel my javascript is not firing...,
How to call when ever my update panels are getting refresh before that the script want to excecute how to do that?,
Go to Refres Upadte Panel using javascript
Regard
kHan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi i didnt ask using javascript updatepanel refresh...,
Actually my requirement is whenever my updatepanel trigger event firing, its have execute my javascript method then it have to update the updatepanel...,
It mean suppose
I have a textbox, In my javascript checked textbox wont be null...,
I have one grid in update panel...,
in that trigger, based on "button click" event its binding grid...,
before binding record in to grid it have to execute the textbox wont be null javascript then it have to be fire updatepanel trigger
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Hi
I am facing probelm with vista Operating Systam
it asking prompt for VBAct.cab file unknown publisher when ever accessing activex controls from site and i Checked with all security Options in IE but there is no possibility.
Same site working in Windows XP and 2000 Systems but vista Asking some prob.
if know pls reply me
thx
|
|
|
|
|
In Windows Vista, cab files are not used anymore.
You may try to use any driver file instead which is located in the special drives folder.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Good Afternoon All
I have a code that is supposed to send an e-mail
public void SendMail()
{
try
{
String strTo = "vuyiswam@tshwane.gov.za"; ;
String strFrom = "vuyiswamb@gmail.com";
String strSubject = "Hi vuyiswa";
String strbody = "I did it yahooo";
SmtpMail.SmtpServer = "smtp.gmail.com";
MailMessage mail = new MailMessage();
mail.To = strTo;
mail.From = strFrom;
mail.Subject = strSubject;
mail.Body = strbody;
SmtpMail.Send(mail);
}
catch (Exception e)
{
MessageBox.Show(e.Message);
}
}
when i run this i get the Error
Transport Failed to Connect to the Server
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Check this
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
How to select a part of image using C#
explain with example
|
|
|
|
|
Try doing it yourself first. If you are facing any issues, post the problem to the forum.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
is dis a answer?????????
|
|
|
|
|
yes!!! Of course!!! Didn't make out that are you asking any help or asking us to solve the problem like in university exams.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Hello
I try to make a web form, but I'm not free where i can put my control
so how can i solve this problem if some can help me this will greatly appreciated
Thanks in advance
Assaf
modified on Wednesday, June 18, 2008 7:36 AM
|
|
|
|
|
i have a treeview with one node. i want when i expanded i can create thats nodes. can i do this?
how can i define thats selected node
|
|
|
|
|
Hello Every Body
my data table
orders data table
orderID (int), subTotal(smallmoney), discount(smallmoney), Total(smallmoney), oStatus(bit)
I can bind gridview with orders data table, where oStatus is Ture then gridview oStatus checked box is ticked , if false then checked box is not ticked
but when I click gridview edit then I am getting this error below
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 93: lblTotal.Text = [String].Format("{0:C2}", +_ordersBLL.Total.ToString())
Line 94:
Line 95: cbsPayment.Checked = _ordersBLL.sPayment
Line 96: cbsFood.Checked = _ordersBLL.sFood
Line 97:
How can I solve this error
Thanks in advance
Sarfarj Ahmed
|
|
|
|
|
Sarfaraj Ahmed wrote: Line 95: cbsPayment.Checked = _ordersBLL.sPayment
Line 96: cbsFood.Checked = _ordersBLL.sFood
Seems like its not able to find the Checkboxes. Are you using TemplateField for the CheckBoxes? If yes, place a checkbox in the EditTemplate with respective names.
|
|
|
|
|
Sarfaraj Ahmed wrote: Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 93: lblTotal.Text = [String].Format("{0:C2}", +_ordersBLL.Total.ToString())
That mean your lblTotal or _ordersBLL.Total is null. Debug your code check which object returns null
regard
kHan
please don't forget to vote on the post that helped you.
|
|
|
|
|
I want to freeze the header in gridview. i have use both horizontal and vertical scroll bar. I am searching google. But it's not working in all the browsers(IE6,IE7,Firefox).
Sathya
|
|
|
|
|
It cannot be done using one control. However, it can be done using CSS and HTML. Probably this site will be useful. Check here
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
I tried this but it's not working properly in Firefox
Sathya
|
|
|
|
|
here I am using gridview with Hoverextender control..when I click the delete button I want to get gridview id value..for getting id value I am using javasript..but its always giving value 1.If anybody knows plz reply me.
&lt;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="IId" OnRowDataBound="GridView1_RowDataBound" EmptyDataText="You have deleted all records in Item list" ShowFooter="true" GridLines="none"&gt;
&lt;Columns&gt;
&lt;asp:TemplateField&gt;
&lt;HeaderTemplate&gt;
&lt;table style="width: 393px" cellpadding="0" cellspacing="0" border="0"&gt;
&lt;tr style="cursor: move;background-color:#F1AB44;border:solid 0px Gray;color:Black;padding-top:0px;"&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;/HeaderTemplate&gt;
&lt;ItemTemplate&gt;
&lt;table style="width: 393px"&gt;
&lt;tr style="cursor: move;background-color:#FFFFFF;border:solid 0px Gray;color:Black;padding-top:0px;"&gt;
&lt;td style="text-align:left;width: 393px" class="ntext"&gt;
&lt;asp:Panel ID="panel11" runat="server"&gt;&lt;strong style="width:300px;"&gt;&lt;%#FormatString(Eval("Iname").ToString(), 15)%&gt;&lt;/strong&gt;&lt;strong style="margin-left:300px"&gt;&lt;%#Eval("reason").ToString()%&gt;&lt;/strong&gt;
&lt;/asp:Panel&gt;
<b>&lt;ajaxToolkit:HoverMenuExtender ID="HoverMenuExtender1" runat="server" HoverCssClass="popupHover" PopupControlID="PopupMenu" TargetControlID="panel11" PopupPosition="Bottom"&gt; &lt;/ajaxToolkit:HoverMenuExtender&gt; </b>
&lt;asp:Panel ID="PopupMenu" runat="server" CssClass="popupMenu"&gt;
&lt;div&gt;
&lt;table style="width: 339px;border:solid 1px Black;"&gt;
&lt;tr&gt;
&lt;td colspan="2" style="text-align: center; height: 20px;"&gt;
&lt;asp:Panel ID="Panel3" runat="server" Style="cursor: move;background-color:#DDDDDD;border:solid 1px Gray;color:Black;padding-top:0px;height: 20px;" Width="389px" Height="20px"&gt;
&lt;span style="font-size: 12pt; color: chocolate; font-family: Verdana"&gt;&lt;strong&gt;&lt;%#Eval("Iname") %&gt;&lt;/strong&gt;&lt;/span&gt;
&lt;/asp:Panel&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="width: 146px; text-align: right;padding-left:3px;" rowspan="4"&gt;
&lt;asp:Image ID="Image1" runat="server" ImageUrl='&lt;%#Eval("IImage") %&gt;' Height="138px" Width="182px" /&gt;&lt;/td&gt;
&lt;td style="width: 219px; text-align: left;padding-left:10px;" rowspan="4" valign="top"&gt;
&lt;%#Eval("IDesc") %&gt;&lt;/td&gt;
&lt;tr&gt;
&lt;td style="text-align: right" colspan="2"&gt;&lt;%#Eval("id") %&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="2" style="text-align: center"&gt;
&lt;span style="font-size: 12pt; color: Black; font-family: Verdana"&gt;&lt;strong&gt;&lt;%#Eval("ICategory") %&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: center" colspan="2"&gt;
<b>&lt;input id="id" type="hidden" value='&lt;%#Eval("id") %&gt;' name="id"/&gt;</b>
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="center" style="text-align: center"&gt;
&lt;asp:Button ID="btnlock" Text="Lock" runat="server" OnClick="btnlock_Click" /&gt;
&lt;asp:Button ID="btnremove" Text="Remove" runat="server" OnClientClick="JavaScript:getid();" OnClick="btnremove_Click" /&gt;
&lt;/td&gt; &lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;&lt;/asp:Panel&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
&lt;/Columns&gt;
&lt;/asp:GridView&gt;
&lt;script&gt;
function getid()
{
//alert("getid");
<b>var getid = document.getElementById('id').value;</b>alert(getid);
}
&lt;/script&gt;
Rajendran.AL
|
|
|
|