asp.net

How do I retrieve version information from a WCF Web Service?

I want to log the assembly version information into a log file each time my WCF web service is called. I know that in an application the My object has an Application object which has the Info structure, that contains the Version string that I can use. How can I get the version information for the WCF service to a log? ...

Adding/updating child and parent record same time

Can someone please show me the easiest way to create/update a parent and child record at the same time (like customer with multiple addresses) with least or no code as possible? Both Web Forms and in MVC. ...

How to test asp.net email is being sent

Hi, I have some code in my asp.net which sends an email: public void SendEmail(string message) { var body = message; var email = new MailMessage(ConfigurationManager.AppSettings["SenderEmail"], ConfigurationManager.AppSettings["RecipientEmail"], "Email Test", body); v...

ReportViewer control connecting to sql server 2008 gives connection error.

Hi, I am trying to display a report that is deployed on a reporting server using the asp.net reportviewer control. I am using visual studio 2010, the reportviewer control from the assembly Microsoft.ReportViewer.WebForms, Version 10.0.0.0. The SQL server is a 2008 version on a remote machine. This gives me the following error. The atte...

What libraries are out there in Java/J2EE and .NET for Coldfusion?

I have always been doing web applications in coldfusion, and not long ago, I needed to generate bar codes for a particular web app, so I searched and one of the results was: http://ricardo.parente.us/2008/09/printing-barcode-from-coldfusion/ In this solution, coldfusion utilizes Java's barbecue library to generate barcodes In coldfusi...

How To Deploy From An Asp.Net Website

Is it possible to run an msi installation file remotely from an Asp.Net web server? I'd like to have a button labeled "download" where a visitor who browses to the web page and clicks the button can run an msi file to install a seperate windows application (in this case, a wpf application) onto their computer. In the event that the ins...

.NET/WCF: Are WCF services on a different "tier" than ASP.NET?

At work, we have the UI layer (CSS, HTML, JavaScriptall executes in the browser), middle-tier (ASP.NET MVC and our C# libraryall executes server-side) layer, a service layer (WCF services that the middle-tier calls as-needed), and a DBO layer that WCF services use instances of. When the middle-tier (e.g. a static .cs class) calls a WCF ...

how to create a custom control for a textbox

Hai Freinds So far i have used this coding to create a custom Control as my knowledge in the pervious post.i dono it is correct or not.I need a further help regarding this.so far i have used this coding the appcode->Number.cs in that i have used this coding further what should i do: my requriements is that i drag the textbox in the co...

Fill gridview using javascirpt on selected tree node value

Hi to all, my requirement is to get the result in gridview based on the treeview node selection using javascript i.e. client scripting. Currently the same can achieve using server side scripting, but i want with out postback and without using selectednodeindexchanged event. Pls. help me to solve this problem. ...

sorting column in jqGrid

hi, i know how to sort the data that is coming from query.But i want to sort data which is coming from session. For sorting the data that is coming from query,i am sending sidx and sord as string query = AppConstants.strAdminSelectCat;//this is query where i am using order by {0} {1} for sorting string sqlString = stri...

ASP.NET Image Control inside Panel

I have a panel control to which i add image controls from code behind. Panel1.Controls.Add(new Image { ImageUrl = String.Format("img/{0}.gif", x) }); However when i try to access the new image control to modify certain attributes, i get a literal control instead. ie: Panel1.Controls[0].Width=new Unit(10, UnitType.Pixel); results i...

Why tabcontainer(ajax control toolkit) and tab panel is not showing in chrome but working fine in IE8 anf FF3.6.9?

I am using a tab container and inside that different tab panel <cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="2" ForeColor="Blue" AutoPostBack="true" Width="100%" EnableViewState="True" OnActiveTabChanged="TabContainer1_Click"> <cc1:TabPanel ID="view1" runat="Server" HeaderT...

How to make browser full screen on page load using javascript with timer control

I want a browser to go full screen as soon as my page loads. Is it possible in javascript. I know the shortcut key for this F11 but requirement is on page load only. After reading the solution provided below. I achieved full screen but here i got a trap. I was using timer to make my page postback to get fresh data after every 5 second. ...

Best Design Pattern for Generating the UI dynamically

I am planning to generate the UI from database. The platfrom will be ASP.net. Can anyone help in identifying the best design pattern/Architecture that suits for generating the UI and events dynamically. ...

Encryption and Decryption Key, where to store and what to use for .net application

We are designing a .net web application that has an external and internal site. Both sites need to encrypt data only the internal site needs to decrypt data. We are wondering what are the best practices for: Which encryption method to choose? Where to store the encryption / decryption key? ...

To disable the addressbar and standardbuttons bar in IE when my application lanches ?

when my application launches in the IE from start page to main page i want to hide the addressbar and the standardbuttons bar of IE through the codebehind and here am using masterpage concept so i have to write the code in master only i think so....can anyone help for this ...

web programming choice - language, database, reliable hoster and auto-scaling

Could you please suggest - programming option? Our Web application could have 60000 database requests/second or more in future. Which is better: MS-SQL or MySQL or other? Which is better: Asp.net, PHP, JSP or other? What kind of webhosting is reliable for auto-scaling? Any good webhosters or hosting plans? Thanks a lot. ...

how to change the FormatCurrency()?

I am using this line : FormatCurrency(DBReader("Price").ToString, 2, True) to format my Currency and I have two websites, the first one is English and the second is Arabic. In the English website the price will be in $ Currency because the the localization setting is set as "en-US". In the Arabic website the price will be in ل.ل Cu...

Registering custom controls fails

I am attempting to register my user controls within the webconfig file because I am receiving the Element does not exist error, but I am receiving the following error when I try to register them in webconfig: Invalid or missing attributes found in the tagPrefix entry. For user control, you must also specify 'tagName' and 'src'. For cust...

How can I build Hierarchical Html List from Dataset?

I am getting following output in Dataset ActivityID ParentActivityID ActivityName AcivityLevel 0 NULL Dashboard 0 1 NULL Market Trends 0 2 1 News 1 3 NULL Master 0 4 3 Products 1 5 3 Segments 1 6 3 ...