Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Force SQL command test to exist in Code-behind for a sqldataadapte

Reply
Thread Tools

Force SQL command test to exist in Code-behind for a sqldataadapte

 
 
frankkirchner
Guest
Posts: n/a
 
      10-09-2006
I posted this in vs2005 general - no one asnwered it there. Here it is again.

If I drop a SQLDataAdapter onto my component designer and configure it - it
saves the select string in the resource manager instead of in the source code
of initialize function (private void InitializeComponent())
example this.sqlSelectCommand1.CommandText =
resources.GetString("sqlSelectCommand1.CommandText ");.

But when i run it i get an exception;
System.Resources.MissingManifestResourceException was unhandled by user code
Message="Could not find any resources appropriate for the specified
culture or the neutral culture. Make sure \"_Default.resources\" was
correctly embedded or linked into assembly \"App_Web_yymxgwrs\" at compile
time, or that all the satellite assemblies required are loadable and fully
signed."
Source="mscorlib"
StackTrace:
at
System.Resources.ResourceManager.InternalGetResour ceSet(CultureInfo culture,
Boolean createIfNotExists, Boolean tryParents)
at
System.Resources.ResourceManager.InternalGetResour ceSet(CultureInfo
...............
if i code the select statement it works fine, but then any changes to the
designer puts the original failing code back in there.
is there a way to force the IDE to write this code into the source instead
of retrieving it from the resource manage?

--
Frank Kirchner
Programmer Analyst
Regional Development
SYSCO Corp.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nike air force one, air force 1, air force one low cut, air force one salewholeta@163.com Digital Photography 3 12-31-2008 04:29 PM
Nike Air Force Ones,Air Force One Air Force One-1 lky52193@gmail.com Computer Support 0 01-17-2008 04:40 PM
Nike Air Force Ones,Air Force One Air Force One-1,25th anniversary lky52112@gmail.com Digital Photography 0 01-15-2008 04:46 PM
Nike Air Force Ones,Air Force One Air Force One-1,25th anniversary lky52112@gmail.com Digital Photography 0 01-15-2008 04:34 PM
test test test test test test test Computer Support 2 07-02-2003 06:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57