|
OK...
i did a sample code (vb script) for what u want but u need to convert it to C#
first add a panel and add the dynamic text boxes to that panel
then do this
<br />
Dim ctl As Control<br />
For Each ctl In Me.Panel1.Controls<br />
If TypeOf ctl Is TextBox Then<br />
<br />
'Whatever code u like <br />
Dim str As String<br />
str = CType(ctl, TextBox).Text()<br />
lblTest.Text &= str<br />
<br />
End If<br />
Next ctl<br />
Guess this should solve ur problem
Best Regards
3ala2
|
|
|
|
|
Hi just3ala2,
Thanks
I tried. My C# coding is :
foreach (Control ctl in this.PlaceHolder1.Controls)
{
string strr = ctl.
Response.Write(strr);
}
In the bold part there is no specific (.Text) to get its value. But there is .ID propety which gives its name. Any idea reg. this.
Regards,
Prya
|
|
|
|
|
can't u use the typeOf keyword in C#?
Best Regards
3ala2
|
|
|
|
|
Dear Friends,
How can i drag and drop files in asp.net for uploading?. like yahoo photo upload.
Please help me....
Haridas.R
harisofttech@gmail.com
harisofttech@hotmail.com (online)
harizeenet@yahoo.co.in(online)
"Achievement is not a destination, its a journey "
|
|
|
|
|
I don't know yahoo upload. But considering how the web works and all, I would say that they are using Java there...
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
You need to do this with javascript.....basically, (and without giving the game away too much ) you need to manipulate the object's .style.left / .style.top properties (so the usual way to do it is to use a DIV with POSITION:Absolute)...
You'll also need to hook up some onmousedown, onmouseup handlers, and an onmousemove handler...
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi,
hw r u all, i have a prblm in datagrid,i have three dataset from different queries and assign to one datagrid.the problm is that whn i assing a one dataset to the grid the data in the grid is not shown properly.
i mean the first dataset data is come in the first row,secnd dataset data is come in the second row and the third dataset data is come in the third row.(all dataset have one row record)
Bt i wnt to show the whole data in one row.
ds.merge(ds1)
ds.merge(ds2)
datagrid.datasource=ds
databind()
waiting
|
|
|
|
|
I think you have to join your tables. So that you can use only one dataset.
Hope this will help you.
Regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|
|
i would not be able to join the database bcz some sort of my database constraint ,if possible tell me the solution programmatically.plz do the neeedfully.
|
|
|
|
|
Have a look at the following code:-
Dim strconn As String = "Server=.;uid=sa;pwd=sa;database=Northwind"
Dim mysql As String = "select categoryid,categoryname from categories"
Dim myconn As New SqlConnection(strconn)
Dim ds As DataSet = New DataSet
Dim cmd As SqlDataAdapter = New SqlDataAdapter(mysql, myconn)
cmd.Fill(ds, "Categories")
Dim cmd2 As SqlDataAdapter = New SqlDataAdapter("select * from products", myconn)
cmd2.Fill(ds, "products")
ds.Relations.Add("myrelation", ds.Tables("Categories").Columns("CategoryId"), ds.Tables("products").Columns("CategoryId"))
dlcategories.DataSource = ds.Tables("Categories").DefaultView
DataBind()
Hope this will help you.
Regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|
|
Here my problem is ,i need to display a message through messagabox,not by using simpl label,how to do in asp.net,give me with some example coe
thanks in advance
kissy
|
|
|
|
|
There is no implementation for the message box in asp.net like vb.net desktop application
instead u need to use the "window.open" for opening a new window
"window.alert" for messages and "window.confirm" for checking yes/no messges
Hope this would help
Best Regards
3ala2
|
|
|
|
|
i am not getting you question but i think you can display message box bye following code
msgbox("Error occurs",MsgBoxStyle.Information,"Title")
Regards,
DJ Rock
|
|
|
|
|
You can't use a MessageBox in ASP.NET, as that would show up on the server, and the server side of a web application does not have a user interface. Use a Javascript alert:
window.alert('The message.');
---
b { font-weight: normal; }
|
|
|
|
|
You can not do this in asp.net.
You have to use Javascript to do display an alert message.
and the function is->Alert("Message")
Regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|
|
hi
if u r working with asp.net2005 thn u hav to do
add reference to system.windows.forms
at code behind using following :
using system.windows.forms;
and use
<br />
MessageBox.Show("You have been must login to see Demo", "Error", MessageBoxButtons.OK,MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);
and more.................
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
hello friends,
i am trying to add nodes dynamically to treeview but i am getting the procedure.i have tried using xml also.so anybody please help me,its very urgent.
thanking you
prasanna
prasanna
|
|
|
|
|
|
hi friend,
thank you i have already added the nodes dynamically.
you tell me how to add this treeview in a datagrid?
prasanna
|
|
|
|
|
Hi,
In my website, I need to give a popdown menu to the user for various options.
Suppose, the menu options ar as follows :-
Home View Records Reports Exit
1 - Batch 3 - Error
2 - Summary 4 - Valid
5 - Dropped
Where Home and Exit are independent links with no sub menus whereas View Records has sub menu 1 & 2 and Reports has sub menu 3,4 & 5
How do I create this using the new ASP.NET 2.0 menu control. I also need to implement role based security in this. For eg. if a particular menu item is not accessible to a particular role, then either that menu item should be disabled or preferably not rendered at all.
I will be using this control for the 1st time, so pls guide me in how to proceed.
Thanks and best regards
Omkar
-- modified at 1:57 Monday 13th November, 2006
|
|
|
|
|
how to edit and update an datalist in asp.net in c#
|
|
|
|
|
|
Every single one is loaded!
|
|
|
|
|
page init and page load
Best Regards
3ala2
|
|
|
|
|
what are the methods are loaded when page is loaded
vinaykumar
|
|
|
|