|
Loop for each control and collect IDs of TextBox control type.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
ok .you can iterate through this.Controls and then check if its typeof(TextBox) and do as per requirements.
|
|
|
|
|
Pawan Kiran wrote: It is a part of my Project Requirement..
Its quite understandable the its your requirement. But, what you are going to do with storing the Textbox ID ? Are they dynamic or Static ?
|
|
|
|
|
Pawan Kiran wrote: My TL Want's me to do this.
I did not think dirty, I swear!
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi,
I am making a web form in asp.net?/c#;
I want to know how to know the co ordinates; the x, y coordinates ( in pixels) of a control and also if possible what is the length and breadth( in pixels) of my form.
thanks
|
|
|
|
|
The x,y coordinates of a control are up to you, you can place an element anywhere you'd like.
Browser window size[^]
And, honestly, you could have answered these questions yourself with very little research.
only two letters away from being an asset
|
|
|
|
|
hi i have a link button...,
the link button have 2 modalpopupextender...,
based on the session value i like to view a modalpopupextender...,
but its showing two modal popup extender at a time...,
how to solve this...,
this is my piece code:
<asp:linkbutton id="LinkButton2" runat="server" onclick="LinkButton2_Click">Post Comment
<cc1:modalpopupextender id="ModalPopupExtender1" runat="server" targetcontrolid="LinkButton2"
="" popupcontrolid="divPopUp1" backgroundcssclass="popUpStyle" popupdraghandlecontrolid="panelDragHandle1" dropshadow="false">
<cc1:modalpopupextender id="ModalPopupExtender2" runat="server" targetcontrolid="LinkButton2"
="" popupcontrolid="divPopUp2" backgroundcssclass="popUpStyle" popupdraghandlecontrolid="panelDragHandle2" dropshadow="false">
code bolck:
protected void LinkButton2_Click(object sender, EventArgs e)
{
if (Session["uname"] == null)
{
ModalPopupExtender1.Show();
}
else
{
ModalPopupExtender2.Show();
}
}
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
Member 3879881 wrote: protected void LinkButton2_Click(object sender, EventArgs e)
{
if (Session["uname"] == null)
{
ModalPopupExtender1.Show();
}
else
{
ModalPopupExtender2.Show();
}
}
Try To Hide other POPUP Extender alternately.
void LinkButton2_Click(object sender, EventArgs e)
{
if (Session["uname"] == null)
{
ModalPopupExtender1.Show();
ModalPopupExtender2.Hide();
}
else
{
ModalPopupExtender2.Show();
ModalPopupExtender1.Hide();
}
Any Problem with this?
Sundeep Ganiga
When the only tool you have is a hammer, everything looks like a nail.
Come Forth Yourself to Click "Good Answer" for any expected solution.
Let us Support our C Project Programmers who provide solutions here.
|
|
|
|
|
What I have done in the past is to use a dummy control as the TargetControlID and then set the display property of that control to 'None'. The problem you're having is that LinkButton2 activates both ModalPopupExtenders on the client, whereas what you really want to do is show one of them from the server. Placing a hidden dummy control on your form will mean that the ModalPopupExtenders never get activated from the client.
|
|
|
|
|
Dear All,
I am creating a shopping site. With googling I came up with this idea:
1.I will display products within an iframe in a datalist with paging option.
2. All Items will have a button, when you clicked it, item will be selected.
3. There will be a datagrid in another iframe page, the products that have been selected will be put in a basket there.
4. and the confirmation of the purchase will be done at the iframe collecting the basket. Now what I would need to know are.
Now the questions:
1. Is "what I have come up with" a common practice, or is there a better way?
2. How will I relay the data from one iframe to another within the same parent page?
3. How will the parent page be redirected when the purchase confirmation is done.
Thanks alot.
E.E.
|
|
|
|
|
I don't understand why you want to use iframes ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I do not want all page to be reloaded when a button clicked...
Only the necessary part will be reloaded.
I though Ajax, but the datalist paging requires whole page reload.
|
|
|
|
|
If you use properly UpdatePanel then it wont load all page.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
there is a panel which holds page numbers in it. The page numbers are filled during page-pre_init so it is reloaded.
here is the html code
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Aşçılar</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div id="centrallarge">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<h1><img src="images\digersayfa.jpg" alt="photo" /></h1>
<div id="central" style="Width:900px">
<div id="leftsub" style="Width:250px; height:200px">
<h1 style="height:200px">
<asp:Image ID="Image1" runat="server" Height="130px" Width="130px"
BorderColor="White" BorderStyle="None" BorderWidth="10px" />
</h1>
<p>
<asp:Label ID="lblAd" runat="server" Text="" Font-Names="Tahoma" Font-Size="Small" ForeColor="Red" ></asp:Label>
<br />
<asp:Label ID="lblAdres" runat="server" Text="" Font-Names="Tahoma" Font-Size="Small" ForeColor="Red"></asp:Label>
</p>
</div>
<div id="rightsub" style="Width:600px; font-family:Tahoma; font-size:small; color:Red;" >
<asp:ImageButton ID="ImageButton1" ImageUrl="images\icons\delete.png" runat="server"/> Seçili Menüleri Sil
<br style="height:2px"/>
<img src="images\menu.gif" alt="photo" style="margin-top:5px"/>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:DataList ID="dlListe" runat="server" RepeatColumns="4"
RepeatDirection="Horizontal" ItemStyle-Font-Names="Tahoma"
ItemStyle-Font-Size="Small" ForeColor="Red"
ItemStyle-HorizontalAlign="Left" Height="450px" ShowFooter="true"
>
<ItemTemplate>
<asp:Image ID="Image1" ImageUrl= <%#DataBinder.Eval(Container.DataItem, "Menu_Image")%> runat="server"
Height="70px" Width="100px" BorderColor="White" BorderWidth="5px" />
<br />
<asp:CheckBox ID="CheckBox1" runat="server" />
<%# DataBinder.Eval(Container.DataItem, "Menu_Adi")%>
<br /> Fiyat:
<%# DataBinder.Eval(Container.DataItem, "Fiyat")%> TL
</ItemTemplate>
<AlternatingItemStyle HorizontalAlign="Left"/>
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Font-Names="Tahoma"></ItemStyle>
</asp:DataList>
<asp:Panel ID="pnlBottom" runat="server"> </asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<div id="footersub">
<ul>
<li><a href="Default.aspx">Anasayfa</a></li>
</ul>
</div>
</div>
</div>
</form>
</body>
</html>
|
|
|
|
|
|
hai every body !!!
i got a small doubt . how can i insert dummy data into gridview manually not bind from database.
try and try untill reach success..
|
|
|
|
|
With code. Why do you want to do that ?
Any collection is a valid data source for a grid view.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Actually i m doing designing part i need to show my form with data to my boss
try and try untill reach success..
|
|
|
|
|
Your best bet is to put dummy data in your DB, so you can show him the actual working code, not write code just for the sake of showing him a demo
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
the thing is i m not creating my db at this moment .. just i need look and field ..
try and try untill reach success..
|
|
|
|
|
Then create a struct, and a list of that struct, and bind to that
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
ok thanks. dude.
try and try untill reach success..
|
|
|
|
|
Actually the thing is . ineed dummy data bcos of i took one gridview and i declare boundfield names and i put autogenerationcolunm =False , so when i m going compile in browser the gridview not showns rest of thiing ll be appears.
try and try untill reach success..
|
|
|
|
|
Add BoundFields on GridView.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
Create DataTable with rows and Column in code behind.
then Bind it to GridView.
|
|
|
|