I'm using MS Enterprise Logging Application Block in an ASP.NET website.
For production launch, I will set up a log listener in one of these locations:
Sql Server database
Windows event log
Text files
Which has the least impact on performance?
NB - I can't switch to Log4Net or ELMAH at this point, so please don't suggest that in yo...
Hi, All ;)
I am experiencing problems with Forms Authentication. When I try to load my Login.aspx page neither javascript nor stylesheets do not load.
Here is part of my web.config file
<authentication mode="Forms">
<forms loginUrl="Login.aspx"
timeout="30"
name=".ASPXAUTH"
p...
Quote from http://msdn.microsoft.com/en-us/library/4wt3wttw.aspx:
One instance of the HttpApplication
class is used to process many requests
in its lifetime. However, it can
process only one request at a time.
Thus, member variables can be used to
store per-request data.
Why per-request? Maybe per set of requests? Seems t...
I'm using ListView + DataPager + ObjectDataSource mix.
In the implementation of my SelectMethod of an ObjectDataSource I'd like to access a global variable set in the PageLoad() event (the method will return just the proper number of items per page). Although the variable is initialized in PageLoad() it appears to be null in SelectMeth...
I am trying to profile an ASP.NET application the Visual Studio 2010 ASP.NET profiler and I get the following output:
C:\MyWebApp>VSPerfAspNetCmd /i /Output:MyWebAppSampling.vsp http://localhost/MyWebApp
Microsoft (R) VSPerf ASP.NET Command, Version 10.0.0.0
Copyright (C) Microsoft Corporation. All rights reserved.
Configuring and att...
I know this will seem like a dumb question but I'm just getting started in .NET from an old-school C mindset.
I created a program in MS Visual Web Developer 2010. It has a form that simply launches a script that manipulates a database. The project lives in several files and they are all inherited so they see each other and it accesses...
Hello, I have loaded a datatable with 4 elements and attached it to a dataset. I have bound the dataset to a Gridview. I am using the following code to fill the Gridview:
ds.Tables.Add(dt);
GridView1.DataSource = ds.Tables[0];
foreach (DataColumn dcc in ds.Tables[0].Columns)
{
HyperLinkF...
I have a masterpage that contains all the javascript and inside the content control, there is a link that calls a javascript function and I want to pass the id once it's rendered differently by the server.
<asp:TextBox ID="txtstart" runat="server" Width="20%"></asp:TextBox>
<a title="Pick Date from Calendar" onclick="calendarPicker('<% ...
I have a website that occasionally needs to have a handful of the tables in its database updated. The updates come from another system that exports to comma delimited text files. I can then either FTP the text files to the web server, send them in through an admin upload page, or manually log in to Remote Desktop to download the text fil...
I have a link that is located inside a content control. This link calls a javascript function that opens a popup window containing a calendar and passes it the transformed id from the server of a textbox control using clientid. I need to be able to click on a date and have the popup close and insert the date into the textbox of the id I ...
Please help me out
I am having a Gridview named GridViewGender with a RadioButtonList with it
Inline code is
<asp:GridView ID="GridViewGender" runat="server"
AutoGenerateColumns="False"
Width="494px" DataKeyNames="ren">
<Columns>
<asp:BoundField DataField="ren" HeaderText="Items" />
<asp:Templat...
In an asp.net web page, if an user clicks a link, I will post the page back and generate a file on the server side and popup the download window for the user to open/save the file. before posting back, I display a message such as 'generating file...'. my question is, is there any way to hide this message when the popup window shows up? t...
I have a gridview control that extends the default gridview. I have added an attribute called "hiddenSelectedValues" to to the gridview during the "PreRender" event and I have a private variable that points to the value of that attribute.
I have some javascript code that modifies the value of this attribute based on the user checking o...
If you have a code, log in information of which is encrypted, how to decrypt using asp.net ?
Cryptography class?
Any other?
...
i just want to see all the report on a pdf format on button click.
i use ...
protected void Button1_Click(object sender, EventArgs e)
{
//Create Document class object and set its size to letter and give space left, right, Top, Bottom Margin
Document doc = new Document(iTextSharp.text.PageSize.LETTER, 10, 10, 42, 35);
//Writ...
What is the best way to detect if a user leaves a web page without saving?
i have searched before i post this question what i haven't found related topic to deal with asp.net (i have controls dropdwonlist, listbox, textbox....)
...
Can we depend on the current working directory in ASP.NET code-behinds? Or, in other words, can we use relative paths, and be sure that they'll work?
If, in one page on a website, I set the current working directory to something specific, will it still be the same the next time another page on the website is loaded? When the same page...
Hello,
I am trying to add a radio button click event at runtime.
Radiobutton button = new RadioButton();
button.GroupName = "buttonGroup";
button.OnCheckedChanged = "buttonGroup_OnCheckedChanged"; //I can't do this?
I know I can do this from the markup, but when I try to do this from the code behine, I cant find OnCheckedChanged.
Th...
Asp.net web application is complaining "That assembly does not allow partially trusted callers."
I am hosting with medium trust. How can I avoid this?
thx
InnerException: null
Message: "That assembly does not allow partially trusted callers."
Source: "TweetSharp.Twitter"
StackTrace: " at TweetSharp.Twitter.Fluent.FluentTwitter..ctor...
I'm facing a problem that Google couldn't solve yet!
I'm trying to store URLs in an XML file. Problem is that these URLs contain Equal Signs (=) in them. And that generates an error.
Here is my code: (**token is a variable that contains the URL)
Dim child As String = vbCrLf & "<Link URL='" & token & "'></Link>"
Dim fragment As XmlDocu...