|
Dear All,
I had placed a Placeholder control in my .aspx page and adding button controls into it dynamically from data base based on user and assigning click event to that control but after performing the button click the controls inside the Place holder were not displaying.Plz provide the necessary.
*************
foreach (IAmDealActionMappings obj in AMFacade.GetDealActionMapping("RMC", "NEW"))
{
Button B=new Button();
B.ID = obj.ActionId.ToString();
B.Text = obj.ActionDisplayCode.ToString();
B.CssClass = "button";
B.EnableViewState = true;
if (obj.ActionDisplayCode.Trim().ToString() == "Save")
B.Click += new EventHandler(SaveButton_Click);
buttonPlaceHolder.Controls.Add(B);
}
protected void SaveButton_Click(object sender, EventArgs e)
{
}
*************
Regards,
Pavan.
|
|
|
|
|
sreepavan150385 wrote: oreach (IAmDealActionMappings obj in AMFacade.GetDealActionMapping("RMC", "NEW"))
{
Button B=new Button();
B.ID = obj.ActionId.ToString();
B.Text = obj.ActionDisplayCode.ToString();
B.CssClass = "button";
B.EnableViewState = true;
If you are creating any dynamic control on/after Page_Load, they will not be maintain the view state. You need to create all the control before page load. As View_State and Post_Back Data, load before page load. You can create your dynamic control in Page_Preinit Event.
|
|
|
|
|
Hi all,
I am here to thank all of you who are replying to the messages posting here and helping the developers,
with your guidance i have created a new website
www.freeaddsonline.com
please have a look and give me feed back, and if you want you can use it also
and even your friends.
Thanks Once again for code project peoples help, waiting for your feed backs
|
|
|
|
|
Essentially a disguised ad.
The site looks like it was built in 1985. Did you bother to look at any modern sites to see what they look like and try to emulate them? I could go on but best I don't. Go hire a proper web designer.Tychotics: take us back to the moon
"Life, for ever dying to be born afresh, for ever young and eager, will presently stand upon this earth as upon a footstool, and stretch out its realm amidst the stars."
H. G. Wells
|
|
|
|
|
Giving a thanks and showing what i did with their help to the peoples who helped doesn't mean an ad.
It depends on the way you take.
|
|
|
|
|
For learning purpose, fine. But if you are thinking to use it professionally, it would need a lot of changes. Browsing through the websites which offer similar services should probably give an idea. You can also consider an idea of speaking with the professional web designer.
|
|
|
|
|
how to save data in a text file using sqlserver2005 and using asp.net with c#
|
|
|
|
|
developerit wrote: how to save data in a text file using sqlserver2005 and using asp.net with c#
If you want to save data in Text File, then what is the use of SQL Server ?
|
|
|
|
|
can you give the simple example to save data in text file
|
|
|
|
|
|
Thanks for code project team efforts,really it helps
|
|
|
|
|
from one sqlsever2000 i have two data base employeedb and companydb .how to create the connection string for this using asp.net with c#
and compare the values from two tables
|
|
|
|
|
Perhaps another way of addressing this would be to have a view or stored procedure in one database that gathers the data from the other so that you don't need 2 connection strings.Tychotics: take us back to the moon
"Life, for ever dying to be born afresh, for ever young and eager, will presently stand upon this earth as upon a footstool, and stretch out its realm amidst the stars."
H. G. Wells
|
|
|
|
|
can you give me the example how to read the table values from two connection string
using views or stored procedure
|
|
|
|
|
this works in sql server 2005! i haven't try in 2000!
SELECT * FROM Employeedb.dbo.TableOfEmployeedbDB INNER JOIN
Companydb.dbo.TableOfCompanydbDB ON
Employeedb.dbo.TableOfEmployeedbDB.IdField =
Companydb.dbo.TableOfCompanydbDB.IdField
You can access the dababase tables! even from another databases!
you only have to say to sql server where are you getting the data.
It's that why you need to specify the db in every Table sentence
good luck
|
|
|
|
|
Thanks to all code project team ...it really helps..
|
|
|
|
|
i am developing chat control in that when i click on online users then it open a chat panel only for single user .
My query is when i click next user then it should show next panel
just like when i click 10 users then it should open ten new panel for that ?
i want
(Note : i use linkbutton to show online users )modified on Monday, March 1, 2010 7:27 AM
|
|
|
|
|
|
|
I want to change format text in textarea.
FRANCE
Merhaba,arkadaslar
POLOGNE
Selam vatandaslar..
>/textarea>
I want just "FRANCE" bold or change fore color.
|
|
|
|
|
take a look
http://www.webmasterworld.com/forum21/10080.htm
|
|
|
|
|
I tried, but it doesn't work.
|
|
|
|
|
Do you just want to chang "FRANCE"?
If so, I think you must change your textarea to html editor.
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 8:48am.
|
|
|
|
|
You can use Substring to intercept “France” out,and then give it the style.
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 8:47am.
|
|
|
|
|
<style type="text/css">
textarea.special {
font-family:arial;
font-size:14px;
}
textarea.special:first-line {
font-weight: bold;
}
</style>
Like rakeshs312, this method is nice
|
|
|
|