|
Try the following code.
<%@ Page Language="VB" Debug="False" %>
Sub Page_Load(Sender As Object, E As EventArgs)
dim count as integer
For count = 1 To 20
Dim lbRolenamenew = New Label()
lbRolenamenew.Visible = true
lbRolenamenew.Text = "My name is - " & count
PlaceHolder1.Controls.Add(lbRolenamenew)
Next
End Sub
Regards,
Satips.
|
|
|
|
|
It,s fine but how we set its location
deepak chandra
|
|
|
|
|
No MAN. it is possible.
put a place holder on aspx page where u want to show label.
add this code in page load event.
Label lblU = new Label();
lblU.Text = "deepak chandra";
PlaceHolder1.Controls.Add(lblU);
check it
Thanks & Regards,
SAMir Nigam,
Software Developer,
STPL, Lucknow, India.
|
|
|
|
|
The same thing i said it before.
Regards,
Satips.
|
|
|
|
|
Hi,
can anyone helpme..
i want to store my ASP session values in ASP.NET Seesion
& i want assign these values in Global.asax file.
What is the BEST way to use ASP Session values in all my ASPX.page using ASp.net
i dont want use my ASP seesion in all pages.
pls suggest me..
give some sample code..
thanks & regards,
bhaskar.t
T&R,
bhaskar
|
|
|
|
|
Bhaskar,
your question is not so depictive.
Gautham
|
|
|
|
|
I have a drop down list in the *.aspx page
On the *.cs page , I have populated the dropdownlist(using droplist.items.add("name");)
I want to display the contents of my list in ascending order ..
Please help
Thanx in advance
|
|
|
|
|
What do you mean by this ? I don't think that it's the best answer
|
|
|
|
|
Hi,
There is no additional sorting property like datagrid...you have to write a code to sort drop down list...suppose you are binding dropdown from database,you can use orderby property..
thanks
kali
|
|
|
|
|
dear arpit, you first create a data table & item on it. then sort it by creating default view & after that set datascource property of your dropdown list to your default view.
Thanks & Regards,
SAMir Nigam,
Software Developer,
STPL, Lucknow, India.
|
|
|
|
|
how to create cron jobs in asp.net if there is any pdf plz foward link plz help me
|
|
|
|
|
|
hi
i am unable to understand ur answer plz give me clearly so that i can easily work on it.
it is very important.
|
|
|
|
|
Did you click the link which i provided in that badgrs has answered your answer did you notice that which you posted yesterday.
Regards,
Satips.
|
|
|
|
|
hi,
Can anyone help me 2 get this project with source code..?
The project uses asp.net with vb.net.
i searched a lot bt could nt find it..
so plz help me
arvind
|
|
|
|
|
Did you tried with our best friend.
Regards,
Satips.
|
|
|
|
|
sorry friend but i don know them..
so plz tell me..
i need the screenshots of this project.
so plz help me..
|
|
|
|
|
Hi,
Start writing the code. If any error occurs, post it here. We will resolve.
Thanks
Meeram395
|
|
|
|
|
Hi! in my aspx page there is a table ...
in second row, there is a button, clicking on that a javascript function is called with aprropiate parameter. the javascript function is below ...
function Toggle(ID)
{
if(ID.style.display == 'block')
ID.style.display = 'none';
else if(ID.style.display == 'none')
ID.style.display = 'block';
}
now script is working fine in IE & Mozilla. but problem is that in Mozilla, all the TDs in upper row are displayed in new line while in IE all the TDs in upper row are displayed in single row. how i solved this problem in Mozilla?
Thanks & Regards,
SAMir Nigam,
Software Developer,
STPL, Lucknow, India.
|
|
|
|
|
This will Happen and differ from Browser. So please write a Another CSS file for the Mozilla Browser and Call that class also as the optional one ie., if the browser opens in Mozilla that class should be called otherwise the Default class of css should be called if it is opened in IE or safari.
Regards,
Satips.
|
|
|
|
|
Please give me an example.
Thanks & Regards,
SAMir Nigam,
Software Developer,
STPL, Lucknow, India.
|
|
|
|
|
Hi,
In my page I have a textbox and a link besides it. Also one DIV is there in which I have put a usercontrol and DIV is not visible at start and I have not made it runat="server". UserControl contains one search button and a textbox.
on the click on link I am making DIV visible by using javascript. when it appears users can do search by clicking on the Search button in the usercontrol.
The problem is when user click on the search button to perform search the DIV disappears. I want DIV to be visible even after any server side event fires.
Can any one suggest me workaround this or any new idea to implement this functionality?
The following is the HTML and javascript which I have written to make the div visible.
<a href="javascript:showDiv();">search</a>
function showDiv()
{
document.getElementById("divSearch").style.visibility = "visible";
}
Thank you all in advance.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hi Chetan Ranpariya,
Check this peace of code
<script language="javascript">
function CallMe()
{
var obj = document.getElementById("hndDisplayValue")
if (obj.value !="")
{
DivShow.style.display=obj.value
}
else
{
DivShow.style.display="";
}
}
function ShowMe()
{
var StrValue ="none";
if( DivShow.style.display !="")
{
StrValue ="";
}
obj = document.getElementById("hndDisplayValue")
obj.value = StrValue;
DivShow.style.display = StrValue;
}
</script>
</HEAD>
<body onload="CallMe();">
<form id="form1" runat="server">
<a href="#" onclick="ShowMe();return false;">Click</a>
<div style='display:none' id="DivShow" >This</div>
<asp:Button ID="btnButton" text="Button" runat="server"/>
<input type="hidden" Id="hndDisplayValue" value="" runat="server" />
</form>
</BODY>
|
|
|
|
|
I am trying to insert my COM Component into the toolbox of ASP.NET page using choose Items... but it is not embeddeding into the toolbox. sometimes it is visible in the tool box but in DISABLEd state.
How can I put my com component into the toolbox and make it Enable?
thnx in advance for suggestions
poojaaa
poojaaa
|
|
|
|
|
MSDN. Hope this Article will help you.
Regards,
Satips.
|
|
|
|