.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How to obtain additional information

Posted By:      Posted Date: October 16, 2010    Points: 0   Category :ASP.Net

var QueryMax = (from y in db.tbl_PotniNalogis
                        select (int?)y.Stevilka).Max();


This works, but I would like to obtain further information Year.

Currently only displays a number. How to include the year in txtStevilka.Text?


View Complete Post

More Related Resource Links

How do I add additional information to email message

I have a contact form that has the standard email fields such as name, email, street address, city, state, and body.  This is being done with System.Net.Mail.  I understand how to use the body, to/from address, and subject.  I don't understand how to include the street address, city, and state with the email though.  I want this additional information to be sent with the email some how so the recipient can have access to it.  I assume this should be included with the body when the email is sent.  I don't understand the best way to so this though.  I thought about appending the values of these fields to the body of the email.  I don't know how to format this so it looks good though.  The formatting I want to do is very basic.  I would like each of these values to be on a separate line before or after the body of the email.  I'm not interested in colors or anything too fancy.   I prefer to send a plain text email, if possible, if these values can be included on their own line.Can anyone provide an example or a link to an article on this?  Do I have to use an html formatted email and create new lines with in the body for these fields?

Error 15404 - Could not obtain information about Windows NT group/user 'Dev\Administrator', error


SQL Server 2008 R2 with the latest CU floods event log with "An exception occurred while enqueueing a message in the target queue. Error: 15404, State: 19. Could not obtain information about Windows NT group/user 'Dev\Administrator', error code 0x54b".

Domain controller is located on the same server (Win 2008 R2), this is SharePoint virtual machine. There are no DNS or Directory Service errors.

How can I troubleshoot this?


How to add custom information or additional fields in detail pane of win vista and win 7 using c#.ne


Hi, i have a file type for my application for which i want to show some custom information in Organize\Deatails Pane in windows explorer. Like for a word file it shows author and stuff similarly i have some custom information for my file which i want to show.

Anybody with idea on how can i do it?

how to add new attributes too the detail pane programatically?

Would Like To Programmatically Obtain The Same Information As CorFlags


When you use CorFlags to obtain the CLR Header information of an assembly you see something like...

Version : v2.0.50727
CLR Header: 2.5
PE : PE32
CorFlags : 3
32BIT : 1
Signed : 0


Version : v2.0.50727
CLR Header: 2.5
PE : PE32
CorFlags : 1
32BIT : 0
Signed : 0

Version : v2.0.50727
CLR Header: 2.5
PE : PE32+
CorFlags : 1
32BIT : 0
Signed : 0

This information lets you see what platform the assembly was targeted for (x86, AnyCPU or x64), on what .NET Framework version it was built and what CLR version it was made.

I am hoping to be able to do the same without loading the assembly.  While I can use the PECOFF_V8.DOCX to inspect an assembly for the PE value, I have not been able to determine how to find either of the following:

    (1) 32BIT flag


    (2) either the VERSION information OR the CLR HEADER information

similar to what CorFlags p

Visio Addin - issues with install and looking for additional information


Hi Folks

I tried to install the Visio Data mining addin to view DM models.  However,  I can't find it in menus or list of addin and I am struggling to find any information on the addin in general (beyond the basic install information).  It doesn't appear that the addin has been disabled (see screenshot ), but then again I can't actually see the add in the list of addins). I am assuming, if active, it would appear in the excel ribbon like the "Datamining" or "Analyze" menus items. Any suggestions on what may have gone wrong or  links to articles would be appreciated.



display additional information in the same row in a dimension


i would like to display additional information (like add1,add2,postal code) along with customer name in same row

normal hirerchy will be as below

customer name



            postal code

 I'd like to display as below the add1, add2,postal code in the same Excel row as shown below as purely informational, additional data.

customer name

        add1      add2    postal code

is it possible?

Kind Regards

Could not obtain information about Windows NT group/user '' - Error



when i am trying to  run Create  Assembly scipt i am getting follwing  Error...

 Could not obtain information about Windows NT group/user [DOMAIN\user].

Pleas help me on this ?


Any idea if Information Rights Management (IRM) will support additional file types in future version


In Sharepoint 2007, IRM supports Excell, Word and PowerPoint out of box...

Any idea if there will be additional out of box support for filetypes such as PDF, TIFF, Outlook Emails (.msg)...?

I am hoping to avoid creating custom protectors to protect the files and building an add-ons to software such as Adobe Reader to understand the RMS licences...

Looking forward to additional suggestion as well...


How to get more information about the exceptions that can happen in SharePoint 2010 projects?

