|
Write a common event handler like private void linkmonth_Click(object sender, EventArgs e)..
Now attach this eventhandler to the created links at runtime...
link1.Click += new EventHandler(linkmonth_Click);
link2.Click += new EventHandler(linkmonth_Click);
link3.Click += new EventHandler(linkmonth_Click);
......and so on...
Now in the event handler linkmonth_click, based on the sender object load the appropriate image and display...
Here at runtime the admin should add linkbutton instead of Html tag...
-- modified at 7:38 Monday 22nd October, 2007
Koushik
|
|
|
|
|
First of All Thnx for ur solution but still i have a problem actually i'm having only one linkbutton for the all the links being created. Now problem is How it would be understood which link being clicked
private void linkmonth_Click(object sender, EventArgs e)
{
Wht code i should write here when a link is clicked to display it's corresponding image
}
==================
Here below i'm putting my code plz try to understand
on Page Load call createTable1() function
public void createTable1()
{
Table table=new Table();
TableRow trRow;
TableCell tcCell1=null;
DataUtility dUT=new DataUtility();
string strsql="Select LinkName From AnmolTable Where Active=1";
DataTable dt=dUT.getDataTable(strsql);
int total=Convert.ToInt32(dt.Rows.Count);
for(int i=0;i<1;i++)
{
trRow=new TableRow();
//rowno=i+1;
for(int j=0;j
|
|
|
|
|
|
|
Hi! Does anyone know how to adjust the size of the dropdownlist? Not the actual control but only the list displayed when you click the dropdown arrow?
Any suggesestions? Thanks!
|
|
|
|
|
|
Hi! thanks for the code, but what I need to adjust is the width of the list only not the control...do you have any suggestins?
|
|
|
|
|
What is the dir property in form tag?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
defines the location of the forms directory.
Regards - J O N -
|
|
|
|
|
how should i use it
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
lack of interest to find a manual alway's leads to this kind of question...
Regards - J O N -
|
|
|
|
|
It is used to set the text direction on the form
value :ltr or rtl
|
|
|
|
|
Defines the directionality of text without a pre-defined direction...its an optional tag
Koushik
|
|
|
|
|
and please , what is enctype in form tag?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Its the mime type used to encode the content of the form...i think generally its text/html..try google..
Koushik
|
|
|
|
|
RTFM: MSDL Library: enctype property[^]
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Can I just ask - what is your reason for asking so many inane questions, without ever showning any sign of understanding the answers you get, or of having any ability to use google, buy a book, or in any other way better yourself ? It doesn't seem likely to me that you are working on an actual project, my best guess is that you're somehow in contact with programmers, and every time you hear a piece of terminology, you post here about it, to see what we say.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
And yet again this'll fall on deaf ears. Something tells me we're wasting our time.
|
|
|
|
|
RTFM: MSDN Library: dir property[^]
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Hi,
Can anybody tell me how do i avoid ASPX.CS files getting created while deploying a website.
I m having ASP.net 2.0 n using VS.net installer for deployment.
Thanks
Suvarna
|
|
|
|
|
Compile website.
1. Right on the root of the webproject
2. Select publish website.
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
Yes, that is one solution but i need to create an installable (.msi) file by deployment so i want to skip .CS files.
Does anybody know how to do it?
Thanks
Suvarna
|
|
|
|
|
|
hi friends,
I want to disable refresh tab of a browser using javascript.
i have search this in google but i can't get proper result
pls help me if u have any idea regarding ho to achive this functionality.
thanks and regards
|
|
|
|
|
Why do you want to do that? It's the browser's functionality.. In other words, embrace the browser's functionality and design for it, rather than attempt to design against it.
Koushik
|
|
|
|