(VERY VERY URGENT)

Posted by Snvchandu under ASP.NET on 11/29/2007 | Views : 1781 | Status : [Member] | Replies : 3
Does any one know how to import WEB PART in IMPORT CATALOG ZONE in asp.net 2.0 and how to change the defaultely created MDF and LDF files in app_data when ever a web part is created .....and how to write code for importing a web part .......and how to connect 2 web parts......




Responses

Posted by: Raja on: 11/29/2007 [Member] Starter

Up
0
Down
Can you clarify your question and requirement more?

Regards,
Raja, USA

Snvchandu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Snvchandu on: 11/29/2007 [Member] Starter

Up
0
Down
Ok ...,In webparts ,there is a zone called Catalog Zone..In that there is a zone with IMPORT CATALOG zone.i want code for how to import a WEB PART and where to Import it and to maintain all these values regarding the import criteria ....
and next i want to know how to maintain the credentials and latest changes that which were done using WEB PARTS.....and one thing i know is that by defaultely a ASPNET DB.mdf and ASPNET DB.ldf will be created in app_data..but how to communicate with that tables that which are present in those mdf and ldf files.....but right now what i have done is i attached that mdf file to database and now i changed app_data mdf files and then i run the application.but it is showing binary data ..but it is not getting any effect in that database....

and next there will be a zone called connectors zone in web part...i am not able to connect to two web parts using interface...
so if u guys have any idea ..plz post me its very urgent to me......



so right now i want to know how to Import a web part and how to connect two web parts and how to communicate with mdf and ldf files using database.........

its very happy if u had any sample application done regarding all these queries..........

so pleae lemm know as soon as possible

thanq



Snvchandu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Raja on: 11/29/2007 [Member] Starter

Up
0
Down
I think I will be able to answer partly (database connection part). As far as communication with the database under App_Data folder is concern, you can use following connection string provided you are using SqlExpress to connect the database.


Data Source=.SQLEXPRESS;AttachDbFilename=yourdatabasenamewithpath.mdf;Integrated Security=True;User Instance=True


If you have already attached the database to your local sql server then you may use following connection string

server=localhost;database=mydatabase;uid=uid;pwd=pwd;


I am not sure what binary data is displaying in your case.



Regards,
Raja, USA

Snvchandu, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response