In case there is an exception anywhere in the SharePoint 2010 project (most common place an exception would happen is during deployment of your SharePoint project, custom deployment configuration or custom deployment steps), there's a registry key EnableDiagnostics available for you to use.

Information about sessions


Some questions about sessions:

I know sessions information is stored in the form of cookie and you can use qurystring for that if you set cookieless session in web.config. But I don't exactly understand the scope of a session.

What I believe is when you login to a website, a session cookie is created and the scope of that session is within that page only. If you close the browser that session gets killed and when you open the browser again and go to that site then a new session is created ie a new session is created on every request. Is this correct?

But I have seen in many websites, even if you close the browser and open it again the session is not killed, how does that happen?

Can anyone clear out and explain the scope/lifetime of sessions


ERROR [HY000] [Informix .NET provider][Informix]Database locale information mismatch


Hi, there is an upgrade to my infimacs server and my web application encounter this error after the infimacs is upgraded.

Below is the information on the server before/after the upgrade.

Before            After

---------       -----------  

Solaris 8      Solaris 10

IDS 9.40     IDS 11.50

The web server where the web application hosted is running IBM Informix Connect 2.81. There is no such error before the upgrade is done.

As a developer, i have IBM Informix Client-SDK 2.90 installed on my local pc and debug the page where the read is needed from infimacs but no such error found.

The error come out only when it is hosted on the web server where IBM Informix Connect 2.81 is installed.

I have gone through many articles and it suggest me to set the environement  variable in the server :  DB_LOCALE=en_us.819.

I haven't try this solution but i think that this might not be the best solution.

Is it possible to to to have this settin

MS Ent Lib:How do I obtain the ServerName associated with the DBCommand object?



The application I am currently working on uses Microsoft Enterprise Library Data Access block for Data Access.

I have pasted the following method to provide context:


 public static DataSet ExecuteDataSet(string connection, string procName)
            DataSet ds = null;
                SqlDatabase db = new SqlDatabase(connection);
                DbCommand dbCommand = db.GetStoredProcCommand(procName);
                ds = db.ExecuteDataSet(dbCommand);
                return ds;
            catch (Exception ex)
               //Exception handling code


In the next release we are planning to use SQL Server 2008 R2 as our database and we will be implementing mirroring to provide automatic failover.

I have been tasked with rewriting the DAL to take advantage of this.

A sample  connection string used by the application today is as below:


How to send an email with information in query string


First I will say I googled (Binged to make Bill happy) for this but could not find anything, perhaps I am not stating what I need correctly;

I have a website that a customer creates orders (for a printing company) and after the order, I would like to email the customer a link to view the status of their order;

I need to send the CustomerID in the link so on the returning page if a CustomerID is detected in the querystring, I "auto login" the client and open the "Dashboard" for the order page for that customer.

Can anyone point me in the right direction as to how to send the link and how to parse the querystring to get the values from the link;

Thank you if you can point me in the right direction.

Problem to obtain client IP on web service



I'm having problems to obtain the client IP on web service. Here's my scenario:

One server with Windows 2003, hosting the web service using .Net Framework 2.0, with IP and host name ServerTransaction.
Other server with Windows 2003, hosting a web application using .Net Framework 2.0, that consuming the web service on  ServerTransaction, with IP and host name ServerApplication.
Many other computers on the local network (IPs:,,, ...) acessing the web application on ServerApplication.

On the code of the web service I've tried to use HttpContext.Current.Request.UserHostAddress or HttpContext.Current.Request.ServerVariables("REMOTE_ADDR") or HttpContext.Current.Request.ServerVariables("HTTP_X_FORWARDED_FORR"), but always I can only get the IP of ServerApplication (

Any idea or tip?

Thanks and sorry for my bad english.

Obtain mobile device screen size



I am trying to get the screenHeight and width:


 // Get MobileCapabilities from current Request.Browser
        MobileCapabilities currentCapabilities = (MobileCapabilities)Request.Browser;
        // get a property of the  browser 
        Response.Write(currentCapabilities.ScreenPixelsHeight +  " <br>");
        Response.Write(currentCapabilities.ScreenPixelsWidth  + " <br>");


 but this is always show that the Height is 480 & the width is 640

I am trying on HTC with Opera Mobile 9.5

Any Advice?

need information about ironpython



 i have installed visual studio 2008.it works fine

now i want to try ironpython. :)

so please give me details of step for installation and which sources require to start ironpython in visual studio 2008.



.NET Visualization: Visualizing Information with .NET


Having the capability to draw pictures usually isn't enough for a good information visualization platform. The key to building a visualization platform is capabilities such as interactivity, generating metadata, and overlaying related data. You need a level of flexibility that lets you render any data in any way at any time.

Laurence Moroney

MSDN Magazine August 2009

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend