How to change personal info?
.Net Development
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > .Net DevelopmentGo to page: « previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

  Top users: 
  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:
Tuesday, 16 September 2008
problem to insert value in dropdownlist on formView control Lior Levy 01:46:12
 

Hello,

I'm using the SqlDataSource to insert value in dropdownlist, but i want to add a -- Add New -- at the end of the
list, but can't find a way to make it.



It works very well if I delete the SqlDataSource of the DropDownlist...

maybe the inserted item is overwrited by the SqlDataSource !!?



protected void FormView1_ItemCreat­ed(object sender, EventArgs e)

{

if (FormView1.CurrentM­ode == FormViewMode.Insert­)

{

DropDownList dropDownList1;

dropDownList1 = (DropDownList)FormV­iew1.FindControl("DD­L_ca");

if (dropDownList1 != null)

{

dropDownList1.Selec­tedIndexChanged += new EventHandler(DDL_ca­_SelectedIndexChange­d);

SqlDataSourceAction­s.ConnectionString = "ConnectionString";­



dropDownList1.Items­.Add(new ListItem("Add New1", "999"));

dropDownList1.DataS­ourceID = "SqlDataSourceActio­ns";

dropDownList1.DataV­alueField = "CA_code";

dropDownList1.DataT­extField = "CA_desc";

dropDownList1.DataB­ind();

dropDownList1.Items­.Add(new ListItem("Add New2", "999"));

}

}

}



Any Ideas?








===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 5 answers | Add comment
Thursday, 11 September 2008
Gridview Linq Query Bill Booth 21:18:10
 Hi All,
I am trying to run a Linq query on a GridView Rows Collection that will
select the distinct contents of one cell. The query below will do the
job; however, it uses late binding. The variables cust and customerList
are both object types. I just cannot seem to get around this.
Any advice will be appreciated.
Bill

Dim gridList As GridViewRowCollecti­on = CustomerGrid.Rows


Dim customerList = From cust In gridList _
Select cust.Cells(4).Text _
Distinct

For Each i In customerList
Debug.WriteLine(i)
Next

The information in this e-mail is confidential, may be legally privileged and is intended solely for the addressee. If you have received this e-mail in error, you are hereby notified that any use, distribution, or copying of this communication is strictly prohibited.

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 4 answer | Add comment
Monday, 8 September 2008
Planning to keep the list alive Efran Cobisi 19:28:42
 Hi all,

I am worried about the retirement of our lists as most of us are.
Therefore, I am making arrangements with Richard in order to move all of
the lists to my servers and keep them alive.

Hope to get back to you with some good news soon.

--
Efran Cobisi
http://www.cobisi.c­om

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 1 answer | Add comment
Thursday, 4 September 2008
Renewal of your subscription to the DOTNET-CLR list L-Soft list server at DevelopMentor 14:00:06
 Thu, 4 Sep 2008 06:00:06

Your subscription to the DOTNET-CLR list is due for renewal. If you wish
to remain subscribed to DOTNET-CLR, please issue the following command to
LISTSERV@DISCUSS.DE­VELOP.COM at your earliest convenience:

CONFIRM DOTNET-CLR

You will be automatically removed from the list if you do not send a
CONFIRM command within the next 14 days. The simplest way to do this is
to click on the following link:

http://discuss.deve­lop.com/archives/wa.­exe?LCMD=CONFIRM+DOT­NET-CLR&L=DOTNET-CLR­

Add comment
Thursday, 28 August 2008
Why does Math.Ceiling return a double? Brady Kelly 14:46:47
 The documentation says, "Returns the smallest integer greater than or equal
to the specified double-precision floating-point number."


===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 4 answer | Add comment
Wednesday, 6 August 2008
User Configurable Menu Brady Kelly 16:01:05
 I'm using a Menu control dynamically populated from a database table, and
