|
|
I filled DataSet use SqlCommand.
then DetailsView bind dataSet:
DetailsView.DAtaSource = DataSet;
DetailsView.DataMember = "table1";
DetailsView.DataBind();
then AllowPaging. but when running, report:
incident the untreated event,PageIndexChanging.
if use SourceDataControl Bind, navigation page is succeed.
why unsuccessfully with first way?
how do can navigation page succeed?
|
|
|
|
|
In your aspx in the DetailView part you add
OnPageIndexChanging="dv_PageIndexChanging"
in your code behind you add:
protected void dv_PageIndexChanging(Object Sender, DetailsViewPageEventArgs e)
{
LoadDetailView(e.NewPageIndex);
}
protected void LoadDetailView(Int32 pageNumber)
{
DetailsView.DataSource = DataSet;
DetailsView.DataMember = "table1";
DetailsView.Page = pageNumber;
DetailsView.DataBind();
}
may the force be with you
|
|
|
|
|
Hi Friends,
I am having a multiline text box which contains all details,another textbox is available which i have entered a word and click a find button it should highlight a particular word in a richtextbox like Find and Replace in windows.Can anyone help me how to do in javascript.
Thanks in Advance
modified on Friday, May 23, 2008 3:48 AM
|
|
|
|
|
Check this out:
Its in asp.net but this is a .net forum so maybe you could try it:
http://www.dotnetcurry.com/ShowArticle.aspx?ID=146&AspxAutoDetectCookieSupport=1
|
|
|
|
|
Hi,
Sorry the details are displayed in textbox ie multiline textbox.Can you please tell me how to do.
Thanks In Advance
|
|
|
|
|
how to replace and trim particular part from string.
string s = '2,5,7,8,9'
now I want to trim ',8' from s
and replace 7 by 15
finally it will be
s='2,5,15,9'
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
By trim, you mean replace ,8 with string.Empty. Trimming refers to removing whitespace from the edges.
The string class has a replace method.
This is totally unrelated to ASP.NET.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
What this has to do with ASP.NET ? Trimming means removing whitespace and not removing a character. string has a Remove() method, check that. BTW, you could try something like this too
s.Replace("7", "15").Replace("8,", string.Empty)
|
|
|
|
|
thanks a lot
You get the best out of others when you give the best of yourself.
|
|
|
|
|
string s = "2,3,7,8,22,8";
now I want to check
string has 22 or not
22 should be treated as a string not character.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
bool exist = s.IndexOf("22") >= 0 ? true :false;
if(exist)
{
//The string exist.
}
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Hello Friend iam new to asp.net
i have a problem here iam using datalist control in this control i have image and chek box if user un chek chekbox mean he don't want to diplay image then i need to disable image how to write inlinecode for this
i will try both ways like inlinecode and itemdatabound event
if i go with item databound problem is it it's not disable first iamge in datalist remaining images are disabled except first one
here is my code
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
CheckBox lblimge = (CheckBox)e.Item.FindControl("chkid");
HtmlTableCell TAB = (HtmlTableCell)e.Item.FindControl("TDIamge");
DLNews.ItemDataBound =
foreach (DataListItem di in DLNews.Items)
{
if (lblimge.Checked == false)
{
TAB.Visible = false;
}
else
{
TAB.Visible = true;
}
}
}
|
|
|
|
|
Can you a be a bit clear with what is currently happening,
Can you disable any images at the moment or is the code not doing that?
Do you just want to disable one image at a time?
|
|
|
|
|
Hi...
I want to Import Contacts From Different Mail Clients like Yahoo,Gmail,Rediffmail,AOL,HotMail....
If u provide valuable Information for me it will be appreciated ,its very Urgent to me.
Sukku
|
|
|
|
|
U R Expecting UnExpected Things
URGENT :::: Do not use Ever
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
sukkureddy wrote: I want to Import Contacts From Different Mail Clients like Yahoo,Gmail,Rediffmail,AOL,HotMail....
You need to check with them for any APIs for doing this. I am sure there won't be anything free.
sukkureddy wrote: ,its very Urgent to me.
It will be urgent for you, but not for us. People here do voluntary contributions. You should check this[^] before you post next question.
|
|
|
|
|
Actually i am new to this ,just now i joined thats why i dont know how to post a Q, i am little bit poor in communication skills also..so plz execuse me and tell Solution
|
|
|
|
|
Is there any Sites which will provide for Pay
|
|
|
|
|
What has this got to do with asp.net anyway??
|
|
|
|
|
Yes ,i need it in Asp.net
|
|
|
|
|
we have downloaded some code from ideabubbling and tried it, but some times it is not working for some account's in rediff,Hotmail,AOL.in
will the maildomain's constantly change the session or links which are hardcoded in the downloaded code.
|
|
|
|
|
sukkureddy wrote: will the maildomain's constantly change the session or links
Yes. It is by design.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
sukkureddy wrote: ,its very Urgent to me.
Every query is urgent from each one's perspective. If you really need an expedited solution, you ought to look up your vendor's paid support solutions.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Thank You for ur Valid Suggestion..
Can you tell ,is there any Vendors which will Provide these Contacts.
---
|
|
|
|