|
please show the code snipped!
|
|
|
|
|
for (int k = 0; k < outlet_arr.Length; k++)
{
l.Text = "kalyan";
l = (LinkButton)this.FindControl("LinkButton23");
l.Text = outlet_arr[k].ToString();
j++;
}
|
|
|
|
|
kalyan_2416 wrote: this.FindControl("LinkButton23");
what is that control that contains those LinkButtons ??
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
|
try to put them in a panel and then.....
pnlName.FindControl......
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
Hello,
Like somebody said befor, what is FindControl doing? (please show code)
But apard from that:
kalyan_2416 wrote: (LinkButton)this.FindControl
This will throw an exception if the control which is returned from the method, is not typof LinkButton.
Therefor I suggested the 'as' operator.
LinkButton l = this.FindControl("blabla") as LinkButton;
if(l!=null)
{
}
else
{
}
All the best,
Martin
|
|
|
|
|
thing is like is this
i am using masterpages so
my control is in contentplaceholder
|
|
|
|
|
i did it
ContentPlaceHolder cMainContent = (ContentPlaceHolder)Master.FindControl("ContentPlaceHolder1");
for (int k = 0; k < outlet_arr.Length; k++)
{
//l.Text = "kalyan";
LinkButton l = (LinkButton)cMainContent.FindControl("LinkButton"+j.ToString()) as LinkButton;
l.Text = outlet_arr[k].ToString();
j++;
}
|
|
|
|
|
Hello,
kalyan_2416 wrote: (LinkButton)cMainContent.FindControl("LinkButton"+j.ToString()) as LinkButton;
You don't need the additional casting "(LinkButton)".
And you should make the !=null check like I said before!
LinkButton l = cMainContent.FindControl("LinkButton"+j.ToString()) as LinkButton;
if(l!=null)
{
l.Text = outlet_arr[k].ToString();
j++;
}
All the best,
Martin
|
|
|
|
|
Hi guys,
What is the equivalent keyword in C# for chr(13) using in Asp ?
Thanks & Regards
Sengottuvelu
|
|
|
|
|
One of many ways:
((char)13)
|
|
|
|
|
Hi,
I have a requirement where I want to create templates for emails.
So, I want to know how can I export mail contents to word document.
Can any one help me.
Thanks in Advance.
Bhanu
|
|
|
|
|
To use Outlook and Word you need to use the MS Office Interop capabilities. These give direct access to the functionality of Office apps from your .Net application. Here[^] and here[^] are some MSDN articles that show you how to use them.
|
|
|
|
|
Dear All,
Please let me know how can I edit data in the Datagridview Combobox column. I have some values in the combox column, now I want to edit them.
Thanx
|
|
|
|
|
Hi,
We are selling Handheld Terminals in the company where I work.
The Handheld terminals are using Microsoft ActiveSync to communicate using USB.
But we have some problems, that first time we connect the Handheld Terminal (Which is a Datalogic barcode reader with Windows CE 5.0), Windows XP can not find the driver wceusbsh.sys, and therefor we need to "force" it to use the driver from the ActiveSync directory\drivers.
When we have forced it to use the driver from the directory we can connect the handheld terminal in the same USB port without any problems.
Is it possible to develop some kind of program that can tell the Operating System (XP,Win2k etc)
that it has to use that driver, because we have a lot of costumers asking about what we can do about it. And Datalogic can not do anything (They say).
Hope someone has an idea to solve this problem
|
|
|
|
|
Hi,
Well i'm a newbie to visual studio 05 attempting to generate a report in Visual C#.Net that would be accessible in SQL Server 05.
But i've got no clues on how to make progress in the same regrd .
Thatz why i'm looking for some ready reference!
Any reference material / help in the same regard will be of great help.
Do reply soon !!!!!!
Its now or never !!!!
|
|
|
|
|
Hello All,
I have a chunk of code which needs to be re written in to C#.
The challenge is I want to port this code blindly.
Is there any utility/ tool which can automate the process of doing this or I have to port this code the hard and real way, I mean understanding the progress code and then rewriting it to C#.
Please suggest.
Thanks and regards.
Amar.
|
|
|
|
|
It really depends on the language your chunk of code is written: for instance, if it is (already) C# then the Identity transformation will do the job in automatic and safe way!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Pallini,
Thanks for your reply.
I did not understand your comments, request you to elobrate.
To give you more information.
1. I have a code written in Progress 4GL it is live and is a business application.
2. I have to write this code again in C# means porting the complete application in to .Net.
3. I wish to achieve this without unerstanding the code and it's logic.
What I interpret from your reply is ,
Identity transformation can do this job of writing a progress.w file into cshart.cpp file?
Please comment.
Thanks and Regards.
Amar.
|
|
|
|
|
My answer was just a joke.
IMHO you have to understand code logic and craft the C# implementation (at least, you'll gain knowledge of the business logic...), anyway check if the Progress Software Corporation has the right instrument to perform automatically the job (good luck).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Hi Sebastian,
You can use in this way to implement key-value pair.
this.listBox1.Items.Add(new ListItem("key","value"));
This will help you
Rahul Goel
Microsoft Cerfied Solution Developer .Net
Contact me at : rahul.g2510@gmail.com
|
|
|
|
|
Try this:
<br />
this.listBox1.Items.Insert(0,(object)"a");<br />
this.listBox1.Items.Insert(1,(object)"b");<br />
this.listBox1.Items.Insert(2,(object)"c");<br />
this.listBox1.Refresh();<br />
You must insert data to every index. You cant do this:
<br />
this.listBox1.Items.Insert(0,(object)"a");<br />
this.listBox1.Items.Insert(2,(object)"a");<br />
this.listBox1.Refresh();<br />
--------------------------------
visit: http://pmartike.deviantart.com/
|
|
|
|
|
I don't know...
Maybe you have to use a struct...
--------------------------------
visit: http://pmartike.deviantart.com/
|
|
|
|
|
How can i write a value to a fix memory address?
Please help me!
http://pmartike.deviantart.com/
|
|
|
|
|