need to provide the users with a facility to edit the menu items. Currently
I only cater for two levels of item, but three are now required. I would
like, if possible, to use the actual menu as a menu editor, when somehow
placed in 'edit mode', and I am considering changing the persistence to an
XML file to handle the hierarchical relationships better. My concerns here
are being able to limit menu items exposed to certain users only, and to
prevent manual editing of the XML file breaking the menu. Maybe an
automated backup that will go to 'last known good menu'. Suggestions on how
I may go about this will be most welcome.




===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
Tuesday, 5 August 2008
"Could not retrieve the current project" Eyvind Axelsen 16:50:50
 Whenever I try to "Configure" an OleDbDataAdapter in the designer, it
presents a simple message box with the error message "Could not retrieve
the current project". This has happened before, but I have always been
able to get rid of by either restarting VS or rebuilding the entire
solution, but now I have tried this several times, in addition to
rebooting the computer and other kinds of voodoo, but to no avail. The
error shows up for every adapter in my project, of which there is quite
a few. Does anyone know of a solution?

Thanks,

Eyvind.

comment 5 answers | Add comment
debugging - Break on value change? Graeme Hood 15:39:24
 I'm trying to find out where and when a value in a session variable is
gettting changed. I know I can use conditional breakpoints, but then I
would need to know what line of code to insert it into.



Is there such a thing as a condition watch that will stop execution as
soon as a variable has a specified value? Using VS 2008.



TIA

This email message is intended only for the use of the named recipient.
Information contained in this email message and its attachments may be
privileged, confidential and protected from disclosure. If you are not the
intended recipient, please do not read, copy, use or disclose this
communication to others. Also please notify the sender by replying to this
message and then delete it from your system.


===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 6 answers | Add comment
Saturday, 2 August 2008
Re: Validation of viewstate MAC failed. Patrick Newberry 23:03:53
 On a series of pages with web forms I have, I found that when I start a
form, the leave it for a while and come back, when I press the submit
button I get a Server error in '/' Application.

Validation of veiwstate MAC failed. If this application is hosted by a
web farm or cluster, ensure that <machinekey> configuration specifies
the same validationkey and validation algorithm. AutoGenerate cannot be
used in a cluster.

I am assuming the session is timing out.

Is there anyway to prevent this from happening?

Pat

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 8 answers | Add comment
Tuesday, 29 July 2008
Form.Show and events Graeme Hood 13:15:58
 I have an app that seems to behave differently (possibly) after
installing VS2008 and .Net 3.5



Suddenly the event handler for combo boxes (SelectedItemChange­d) is
getting called when Show() is called rather than when the combo item is
set prior to showing the form. Could something have changed in .Net to
cause this behaviour. This worked fine in a previous release of my
application some months ago and no code has changed.

This email message is intended only for the use of the named recipient.
Information contained in this email message and its attachments may be
privileged, confidential and protected from disclosure. If you are not the
intended recipient, please do not read, copy, use or disclose this
communication to others. Also please notify the sender by replying to this
message and then delete it from your system.

comment 2 answer | Add comment
Thursday, 17 July 2008
System.Net.Mail question Bill Booth 20:07:25
 Does anyone know the difference between the "From" property and the
"Sender" property in the MailMessage class? I just can't seem to find an
answer to this question.

Thanks for any help.

Bill

The information in this e-mail is confidential, may be legally privileged and is intended solely for the addressee. If you have received this e-mail in error, you are hereby notified that any use, distribution, or copying of this communication is strictly prohibited.

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 2 answer | Add comment
sitemap provider error Andrew Dunn 09:45:24
 Hello,

I have an error with the sitemap provider. This is my sitemap section in
the web.config file:

<siteMap defaultProvider="=B­H_SiteMapProvider" enabled="true">
<providers>
<add name="BH_SiteMapPro­vider"
type="System.Web.Xm­lSiteMapProvider, System.Web,
Version=2.0.0.0, Culture=neutral,Pub­licKeyToken=b03f5f7f­11d50a3a"
securityTrimmingEna­bled="true"
siteMapFile="web.si­temap"/>
</providers>
</siteMap>

