|
hi..i want to show price like 234560 in 2,34,560 this format how can i???
|
|
|
|
|
Hi friend,
This is the syntax to convert it to currency format in VB.net.
FormatCurrency(Expression[,NumDigitsAfterDecimal [,IncludeLeadingDigit [,UseParensForNegativeNumbers [,GroupDigits]]]])
|
|
|
|
|
thanks for reply..
but i want it to be done in aps.net(c#)
|
|
|
|
|
use converters to change the syntax
|
|
|
|
|
hi friend,
Try this
string st=String.Format("{0:c}","control or string name"); assign this to control or string.
|
|
|
|
|
while sending the string which contains the html tags iam getting an error of unterminated string constant how to solve this problem
|
|
|
|
|
hi friend,
Need more information of where u r using it,also try to post the code snippet where u r getting the errors.
|
|
|
|
|
i mean in grid view row databound iam adding an attribute to get javascript fired when that link button is clicked.for this javascript function iam sending the string that contains the javascript.then only iam getting this error stating unterminated string constant error it is coming .
|
|
|
|
|
Check for apostrophes inside the HTML in your code.
i hope this is your problem. becoz i dont have your code to see otherwise we can easily find out what is the problem?
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
if apostrophes is there how to handle while passing to the javascript
|
|
|
|
|
Hi,
We had written a code in ASP in which we are doing HTTP POST using an HTTP URL. This was done locally. We were sending some credit card deatils.
When we deployed the code on server, we tried using HTTP POST using HTTPS URL. There is already a certificate issued for this.
The HTTTP POST using https is not working. I want to know if it is a certificate issue or do i have to do some changes in the code if i try to use HTTP POST on HTTPS URL?
The HTTP POST code is as follows:
Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
objHTTP.Open "POST", strURL, False
Plz help.
Regards,
Riz
|
|
|
|
|
Hi,
In my web application am using Samrtnavigation in web.config file
<pages smartNavigation="true">
And when i try to set Focus for my text box, like
TextBox1.Focus() it's not working. I've tried javascript and other stuffs.
Can any one here to help? Pls
Regards n Thks
Sam.M
|
|
|
|
|
Hi friend,
use this code if u r using javascript or the other if u r using VB.net.
Page.RegisterClientScriptBlock("focus", _
"document.<id-of-your-control>.focus();")
or (VB.NET)
Page.RegisterClientScriptBlock("focus", _
"" & _
"document.<id-of-your-control>.focus();" & _
"</id-of-your-control> ")
|
|
|
|
|
Sorry friend. This is not working. I've tried. Do u've anyother solution for this?
Regards n Thks
Sam.M
|
|
|
|
|
Try this code:
[VB.NET]
Page.RegisterStartupScript("SetFocus", _
"<script>document.getElementById('" & TextBox1.ClientID & _
"').focus();</script>")
[C#]
Page.RegisterStartupScript("SetFocus", "<script>document.getElementById('" + TextBox1.ClientID + "').focus();</script>");
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Hi all,
Can you help me in paging the datalist below,i tried many ways but i couldn't.Please help me out with the code.
<asp:DataList ID="MyList" RepeatDirection="Horizontal" RepeatColumns="2" runat="server" Width="263px" Height="1px" Font-Size="XX-Small">
<SeparatorStyle Wrap="False" HorizontalAlign="Center" BorderWidth="10px" BorderStyle="None" Width="10px"
BackColor="White"></SeparatorStyle>
<ItemTemplate>
<table style="text-transform: capitalize; color: #cccc99; font-family: 'Courier New'; font-variant: normal" border="1" cellpadding="0" cellspacing="0" bordercolor="#cccc99">
<tr>
<td >
<table >
<tr><td>
<table >
<tr>
<td rowspan="6" style="width: 3px">
<a href="#" runat="server" id="a1"> <img onclick="javascript:window.open('details.aspx?mid=<%# DataBinder.Eval(Container, "DataItem.MemberID") %>','_blank','menubar=no,scrollbars=yes,toolbar=no,resizable=yes,status=no,location=yes');" border="0" src="<%# RetnImage(DataBinder.Eval(Container,"DataItem.Photo1").ToString()) %>" width="100" height="120" id="imguser"> </a></td>
<td style="width: 3px; height: 23px">
Name:<asp:Label ID="txtname" Text='<%#DataBinder.Eval(Container,"DataItem.Name")%>' runat="server" ></asp:Label></td>
</tr>
<tr>
<td style="width: 3px; height: 21px">
Age:<asp:Label ID="txtage" runat="server" Text='<%#DataBinder.Eval(Container,"DataItem.Age")%>'></asp:Label></td>
</tr>
<tr>
<td style="width: 3px">
Qualification:<asp:Label ID="txtqlfn" runat="server" Text='<%#DataBinder.Eval(Container,"DataItem.HighestDegree")%>'></asp:Label></td>
</tr>
<tr>
<td style="width: 3px">
Denomination:<asp:Label ID="txtdenomination" runat="server" Text='<%#DataBinder.Eval(Container,"DataItem.Denomination")%>'></asp:Label></td>
</tr>
<tr>
<td style="width: 3px">
MaritalStatus:<asp:Label ID="txtmstatus" runat="server" Text='<%#DataBinder.Eval(Container,"DataItem.MaritalStatus")%>'></asp:Label></td>
</tr> </table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
Thanks in Advance
|
|
|
|
|
Hi friend,
Try the contents given in this URL,a example for the repeater control is demonstrated here u hv to use a datalist instead of a repeater control.pls try this site.
To the site
|
|
|
|
|
Hi
I have upload the image in asp.net
when i upload the image that is going to be stored in database and also store the filename in the Images folder
of my project folder... so i have bind the images to the datalist when i move the mouse over the images binded on datalist it shud enlarge the images
whether using javascript or codebehind..
Let anyone give the solution pls..
Thanks i advance
modified on Wednesday, October 15, 2008 10:43 PM
|
|
|
|
|
|
Hello folks,
I was using a table layout to display controls on my page in such a way that the page will be divided into four sections as shown below:
table
tr
td 1 /td
td 2 /td
/tr/
tr
td 3 /td
td 4 /td
/tr
table
and another row and column etc.
For some reason, I'm running into issues with formatting and apparently there's a lot of space between every row (note that I'm not setting any explicit properties on tr elements)
Anyways, i wanna remove this table layout and use div and span elements instead.
The scenario is that I have a few controls (such as buttons, labels etc) that are encapsulated in a panel.
I have another set of controls (labels, buttons, grid view etc) that are also encapsulated in a panel.
I want these two panels side by side. So I'm putting both of these in a div and setting the display property to inline. This doesn't put the second panel to the right of the first panel.
Can someone please show me what other properties that needs to be set to accopmplish such behavior.
Tina
|
|
|
|
|
I'm no expert with layout design, but why dont you put two divs with float left and float right?
Intelligence is almost useless for those who have nothing else!
Email: caiokf@gmail.com
|
|
|
|
|
How does one go about changing the style of the Browse button in the FileDownload control?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
|
How can i send email in asp.net by Language vb like invitation friend
to site?
|
|
|
|
|
Its in C#, but you could easily realize how to do it in vb.
MailMessage yourEmail = new MailMessage(FROM_EMAIL_ADDRESS, TO_EMAIL_ADDRESS);
yourEmail.Subject = "Your Email Subject";
SmtpClient smtpServer = new SmtpClient(SMTP_SERVER);
smtpServer.Credentials = new NetworkCredential(SMTP_USER, SMTP_PASSWORD);
smtpServer.Send(yourEmail);
Intelligence is almost useless for those who have nothing else!
Email: caiokf@gmail.com
|
|
|
|