|
Ofcourse I can live with it. It's just that when I use a login control, the username and password boxes doesnt line up.
|
|
|
|
|
you can always fix the width of UserName text Box and Password Text box in pixel using style or css,
even in your login control.
|
|
|
|
|
Hi,
This is from Chandrakanth. i have one problem. I am using Mater Page .
In that Master Page i have content Place Holder.
That alignment of Content place holder is located under the Div Tag, align as a right side and position is vertical.
My Question is when i click on the Left side of the div tag, that div tag sholud expand to lefthand side with width of 100% by showing all contenet.
Initiallt it will show only few items positined as a vertical.
can any one tell me how to go for that?
|
|
|
|
|
You need to write an onclick event of that div and you need to set top and left property to the nes pixel location. ( I guess this top and left property comes in style property collection of the control as display comes under style property collection )
Thanks,
Arindam D Tewary
|
|
|
|
|
hi,
Thanks for the reply.
Can you please give me some example for function.
Thanks and Regardds
Chandrakanth
|
|
|
|
|
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
|
|
|
|