When I run it I get the error:

The provider '=BH_SiteMapProvide­r' specified for the defaultProvider
does not exist in the providers collection.
(c:\inetpub\wwwroot­\beerhouse\web.confi­g line 156)

Could anyone point me how to fix this?

Andrew

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 1 answer | Add comment
Web issues Dean Cleaver 09:10:07
 Hi,

We've just had a problem occur that I have no idea how to fix or even find. This is the entirety of the event log error:

EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.3959, P3 45d6968e, P4 extramile.ichange.w­eb, P5 3.3.8.3, P6 487e902a, P7 1044, P8 22, P9 exception, P10 NIL.

extramile.ichange.w­eb is our web assembly, and between that and the code below in other assemblies, there's 750,000 lines of C# and not a hint of where to look. It seems to function for a bit (I've seen login pages come up) but then something goes wrong, it doesn't call any of the Application_Error code, and just shuts down our app pool.

Any suggestions would be most appreciated.

Dino

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 2 answer | Add comment
Monday, 14 July 2008
Error when creating new Web Site Andrew Dunn 05:02:31
 Hi,

I'm trying to get back in to asp.net programming after an absence of 4
years. I am trying to create a new Web Site in VS 2005 and I get the
error:

Error 1 c:\inetpub\wwwroot\­Andrews\Default.aspx­: ASP.NET runtime
error: The given assembly name or codebase was invalid. (Exception from
HRESULT: 0x80131047) c:\inetpub\wwwroot\­Andrews\Default.aspx­ 1
1 http://localhost/An­drews/

Error 2 The given assembly name or codebase was invalid.
(Exception from HRESULT: 0x80131047)


I've searched google with no luck. It's a brand new project so I haven't
even written a single line of code. Any ideas?

Andrew

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 1 answer | Add comment
Friday, 11 July 2008
AssociatedControlID in a custom templated control Bill Bassler 20:37:30
 Can anyone point me to information on how to suppoer AssociatedControlID­
for Label controls that might be dragged into templated panel-like server
control?

I have a control that I created that supports expanded and contracted
panels so that you can drag any controls into the panels at design-time.
However, when I attempt to set the AssociatedControlID­ property to
associate a Label that is also inside of the panel I get a non-sensical
design time duplcate control ID FindControl error on the Label control in
question for the first control that exists in the template. This would
seem to some kind of naming container issue where maybe the Label control
is attempting to find the control defined in the AssociatedControlID­
property but it cannot.

Is there something maybe I need to implement in TemplatedControlDes­igner
code to wire this stuff up?

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
Wednesday, 2 July 2008
windows integrated authentication and Oracle Mark Aurit 20:34:35
 I realize this is a little off-topic, unfortunately there isnt an ado news group. If someone can reply Im glad to take it offline.

My question is whether anyone has any experience (or knowledge) with an asp.net web app that interfaces with Oracle using windows integrated security. I believe I read somewheres that its possible, but it means running the accounts under a higher-level of privileges than a normal account does, something like that.

I have a security guy at work intrigued with sql server and integrated security, and I need to be able to tell him if the same can be done with Oracle and what the ramifications were.

Thanks, Mark

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 1 answer | Add comment
Sunday, 29 June 2008
sql server authentication with named domain account Mark Aurit 13:01:32
 (I posted this yesterday but it didnt come back. Since its of important
to me right now Im going to post it
again, sorry if you are getting it twice)

Im creating an asp.net/sql server app; Id prefer to use a sql server
account to maximize connection pooling, our security guy wants
integrated security. We've reached an agreement where I can use a
single account as long as its a domain account, but Ive been unable to
figure out how to do so (if its even possible). Im thinking I either
need to use integrated security but force sql server to use a single
account, or use a regular connection string, naming the domain account
and password with Integrated Security=false.
Does want I want to do sound possible?
Thanks, Mark

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 6 answers | Add comment
Saturday, 28 June 2008
SV: [DOTNET-WINFORMS] Styling multi content buttons in WPF Benny Skjold Tordrup 23:07:55
 Thank you James - at first look, it appears to do what I want.

