CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > starter_kits_and_source_projects.portal_starter_kit Tags:
Item Type: Date Entered: 1/14/2004 6:01:45 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 19 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
"Enila" <>
NewsGroup User
How can I use a unique connection in a request?1/14/2004 6:01:45 PM

0

Hi,

Today a connection is being openned for each module in the page. I don't want to do this.
I want to use a unique connection in each request. To do this I changed the PortalModuleControl class to receive my connection. Ok, it's working. But in the web controls the connection is being closed when passing by DataBind method.

Can anyone give me a clue?

Dim links As New PortalLagoinha.Net.LinkDB(Connection) 'Here I pass the connection

myDataList.DataSource = links.GetLinks(ModuleId)
myDataList.DataBind() 'Here the connection is being closed :-(

Thanks,

Aline.
"wunderkinder"
NewsGroup User
Re: How can I use a unique connection in a request?1/14/2004 9:07:44 PM

0

You could try using a different CommandBehavior instead of CloseConnection. Take a look at the GetLinks function in Components/LinksDB.vb, you will find this:

Dim result As SqlDataReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection)

When the command is executed, the associated Connection object is closed when the associated DataReader object is closed. I would guess that the DataReader is being closed after the databind method is called, perhaps as part of the garbage collection.
Jared Livingston
MrLivingston.com - Livingston Family Website

Test/Demo site - moonmark.com
"Enila" <>
NewsGroup User
Re: How can I use a unique connection in a request?1/15/2004 11:16:13 AM

0

Thank's a lot. I thought it was closing in DataBind.. but it the connection is closed when the associated DataReader object is closed. ;)

Aline
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:













read this after first installing the portal

application ignore the breakpoint in desktopdefault page

immediate display of newly added tab

user login box on default page

portal error on load after successful installation

anyone got a "whidbey" starter kit

a different (unrelated) error now with dundas - repost

shopping cart functionality

windows authentication and roles

building an asp intranet from wrox book

add existing module

convertion of sql server database to mysql database

windows authentication and ibuyspy portal problems

ibuyspy portal vs. portal starter kit

asp.net forum plugin for ibuyspy portal

"an error occurred saving the project file"portalvbvs.vbproj". access is denied."

portalcssdk setup: no project file

problem with installing database

portalcfg.cs

about image folder in asp.net portal starter kit

install starter kit, no database found

installing the ibuyspy store as in a sub-directory of my web site.

how to configure for sql server 7.0

resource not found error????

asp.net portal starter kit - siteconfiguration class

display current date/time

using datarelation for datagrid

custom roles not working. anyone come across this prob?

ibs application and fragment cache question

site not working!!! :(

cann't open asp.net portal starter kit (csvs).sln

configuration error - with v1.1 installed.

can't open the portal project file in vs.net

has anyone been used ibuyspy to develop your app or study the code?

how to add additional portals?

clarification on new ibuyspy.shoppingcartdb() code

application path and speed issues with 2003 server

viewdocument.aspx security

installing at hoster

smart navigation

i wasn't able to install locally so i did it remotely... changed it back to locally but

page.ispostback == false and datagrid

how to 'plug-in' a module without recompiling project.

null reference exceptions

..also bought

make a localized version.help!

can't d/l ibuyspy portal (vs.net or sdk/c# or vb editions)

role based windows authentication question

retrieve email of user logged in

annoying problem with syles

   
  Privacy | Contact Us
All Times Are GMT