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?
...
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.
...
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...
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...
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...
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...
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 ...
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...
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.
...
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...
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...
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...
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. ...
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.
...
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?
...
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
...
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.
...
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...
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...
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 ...