I'll dive a bit more into this method and try to apply it where I'm
experimenting with it now.

Med venlig hilsen / Best regards

Benny



-----Oprindelig meddelelse-----
Fra: Discussion forum for developers using Windows Forms to build apps and
controls [mailto:D­OTNET-WINFORMS@DISCUSS.DEVELOP.COM] P vegne af James
Geall
Sendt: 28. juni 2008 16:55
Til: DOTNET-WINFORMS@DIS­CUSS.DEVELOP.COM
Emne: Re: [DOTNET-WINFORMS] Styling multi content buttons in WPF

you could bind the controls that you want to change to the buttons
foreground property using a relative source
I have included an example below, watch out for wrapping.
There are 2 methods in the example. Setting the property binding
using the style does not work for the disabled foreground color, but
setting the binding on the control itself does,

HTH
James

<Page xmlns="http://schem­as.microsoft.com/win­fx/2006/xaml/present­ation"
xmlns:sys="clr-name­space:System;assembl­y=mscorlib"
xmlns:x="http://sch­emas.microsoft.com/w­infx/2006/xaml" >
<StackPanel>
<StackPanel.Resourc­es>
<Style x:Key="InheritFromB­utton" TargetType="{x:Type­
ContentControl}"> <!--Does not work for disabled-->
<Setter Property="Foregroun­d" Value="{Binding
RelativeSource={Rel­ativeSource Mode=FindAncestor, AncestorType={x:Typ­e
ContentControl}}, Path=Foreground}"/>­
</Style>
<Style TargetType="{x:Type­ Button}" >
<Style.Triggers>
<Trigger Property="IsEnabled­" Value="false">
<Setter Property="Foregroun­d" Value="Blue" />
</Trigger>
<Trigger Property="IsEnabled­" Value="true">
<Setter Property="Foregroun­d" Value="Yellow" />
</Trigger>
<Trigger Property="IsMouseOv­er" Value="true" >
<Setter Property="Foregroun­d" Value="Green" />
</Trigger>
</Style.Triggers>
</Style>
</StackPanel.Resour­ces>
<CheckBox x:Name="ToggleEnabl­ed">Button Enabled</CheckBox>
<Button Grid.Row="1" Grid.Column="1" IsEnabled="{Binding­
ElementName=ToggleE­nabled, Path=IsChecked}">
<Button.Content>
<Grid>
<StackPanel Orientation="Horizo­ntal">
<Label Foreground="{Bindin­g
RelativeSource={Rel­ativeSource Mode=FindAncestor, AncestorType={x:Typ­e
ContentControl}}, Path=Foreground}">M­ethod 1</Label>
<Label Content="Method 2"
Style="{StaticResou­rce InheritFromButton}"­ />
</StackPanel>
</Grid>
</Button.Content>
</Button>
</StackPanel>
</Page>

On Sat, Jun 28, 2008 at 11:41 AM, Benny Skjold Tordrup
<benny@tordrup.net>­ wrote:
Hi all
I have a style for at WPF button that changes the foreground color of the
button content when the button is disabled or pressed. This works fine if
I
only add a text to the contents or use a single control as content.
If I then use a Grid as content in the button in order to make a more
sophisticated content, the above tricks do not work. I assume that it is
because WPF tries to set the foreground property directly on a single
control content - which I do not have in this case.
Any ideas?
Med venlig hilsen / Best regards
Benny Tordrup

Add comment
Styling multi content buttons in WPF Benny Skjold Tordrup 18:54:53
 Hi all

I have a style for at WPF button that changes the foreground color of the
button content when the button is disabled or pressed. This works fine if I
only add a text to the contents or use a single control as content.

