|
Try this code <%# Eval("FieldName")%> Instead of <%# Container.DataItem.ToString() %>
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
What is FieldName, the table name?
|
|
|
|
|
What is a RoleID and Name?
both Are your field Name.
use One of them as fieldname to display values.
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
|
how to add custom control to my web page??
|
|
|
|
|
Fisrt Of all You have to add Custom Control DLL in ToolBox.
Right Click on ToolBox-->Choose Items-->Click on Browse in DialogBox-->Add DLL of Custom Control and Apply.
Your Custom control will be added in ToolBox now You can drag and drop that control in your web page.
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
hi
i hv taken asp:CheckBoxList ctrl wit id=chkAreaOfExpertise
n asp:ObjectDataSource
n i want a comma separated list of selected items
so i hv written d code
for (int i=0; i < (chkAreaOfExpertise.Items.Count); i++)
{
if (chkAreaOfExpertise.Items[i].Selected==true )
{
areaexpertise = areaexpertise + chkAreaOfExpertise.Items[i].Value + ",";
}
}
bt it doesnt work
if (chkAreaOfExpertise.Items[i].Selected==true ) never succeed
plz help
|
|
|
|
|
hi
try with
for (int i = 0; i < ChkListCustomerLevel.Items.Count; i++)
{
if (ChkListCustomerLevel.Items[i].Selected)
{
Customer += ChkListCustomerLevel.Items[i].Value + ",";
}
}
-- modified at 3:58 Thursday 20th September, 2007
Jintal Patel
|
|
|
|
|
I'm receiving this error when I publish the site.
"Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur. "
what should I do?
BiG RaLpH
|
|
|
|
|
Hi!
Are you getting this error while publishing your files or while trying to run the site.
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|
|
how to create & modify .dll in asp.net 2.0?
|
|
|
|
|
Create a project of type "Class library" and add your code. Visual studio will generate the DLL in the "bin" folder of your application on successful build. Any changes made prior to a rebuild will be included in the modified DLL.
Hope this helps.
Carpe Diem
Krg
|
|
|
|
|
Hi,
I have two buttons on a javascript alert box 'yes'and'no'. How can I capture the event when any of the button is clicked
thank you
|
|
|
|
|
function aa(id)
{
return confirm("Are you sure you want to delete this entry?")
}
onclick='return aa();'
i think dis ll help u
|
|
|
|
|
Hi,
I am uploading image using FileUpload Control and displaying the uploaded image into the Image Control.
If I upload Image Except C:/ drive then it work properly .why this happen
Jintal Patel
|
|
|
|
|
Hi,
I am working on gridview control...
it shows data from a table having columns Sid, Sname,....
I want to hide the sid column from vewing in gridview but use its value on selecting a particular row.
how to achieve this...
I used mygridview.columns[0].visible= false;
but it gives :
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection
Help me..
Sangram
(A battle with self)
Life is simple, we are the ones makes the living difficult
|
|
|
|
|
use gridview.DataKeyNames property for fetching data from it.
use gridview.DataKeyNames = "sid,... and more";
bind your grid.
and for fetching it use
string id = gridview.SelectedDataKey["sid"].ToString();
or
string id = gridview.DataKeys[0 or 1 or 2 or 3 or ...]["sid"].ToString();
We Can Do Anything, If We Want It
|
|
|
|
|
try this code
mygridview.Rows[0].Cells[0].Visible=false;
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
hi guys,.
i would like to store text(using textbox) in my database.. but i have lot of space between first and last name.. for eg: if i put 10 char space b/w first and last means i should print text with only single space..
question:- textbox1=syed hussain
answer:- textbox2=syed hussain
if anybody know the answer pls reply me!!
thanks.
|
|
|
|
|
try the following code.... its written in c#
string str = "Syed Hussain"; // our initial string
str = str.Trim(); // remove any spaces from start and end of the string
int index = str.IndexOf(" "); // get the index of the first space
str = str.Replace(" ",""); // remove all spaces
str = str.Insert(index, " "); // insert single space at the position of INDEX
Label1.Text = str; // now you get the string with single space.
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|
|
Hi Friends,
I have to call a javascript from my cs page. It should be called exactly when the page loads. How can I do it ? I know how to call that on a button click but how can I call the javascript on page load event?
thank you
|
|
|
|
|
u have olready have a javascript function in page for example:
function Sample() {
alert("test");
}
now u can use this code in page load:
this.Controls.Add(new LiteralControl("<script>func1();</script>"));
We Can Do Anything, If We Want It
|
|
|
|
|
use the following script on page load event of your page....
Page.RegisterStartupScript("MyDemo", "alert('hi there');");
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|
|
I am working on a photo sharing website. By using flickr API service I can sent pictures to flickr but that require me to go on flickr's website and log in there. I want to save flickr login info in my application so that I should internaly login user to flickr and send his pictures directly.
This is called one click upload.
If anyone of you have done it before or something similiar to it please let me know.
Yasir M Khan
|
|
|
|
|
hi friends i am adding dll in asp.net then this error occur
error:-
Retrieving the COM class factory for component with CLSID {E0AA501C-CAD6-4D93-A5A7-DAF1C0B30F32} failed due to the following error: 80070005.
then how to find solution of this error please help me.
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|