|
Who said that, and in what context?
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
I have a label control which is placed in DataList. The value of the label bounds using DataBinder.Eval...method.
Now in the code of its ItemCommand i want to retrieve the value of the label. I know the process that used in VB.NET but dont know how it will be done in C#..
I did...
string str=Convert.ChangeType(e.item.FindControl("lblName"),typeof(Label)).ToString();
But this line does not gets its Text value...
Any one can help me plsss.......
KHATRI
|
|
|
|
|
You can get that like this:
string str=((label)e.item.FindControl("lblName")).Text
Best Regards,
Apurva Kaushal
|
|
|
|
|
the line of code Convert.ChangeType(e.item.FindControl("lblName"),typeof(Label)) will return specific object with the specified system.type(Label)
not the text of label so u can replace string str with Label object and then use it to get text
so u can use this
Label lbl=Convert.ChangeType(e.item.FindControl("lblName"),typeof(Label));
string requiredtext=lbl.Text
i hope this will help
|
|
|
|
|
Well Mr kitokatakito I tried the way u told me but it doesnt work..
By the way now its working
Thanks Apurva your way works...
KHATRI
|
|
|
|
|
always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
I want to Make a Publish Option in my application, for it i want to use any FTP Component. I Search Many of the dotnet FTP Component from search engine.
But not getting any Best one, if any one have used any Gud FTP Component then plz let me know.This FTP Component must be compatible with asp.net1.1 and should be able to perform following feature:-
1. Upload Direcetory.
2. Download Directory.
Thanx
Dotnet
|
|
|
|
|
Why don't make one by yourself?
|
|
|
|
|
could u suggest me how can i make?
Dotnet
|
|
|
|
|
Sir,
My application is running on intranet , around 50-60 computers are accessing that application . Now my problem is , I want to lock that particular record during updation , untill that record is updated , so the particular record not be taken for updation by multiple users simultaneously.
Please help.
Thanks
|
|
|
|
|
Not sure what exactly you are looking for but you might want to look into sql transactions.
On the other hand if you are using DataSets you might want to check into "UserOptimisticConcurency".
HTH
|
|
|
|
|
hi,
i am creating an application which will save a .xml file on the disk.
i need to provide a way to open this file from within my page.
if i give the path in ... tag it is not opening after clicking on the link. the link which is shown in the status bar of ie looks like this file:///a/abc.xml
the xml file is supposed to open in its default editor when i click on the link.
Pls help.
Thanks in advance
|
|
|
|
|
HI All
I have given datasource to datagrid which has 3 columns now after binding the grid at Itemdatabound event i have to add runtime a new column which shud be placed at 4 index of the grid( my data source contains only 3 column).Is there any solution to it.
Regards
Monika
|
|
|
|
|
Just u make a template column at index no 4 and set visible false
during the bind the data u can manipulate at run time template column.
Parwej Ahamad
|
|
|
|
|
I am trying to send mail using smtp. But it's showing the error
"Failure sending mail.Unable to connect to the remote serverA socket operation was attempted to an unreachable host"
MailMessage message = new MailMessage("xyz@senddomain.com", "zyx@receivedomain.com", "From Send Domain using SMTP", "Test Msg.");<br />
SmtpClient smtpClient = new SmtpClient("smtp.senddomain.com");<br />
smtpClient.UseDefaultCredentials = false;<br />
smtpClient.Credentials = new NetworkCredential("xyz@senddomain.com","password", "www.senddomain.com");<br />
smtpClient.Send(message);<br />
How to resolve this problem?
Note:
"smtp.senddomain.com", is a remote server.
Assume like, sending mail from yahoo id to gmail id using network credential(authentication)
Jey
|
|
|
|
|
hi all,
I need to generate asp.net pages dynamically using .net for ex: i have 1000 records with title, subject, date etc fields each records is unique and i need to generate 1000 pages for this 1000 records any suggestion how to do it?
or any sample to get some idea........
|
|
|
|
|
hi dear friends
i need some presentations(in powerpoint) about new concepts in dot net, to conduct a seminar on dot net. can you people provide any related urls on this . it will be a graet help for me. thanks in advance
sebastian
|
|
|
|
|
|
hi,
Iam having an application with 2 frames.one frame contains tree view and on click of tree view link's 2nd frame should replace with corresponding Page.
kamalnath
|
|
|
|
|
Hi there,
i need your help in displaying particular field from the database to the label for ex: condiser the below is page and it contain label
Title need to display titile field from the database
subject need to display subject field from the database. etc...
any suggestion or code snippet so i can know how to get the bind data in the label? or any other suggestion. pls revert back as soon as possible.
Thanx in advance....
|
|
|
|
|
Why would you need to do anything more than set the text if it's only one label ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
no i want it to be dynamic the page will fetch data from the database each record is one page.
|
|
|
|
|
if u just want to display the field value into the label then read the database and use the label.text property to show the data, what's the problem, let me know if i'm interpreting wrong.
|
|
|
|
|
HI
May it will help you
Label1.Text = rdr("Title").ToString()
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
No thanx i solve the problem using datagrid...
|
|
|
|