When the user select an item from a dropdownlist and presses a button, my application shows a list of data manually binded and filtered according the selected value. If the user presses the Refresh button of the browser, it asks for confirmation whether the user is sure they want to submmit the query again.
I don't want the browser asks...
I'm still pretty new to using Autofac and one thing I miss in the documentation and examples is how to make it easy to get to the configured container from different places in a web application.
I know I can use the Autofac controller factory to automatically resolve constructor injected dependencies for controllers, but how about the ...
MyMasterPage.master
<head runat="server">
<script type="text/javascript">
$(document).ready(function() {
var userName = '<%# System.Web.HttpContext.Current.Request.ServerVariables["AUTH_USER"].ToString() %>';
alert(userName);
$.ajax({ type: "POST",
url: "DemoWebService.asmx/GetFulName",
...
I like the feedback link that's static while the page scrolls and I want to add something similar to my site. See www.bind.pt, right side, for example. However I don't want to use UserVoice. I want to use a popup window with a form-to-email functionality.
Is there a similar sample asp.net component or Javascript that's available for a l...
I have an ASP.NET application that needs to send emails in Korean. These emails are sent in plaintext.
But when the emails are received, they look like this:
? First name? ??: ?????.
?? ???? ???? ?? ??? ??? ?? ???? ????
????? ???? ????. ??????? ??? ?????
???? ??? ??1-888-123-4567 ? ??????? ??
[email protected] ?? ??????
...
I'm trying to figure out the cleanest way to do this.
Currently I have a customer object:
public class Customer
{
public int Id {get;set;}
public string name {get;set;}
public List<Email> emailCollection {get;set}
public Customer(int id)
{
this.emailCollection = getEmails(id);
}
}
Then my Email object ...
Hello everybody,
I am working on my project and having strange result with asp.net C# and stored procedure that returns scalar variable. In short, I am trying to return user name, however I get only the first letter from the name, which is strange.
I went trough the code couple dozen of times; however i still cannot find the error.
I w...
I have an event handler in C# code-behind for an .aspx page. Each time this event handler fires I want it to update a Javascript variable. I thought I could do something like this.
int scale = (int)myObject.Scale;
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "JSVariables", "scale=" + scale, true);
However, as it was p...
I have a Dictionary I want to bind to a DataList. But I also want to use the Dictionary's Key value for the DataList's DataKeyField property. Is this possible?
...
Are there any best practices or examples of how to best integrate Facebook connect with an existing ASP.NET Application using the Membership provider (or something similar). I'm sure I can get something going, but, it would be great if there was some information and best practices on this to mitigate any security concerns. Currently I...
I'm calling the following code:
protected void SetCookieValue(
string sCookieName, object oValue, DateTime dtExpires)
{
Response.Cookies[sCookieName].Value = Utility.ToStringValue(oValue);
Response.Cookies[sCookieName].Expires = dtExpires;
Response.Cookies.Add(Response.Cookies[sCookieName]);
}
With a date set to 30 day...
I have a DataTable that contains 3 fields: ACount, BCount and DCount. If ACount < 0 then I need to display 'S' in one of the columns of the GridView. If ACount > 0 then I have to display 'D' in that column(in label). Same thing with BCount and DCount. How can I do this conditional check in the RowDataBound function?
...
Hi,
I need to get the DataKeyNames in codebehind of my ASP.NET application (VB.NET). How can I get that?
...
Hello,
I have a aspx web application that updates or adds files in a database. The clients access through the browser and one of the requirements is that they can start the update and be able to close the browser while the update continues. It appears to run for a little bit after I close the browser but then it stops. How can you keep...
Hello everybody,
It must be my special luck that today I stack with another problem and for second time coming here for help. And I really need help on this one.
I have a listView control on which i have a button control. I am trying to add event handler to this button, I googled a lot before coming to here, but examples i found either ...
What method do you use to get a compile time error when the database schema changes occur in an ASP.NET project?
For example, if you have a GridView bound to a DataSource, I can only get runtime errors when a schema change occurs, not a compile time error. Intellisense works fine on the code behind using datasets, LINQ, etc, but I cant...
Are there video tutorials for Servlets and JSPs with the same caliber as asp.net and windowsclient.net Learn section?
...
Good evening/morning/after/noon.
I have an ASP.net 3.5 website and I am using vb.net in VWD 2008 Express, I am also using MS SQL Server 2008 Express, I used ajax tabs and a textBox characters counter control developed by http://www.4guysfromrolla.com/ The database is attached with MS SQL Server Management Studio Express and the files ar...
Are there video tutorials for Enterprise Java Beans with the same caliber as asp.net and windowsclient.net Learn section?
...
Is there any way to render and export an rdl file within a batch process without using SSRS?
I don't want the overhead of SSRS (IIS + database) and instead want to handle this within my own batch/scheduling service.
Thanks
...