Register  |  Login




Advertisement

Start Your Own Q&A Site

Create your own Q&A site easily, allowing you to quickly grow a new community around any subject matter or generate new organic traffic for your existing website.

Question

Status: Closed Points: 125 Time: 04:46 - Mar 14, 2009  

rmda

Need URGNET HELP

Please help any VB 2008 / asp.net 3.5 guru

I used dropdown list box SQL Server , list view, Pager … its working fine see the link below

http://www.tharjuma.com/anquran.aspx

The problem I’m facing is See the program …. For Example

If the I am selecting the Sura No 6. And press SHOW button , It will jump to the page No : 177 as the Database and program as I did

The same way if I choose Sura No 18. And press SHOW button , It will jump to the page No : 408 as the Database and program as I did .

But if I pressed Next/Last button in the pager its working ….but after that if select and Drop down list as mentioned on the same way it will not show right page. It requires the “First“ PAGE button of PAGER button to be pressed once then only it will be shown properly

How to rectify this? I think we need to reset the Pager every time when we click the Dropdown list? Could anyone guide me?

Answer Discussion
Tutorials

 

ddrakonn

Date:: Mar 18, 2009

Time:: 07:20

I think you need to use. Something like this in DB and code.

let's say object page is the object to show pages. Let's say object List is is your dropdaown.

You read data from db into and get some datatable or reader

We will create some data class.

public class Data
{
public int id;
public string DropString;
public string path;
}

And then load data from DB there.
Also we will create. In next fromat List<Data> _data;

Then in our page load add

List.DataSource = _data
List.DisplayMember = "DropString"
List.ValueMember = "DropString"

//be shure to create public propeies in Data class to make this work

Then for our page we do next.

Page.DataSource = _data
// I can't test so not shure that next is correct play with this.
Page.DisplayMember = "path"

So now we have one row that will be shown. And if you press next it will shows next picture and next in deopdown(if everything correct).

After that add specific rules for this and it might work as you wish.




admin

Date:: Apr 09, 2009

Time:: 11:47

The question looks to be abandoned by the user who asked it. If no action is taken within 2 days, a Quomon Moderator will consider closing the question and distributing the points.

The Quomon Team

admin

Date:: Apr 20, 2009

Time:: 06:07

The question has been closed.

The Quomon Team

Question Answered

This question has been closed, and points have been rewarded to the following experts:


ddrakonn: 125

You're welcome however to comment or give additional information or if you wish, you have the ability to write a Tutorial in the Tutorial Area.

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

No tutorials have been submitted yet. Want to be the first?

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Ask a Question

Have a new question? Ask!

You have 100 characters to use



Top Experts

View More

Rank

Expert

Points

1.

nidhi

10354

2.

oracleofDelphi

6493

3.

rcastagna

5596

4.

LAGM

4848

5.

PeterNZ

3487

6.

gonzalo

2840

7.

Mason

2770

8.

jgivoni

2303

9.

xarcus

1820

10.

Anpanman

917

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es