Personally, I try and write secure ASP.NET code. However, I have become quite paranoid about the code I write, as I used to work for a Registrar (high fraud targets). Are there any ASP.NET functions I should look at with extreme scrutiny (other than SQL access - I know enough not to do dynamic SQL).
...
Hello friends
i am trying to create a confirm box similar to Hotmail's Confirm box when we click on the Empty Folder in the Junk Mail folder.
but i am unable to figure it's working and the logic behind it.
i am using ASP.Net 2 in VS 2005 Pro.
is there any special logic which goes behind the working of the confirm box like the one use...
Hi,
What I'm trying to do is show a updateprogress over the updatepanel that I'm currently updating. Preferably I would like to show an animation of some kind of progress indicator and also disable the updatepanel under the updateprogress so that the user cannot reclick the controls that set of the update in the first place. The idea wo...
Hello, I have a basic question:
I am getting text data from a database and want to display in a label (x width, don't know if width is important but I guess it is) upto 5 lines of text (if in database the data is less then 5 lines all will be displayed).
Need to work with all borwsers.
Thanks for any help.
...
I need to set a javascript array from code behind using C# in Asp.Net2008 the problem now is that when i register the array using the following C# code:
string ArrVal = "";
string Sep = "";
for (int i = 0; i < 17; i++)
{
ArrVal += Sep + FilesCount[i].ToString();
Sep = ",";
} ...
Hi,
I'm looking for simple ASP.NET WebMail System.
Free or Open Source should be great.
Thanks.
...
I have a label in a master page (sample.master) called lblHeading.
I want to dynamically change the text of the label when I load the content page.
I need to do this because I want to change the heading to something meaningful but only after I know about the content of the page.
Is this possible?
...
Can ASP.Net routing (not MVC) be used to serve static files?
Say I want to route
http://domain.tld/static/picture.jpg
to
http://domain.tld/a/b/c/picture.jpg
and I want to do it dynamically in the sense that the rewritten URL is computed on the fly. I cannot set up a static route once and for all.
Anyway, I can create a route like...
What tool do you use to only zip up the source code of an open souce project or choose which files you want to include for packaging? I'm using Visual Studio 2008.
...
I'm trying to convert "~/Uploads/Images/" to an absolute path I can create a FileStream from. I've tried VirtualPathUtility and Path.Combine but nothing seems to give me the right path. The closest I got was VirtualPathUtility.ToAppRelative, but that was just the file's location as a direct child of C:.
There must be a way to do this.
...
i am porting over a website from asp.
i have one page that i can't figure out how to migrate it.
The page is dynamic in the sense that it reads in other html pages and sticks the content into the main "container" page. In the middle of the asp page it has sections like below
<%
Dim fso1, f11, ts1, s1
Const ForReading1 = 1
Set fso...
I am using aspx and c# for a setting a authentication cookie for a login. FormsAuthentication.SetAuthCookie(UserName, True)
I want to store more information in the same cookie. Can I add values to this authentication cookie or do I have to use a second http cookie?
Basically I'm looking for away to store the User's Id so I may be able ...
Sites like cnn.com or foxnews.com.
Where do they store all the articles? In html files? In database?
More logically to store everything in DB but how to generate a static link to something that is inside DB?
It's not that they have a a dynamic page load like: LoadArticle.aspx?ArticleID=123, every article has it's own address.
Please ...
I'm at the end of an ASP.NET project and we've been using YSlow to analyze our site. There are a ton of images and we'd like to combine some of them into a single request. Any suggestions?
...
I'm using ASP.Net 2.0. I have a custom control that is inherits from a 3rd-party vendor's control. I'm trying to override the Render method.
Protected Overrides Sub Render(ByVal writer As HtmlTextWriter)
if (some condition is true) then
Dim d As New Button()
d.RenderControl(writer)
else
MyBase.Render(writer) ...
Ideally I would like to put all the code to access and fetch the data from the database in a separate utility files and all those methods at data binding times from the .net code behind file. The problem comes is when should the connection object be closed. For simple stuff, the helper method can close the connection but for things like ...
I know how to do this in MVC:
<title> <%= Model.Title %> </title>
I also know how to bind a SQLDataSource or ObjectDataSource to a control on a form or listview.
But how do I render a field from my SQLDataSource or ObjectDataSource directly into the HTML?
...
hi,
my ScrollViewer doesn't work.
scrolling isn't possible.
<ScrollViewer>
<StackPanel>
<ListView> </ListView>
<Grid> </Grid>
<ListView> </ListView>
</StackPanel>
</ScrollViewer>
i have tried different possibilities with setting of height (for ScrollViewer and StackPanel).
how to scroll the content ?
EDIT: Vertica...
I have a brand new database on an ISP which I intend to use to build an ASP.NET data-driven website. However, I would like to build the whole thing locally and transplant the database to the ISP.
I have TCP/IP access (i.e. I can connect to the remote database directly thru SQL Server Management Studio Express), but I do not have Termin...
My ISP doesn't have ASP.NET MVC installed on their servers yet, although they do have .NET Framework 3.5 SP1 so they do have the new routing engine.
It occurs to me that, if I create a model using Linq to SQL, it's possible to expose parts of the model as properties in the code behind. I could then render them in the web page (my "view...