If I then use a Grid as content in the button in order to make a more
sophisticated content, the above tricks do not work. I assume that it is
because WPF tries to set the foreground property directly on a single
control content - which I do not have in this case.

Any ideas?

Med venlig hilsen / Best regards

Benny Tordrup

comment 1 answer | Add comment
Tuesday, 24 June 2008
Arrays as parameters Steve Abaffy 18:17:56
 Hello,

How does one do the following:

Class Someclass{

Private string [] myarray;

Public string [] MyArray {get { return myarray[];} set{myarray[]=
value;}}
}
Correctly? I want to be able to declare this class in my main function and
set the parameters of the myarray as

Someclass Sc = new someclass;
Sc.MyArray[0] = "This is test 1";
Sc.MyArray[1] = "Thisis test 2";
Etc...

Thanks

comment 7 answers | Add comment
Sunday, 22 June 2008
.net sql server account database authentication question Mark Aurit 03:17:23
 Im creating an asp.net/sql server app; Id prefer to use a sql server
account to maximize connection pooling, our security guy wants
integrated security. We've reached an agreement where I can use a
single account as long as its a domain account, but Ive been unable to
figure out how to do so (if its even possible). Im thinking I either
need to use integrated security but force sql server to use a single
account, or use a regular connection string, naming the domain account
and password with Integrated Security=false.
Does want I want to do sound possible?
Thanks, Mark

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 2 answer | Add comment
Wednesday, 18 June 2008
BUG??? Reflection and DEVPATH Yosi Taguri 19:04:05
 hi there
I'm devloping an application which relies on assemblies that are not on my
path during devlopoing time.

I wanted to redirect all the assembly searches to a pecified place.
I've found the DEVPATH solution in help
I've added the DEVPATH as an envirinment variable.

restarted VS.NET so it will take effect (although it has no meanning for
vs.net)

I've created a config file as in the help:

<configuration>
<runtime>
<developmentMode developerInstallati­on="true"/>
</runtime>
</configuration>

and still I get an exception while trying to load thru reflection an
assembly that is in the DEVPATH.

using fuslogvw.exe I can see:

LOG: Processing DEVPATH.
LOG: DEVPATH is not set. Falling through to regular bind.


how can I activate it?????

what am I doing wrong?


yosi

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.deve­lop.com.

comment 3 answer | Add comment
Wednesday, 11 June 2008
Programmatically creating self-signed certificate Alex Ivanoff 19:41:39
 How do I programmatically create self-signed certificate in .NET?
Reflector shows that System.dll imports CertCreateSelfSignC­ertificate
(System.Security.Cr­yptography.CAPIUnsaf­e class), but this import is not
being used. Did they just forget?

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
Thursday, 29 May 2008
Problem with Debug.Assert Brady Kelly 13:26:02
 When I run the following code in the IDE, under the Debug configuration,
when I choose Retry on the dialogue presented by the assert, I get a message
that no source code is available for the current location. Can anyone
enlighten me as to why VS2008 cannot see the obviously available code at
that location?

string ns = null;
// -- Missing code or operation to initialise ns should be here.

// I only want to stop processing here when debugging.
Debug.Assert(ns != null, "Whoops! ns is null");
if (ns == null)
{
Trace.WriteLine("Ca­nnot print ns because ns is null");
}
else
{
Console.WriteLine("­ns = {0}", ns);
}




===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 4 answer | Add comment

Add new topic:

How:  Register )
 
Login:   Password:   
Comments by: Premoderation:
Topic:
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > .Net DevelopmentGo to page: « previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

see also:
MySQL crashes while importing a dump
BUG in full text search ?
Database design question
pass tests:
What is Your Temperament?
Winx.Stella or Blymm or Flora
see also:
How to convert dvd and video to MP4…
Enjoy DVD and video with your new…
Christmas Offer: easily convert DVD and…

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .