|
Please check the following code which sets left and top hence you can see the code 'relocates' an existing div to 0,0 location of the browser.
<script language="javascript" type="text/javascript">
function relocate()
{
var id=arguments[0];
var divObj =document.getElementById(id);
divObj.style.top = "0px";
divObj.style.left = "0px";
}
<form id="form1" runat="server">
<div style="background-color:Red;top:500px; left:500px; position:fixed;" id="div1" onclick="javascript:relocate(this.id)">sample</div>
</form>
Hope it helps you,
Thanks,
Arindam D Tewary
|
|
|
|
|
iam using asp.net with c#
iam using template fields in gridview so i have to compare the user entered quantity must be lesthan or equal to current quantity
<asp:TemplateField HeaderText="CurrentQTY" SortExpression="CurrentQTY">
<EditItemTemplate>
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("CurrentQTY") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Bind("CurrentQTY") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField
<asp:TemplateField HeaderText="Quantity" >
<ItemTemplate ><asp:TextBox ID="txtqty" runat="server" AutoPostBack="true" OnTextChanged="CalculateValues"></asp:TextBox><<asp:CompareValidator ID="cmp" runat="server" ControlToCompare="TextBox3" ControlToValidate="txtqty" Type="Double" Operator="LessThanEqual" ErrorMessage="Quantity Shouldless than CurrentQuantity">*</asp:CompareValidator><cc1:ValidatorCalloutExtender ID="vvcomp" runat="server" TargetControlID="cmp"></cc1:ValidatorCalloutExtender>/ItemTemplate>
</asp:TemplateField>
but it is giving error that TextBox3 is not found by compare validator
can you give example which helps me
|
|
|
|
|
I have done this thing, but give me some time may be I can prepare a tutorial for you.
Tej Aj,
http://opexsolution.com/forum/
|
|
|
|
|
Follow the below link. This tutorial would be usefull to u.
http://opexsolution.com/2010/04/using-validators-in-gridview-control-–-part-i/
If any querries then get back to me.
|
|
|
|
|
hi, i have use this tutorial but still same problem .please check where iam going wrong
<asp:TemplateField HeaderText="CurrentQTY" SortExpression="CurrentQTY">
<EditItemTemplate>
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox3"
ControlToValidate="txtqty" ErrorMessage="value should be less than or equal to Current Quantity"
Operator="LessThanEqual" Style="z-index: 100; left: 16px; position: absolute;
top: 256px" Type="Double"></asp:CompareValidator>
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("CurrentQTY") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Bind("CurrentQTY") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Quantity" >
<ItemTemplate ><asp:TextBox ID="txtqty" runat="server" AutoPostBack="true" OnTextChanged="CalculateValues"></asp:TextBox></ItemTemplate>
</asp:TemplateField>
|
|
|
|
|
check post at
http://opexsolution.com/forum/viewtopic.php?f=15&t=16
|
|
|
|
|
iam using asp.net with c#,
iam displaying the data in gridview when i clicks the button the mail should goes with gridview data.
can you give me aexample which helps me
|
|
|
|
|
|
sorry ,didnt got the clear idea with this limk
|
|
|
|
|
Do you want inline html mail or as an attachment?
|
|
|
|
|
|
|
Check this post
http://opexsolution.com/forum/viewtopic.php?f=15&t=15#p43
|
|
|
|
|
Hi all,
Please help me with this. I want to remove html tags, but I got a problem in this specific case
the source string has something like
<a onmouseover='This is text that has less than and greater than characters <> ... ' >I want to extract text here only</a>
How to get the text that is between open/close <a> tags <a>...</a>?
Thank you very much
|
|
|
|
|
if you are asking about javascript,
anchorId.innerHTML
|
|
|
|
|
No, I am asking in code behind (C# is my prefer).
Thanks.
|
|
|
|
|
As you have mentioned that you have a Srource String which contans the whole string that you have pasted.
In that case, I would assume that you have this problem in code behind. Please check whether this can be done in your case. ( remember inside the string greate than and less than should be converted to equivalent valid xml char .)
String sXml = "<a onmouseover='This is text that has less than and greater than characters &gt;&lt; ... ' >I want to extract text here only</a>";
XmlDocument xObj = new XmlDocument();
xObj.LoadXml(sXml);
MessageBox.Show(xObj.DocumentElement.ChildNodes[0].InnerText);
Thanks,
Arindam D Tewary
|
|
|
|
|
Thanks, but I want to use regular expression instead of using xmlDocument. have any other idea?
|
|
|
|
|
Hello everybody,
anyone can help me on this?
Thanks so much
|
|
|
|
|
Hi All
I have to assigned a work to develop an application that can fetch the data from Online server if Net is working otherwise fetch the data from local server.
Actually this is a booking site customer wants the detail of those clients who are booked online this can easily be done but he say if the net is not working then i connect with the local server and it get the data(Offline) of clients from that position when the internet gone.for this he wants an exe.He gave me an example ok google offline.but I'm Confused.could u guide me.
Any Help would be appreciated
Amit Gautam
|
|
|
|
|
|
Dear , How can i send an email using SMPT through a proxy ip :
for example : i want to send an email from yahoo to hotmail , but i want to send it
using proxy ip not my ip so when i check the sent message in hotmail i will see the proxy ip
not my ip.i am using this code , but how should i set the proxy ip ?Please any help ...
MailMessage mm = new MailMessage();
mm.From = new MailAddress(txtfrom.Text);
mm.To.Add(new MailAddress("mymail@hotmail.com"));
mm.Subject = "hi" + i.ToString();
mm.Body = "hi" + i.ToString();
mm.IsBodyHtml = false;
SmtpClient sc = new SmtpClient();
sc.Host = "in.smtp.mail.yahoo.com";
sc.Port = 587;
sc.Credentials = new NetworkCredential
(txtuser.Text, txtpass.Text);
//sc.UseDefaultCredentials = true;
//sc.EnableSsl = true;
sc.DeliveryMethod = SmtpDeliveryMethod.Network;
sc.Send(mm);
|
|
|
|
|
Hello, This is Vikash Gohil.
I don't know whether this is the correct forum for my Query.
My Query is I want to print barcodes in Crystal Reports and use the report in ASP.net application.
Using report in ASP.net I have the Idea, but how to print Barcodes in the report.
Is there any in-Built functionality in Crystal Reports for Printing Barcodes or Do I have to use any 3rd party tools.
Please anyone who has done this before or can provide me some idea, would be of great help.
Awaiting for a reply soon.
Thanks in Advance.
|
|
|
|
|
Hi All,
When i compile my page i get erroe as mention below.
" The compiler failed with error code -1073741819 "
Plz can any one help me to overcome this problem
|
|
|
|
|
Dear all,
I want to print blank space between two string like following using
For Each arrStr As String In strSplitArr
If (arrStr <>"") Then
Response.Write(arrStr)
'here i want print with space like following
Response.Write(arrStr+" ")
End If
Next
With response.write how to print blank space.How to use a tab space in response.write?
If any bode help is apreaciable.
kissy
|
|
|
|