|
Where did you put?
I think you need to put it under DataBound Event handler. Might be by this way :
private void GridView_RowDataBound(Object sender, GridViewRowEventArgs e)
if(e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Cells(1).Text = "" + DataBinder.Eval(e.Row.DataItem, "colname").ToString().Split(" ") + "";
}
}
The split logic should be placed according to what you require.
Also adjust the code according to what you need.
|
|
|
|
|
thanks alot
it works
Nour Abdel-Salam...
A Trainer and a Web Developer in Jedda Int'l Computer Center(JICC)
|
|
|
|
|
nour123 wrote: thanks alot
Glad to hear tht..!
But You Shuld mark it as answer..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Hi
i want to move 1 list box item to another list box.
i am using this code
http://www.codeproject.com/KB/aspnet/Listbox_or_combo_box.aspx
this is adding value to another list box , but after few seconds all the value removing automatically.
i am using content page.there no post back also happening.
plz any one tell how to solve the problem or give new idea.
|
|
|
|
|
pss.srinivasan wrote: this is adding value to another list box , but after few seconds all the value removing automatically.
I guess it is due to the page refreshment. Is it clearing automatically or after some operation performed ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Is it clearing automatically,but i given break point in page load there cursor is not coming.
|
|
|
|
|
pss.srinivasan wrote: but i given break point in page load there cursor is not coming.
I didn't get your point
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Page post back is not happening but item is clearing automatically.
|
|
|
|
|
I think There is bug in code which he wrote..!
Check this question..!
Moving Items from one Listbox to another.
Before implementing check the questions in the article..!
i Suggest to try other code You will get many in google if you cant get ask us..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
modified on Wednesday, November 18, 2009 2:07 AM
|
|
|
|
|
Hey, first of all.. If you are using only the code defined in the article, there is no possibility to get a page postback after a certain while.
It is purely a javascript solution. How does it refresh the page automatically if you dont do this manually.
If you want to hold data during postback, update a list in the server as well, might be in the session. Call your page using AJAX, may be using a handler / ICallBackEventHandler etc to do this.
Another thing, in the javascript, dont use document.all as it is deprecated. Rather use document.getElementById always.
<br />
var newOption = new Option();
Does this actually works ???
I would have created an option using document.createElement('option') rather.
|
|
|
|
|
Respected,
Giove Me the Idea About Importing the data from xml database to TALLY Software.
Thanks.
|
|
|
|
|
lrsalunkhe wrote: xml database to TALLY Software.
i Dont think you will for this case Try the related forum..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
lrsalunkhe wrote:
Giove Me the Idea About Importing the data from xml database to TALLY Software.
How does it related with ASP.NET ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Respected,
I select the Records from SqlServer 2005 into GridView.Then This selected Record
I am convert or passed into Tally Software.So Give Me Idea obout this how we Transfer Data
from Sqlserver Data into Tally Software.
Thanks.
|
|
|
|
|
Its depends how Tally accepts the data. In which format Tally used to take data for importing ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Respected,
In Table Formate.
Thanks.
|
|
|
|
|
contach R3 INFOTECH srdabhade@gmail.com 9763175067
|
|
|
|
|
I'm trying to develop my own social app that prompts the user to enter profile information (i.e. - gender, height, weight, etc.), by building on the CreateUserWizard. I figured out how to add a step that prompts for that information, but I'm not sure how to get at the subsequent database, to add the additional fields (i.e. - gender, height, weight). Is there a way to access this database, are the new fields automatically added to the database or do I have to build a new one to house the information from the additional step(s)?
Draykko---
=======================
Every experience in life is a lesson to be learned
A. Stevens
B.S., Computer Science
|
|
|
|
|
Your question the idea of great
|
|
|
|
|
DRAYKKO wrote: how to add a step that prompts for that information
Convert to custom navigation template on smart tag..!
DRAYKKO wrote: Is there a way to access this database, are the new fields automatically
No You Have to do it..!
Go for the Below Article..!
I think You are looking for this..!
http://aspnet.4guysfromrolla.com/articles/070506-1.aspx[^]
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Thank you sashidhar! That article had the answer I needed!
Draykko
=======================
Every experience in life is a lesson to be learned
A. Stevens
B.S., Computer Science
|
|
|
|
|
Any Time My Friend..!
All the best..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Hi!
I have below text.
"A quick sly fox jumped over the lazy brown dog"
"This is my rifle, this is my gun. this is for fight and this is for fun."
I need to programmatically get first 7 words without breaking any words. for eg. from first text
I need "A quick sly fox jumped over" and from second "This is my rifle, this is"
could someone please help me how to get this.
|
|
|
|
|
How does it related with ASP.NET ? This is simple - String manipulation. You can use String.Split to split the string and then get the 7 words .
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Your question is very interesting
Proposed to use " " handle a little better, you say?
|
|
|
|