I'm using an ASP:LinkButton inside of an ItemTemplate inside of a TemplateField in a GridView. For the command argument for the link button I want to pass the ID of the row from the datasource that the gridview is bound to, so I'm doing something like this:
<asp:LinkButton ID="viewLogButton" CommandName="viewLog" CommandArgument="<%#Eva...
Hello,
I have a very large ASP.NET project that i need to make good with web standards -- the application has two parts:
1.) An administrative piece that allows users to 'build' sites
2.) Front end that makes up the users sites (many web controls, master pages, usercontrols, etc... much of it is just code)
I was wondering what poeples ...
This thing is so confusing compared to the old IIS, I haven't even found where to pick the version of .NET still. I had to comment out the and from my web.config because I kept getting:
This configuration section cannot be
used at this path. This happens when
the section is locked at a parent
level. Locking is either by defa...
I know that I can call a page method with jquery using the following syntax
$.ajax({
type: "POST",
url: "Default.aspx/GetDate",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
// Replace the div's content with the page method's return.
$("#Result").text(msg.d);
...
I need to pass back a JSON result for a routine I am working with. How can I encode an Array I created to JSON? I am writing this in VB.net
...
I have an ASP.NET application using Forms Authentication. When the user clicks the Sign Out button on the page it runs the following code.
FormsAuthentication.SignOut();
Response.Expires = 0;
Response.Cache.SetNoStore();
Response.AppendHeader("Pragma", "no-cache");
However the user can still just press ...
I have a gridview that is databound in the code-behind using a stored procedure. I am handling the Paging event in the code as well, but whenever I click on a page number, I keep getting the empty data template instead of more rows. Any suggestions?
EDIT: I am re-binding the data source of the gv after I change the page index.
Here i...
Ok, hopefully I have worded this in a way that you can understand. I'll start off by saying my website has a landing page of http://www.mywebsite.com/PageOne.aspx
On PageOne.aspx, I have a link to another page: http://www.mywebsite.com/PageTwo.aspx
On PageTwo.aspx, I have an link to the following:
<a href="http://www.mywebsite.com/M...
I am building an iphone app that will require downloading an image from an ASP.NET web application (either as part of an XML document that is formatted according to the property list schema or by itself) into an (NSData *) object.
What encoder should I use on the server side to generate compatible XML for the iphone? Is it as simple as...
I have an ASP.NET web page with a databound RadioButtonList. I do not know how many radio buttons will be rendered at design time. I need to determine the SelectedValue on the client via JavaScript. I've tried the following without much luck:
var reasonCode = document.getElementById("RadioButtonList1");
var answer = reasonCode.Select...
I was trying to add the date to my log file name and I was able to make it work by following the few suggestions I've found in stackoverflow. Everything works fine but for some reason, the first file always has the date appended twice. For example, instead of log.2009-02-23.log, I get log.2009-02-23.log.2009-02-23.log.
I found it so weir...
Can someone guide me to a reference for the minumum security permissions on each webfolder in an IIS7 website?
For Users, Admin, System, Network Service?
I have Network Service as a DB Owner on SQL as well, is this necessary or should I restrict access from it?
EDIT: MVC FOLDERS SPECIFICALLY
...
I'm binding a control to an XmlDocument and using the "XPath" binding expression to output the data:
<div class="Bio"><%# XPath("Biography") %></div>
However, this returns the InnerText property of the "Biography" element, not the InnerXml. This means it strips all inner tags from it, which is not what I want.
I looked through the X...
I'm working on a web application import program. Currently an admin user can upload a formatted csv file that my page will parse. I'm experiencing an execution duration issue as each line pertains to a file that has to be saved to Scribd, S3, as well as some internal processing.
What would you guys recommend for improving execution...
The MSDN walkthroughs provide a number of examples where you can drag a DataSource from the toolbox, run through some simple configuration steps, then drag a ListView onto the screen, point it at the DataSource, and hey - you've got full table editing.
Now I'm trying to write my own DataSource class (a class that implements System.Web....
I am trying to do an ASP.net custom control for the Flow Player flv player that has the swf object embedded. With Steve Orr Controls I learned that you can embed javascript files and register them so you don't have to always add the javascript files manually. I am wondering if this holds true to SWF files.
I have been reading all over t...
I have a hidden field and I change the value just before submitting the form using Javascript. But in server side it is null or empty. Request.Form["hidAction"] is
empty.
<script type="text/javascript" language="javascript">
function DoChange()
{
document.getElementsByName('hidAction').value = "filter";
alert(d...
To further a personal project of mine, I have been pondering how to count the number of results for a user specified word on Twitter. I have used their API extensively, but have not been able to come up with an efficient or even halfway practical way to count the occurrences of a particular word. The actual results are not critical, ju...
Duplicate of: Using Resharper…Time Saver?
(and others)
I have been hearing alot about the resharper product and I have read the benefits on their website.
I would like to know from actual users of the product what they consider to be the invaluable & cannot live without benefits.
Are the benefits worth the purchase especially if yo...
This piece of code
<asp:DropDownList runat="server" ID="testdropdown" SelectedValue="2">
<asp:ListItem Text="1" Value="1"></asp:ListItem>
<asp:ListItem Text="2" Value="2"></asp:ListItem>
<asp:ListItem Text="3" Value="3"></asp:ListItem>
</asp:DropDownList>
yields this error:
The 'SelectedValue' property cannot be
set ...