I have a combobox, but I'd like it to show two different column values from the datasource.
So instead of simply filling it with "rowid" (possible values "1","2","3" etc) I'd like it to show "letter" ("a","b","c") column as well, but in that same box.
The actual value that it sends can just that rowid value, but for user friendly purpo...
This is my code in c#
protected void ibtCopiar_Click(object sender, ImageClickEventArgs e)
{
GridViewRow grdrows = DGPlanilla.Rows[0];
TextBox tb1 = (TextBox)grdrows.FindControl("TextBox1");
string valor = tb1.Text;
if (valor != null || valor != "0")
{
...
We have a vendor that sends CSV files as email attachments. These CSV files contain statuses that are imported into our application. I'm trying to automate the process end-to-end, but it currently depends on someone opening an email, saving the attachment to a server share, so the application can use the file.
Since I cannot convince th...
I have dynamically created hidden input controls in a c# codebehind file, and then populate their values with javascript. I now want to access these variables in c#.
Firebug shows that the values do change with javascript, but i'm getting the origional values back in the code behind. Any insight would be much appreciated.
Javascript:
...
Does anyone know how to write your own specifications for the built-in URL Rewrite Module in IIS 7.0?
We are using a shared host that does not allow use of IIS 7.0 Remote Manager on shared accounts, but we'd like to employ URL rewriting for SEO purposes. All of the literature I can find relates to the URL Rewrite Module setup requiring ...
I am looking for method to disable Browser Cache for entire ASP.Net MVC Website
I found following method,
Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
Response.Cache.SetNoStore();
and also meta tag method, ( It wont work for me , since some MVC Actions send partial html/json through ajax, without head,meta tag...
When trying to get a RESTful WCF service POST to work in ASP.NET we are seeing the following error message in the browser:
The server encountered an error processing the request. See server logs for more details.
We are using the ASP.NET Development Server - does anyone know where it keeps its log files?
...
I used to have some controls added dynamically through runtime on an ASP.NET webpage and was able to handle their events but now I put the code in a user control but it doesnt work. Any idea?
while (drr.Read())
{
LinkButton lnkbtnDownloadFile = new LinkButton();
//name of the file ---> drr[2]
lnkbtnDownl...
Hi every one!
I am developing an app which I should design a page for users who forget passwords and send email to them the new passwords. I am using ASP.NET Membership and password format should be hashed.
My problem is when sending mail has been failed, password has been changed and wow! no work can be done.
what is your solution?
...
I have two web user controls nested inside of an update panel. The events inside the user controls do not appear to trigger the panel. For testing, I have set the method the fires to sleep for 3 seconds, and added an update progress panel to the page. The update progress panel never comes up and the page reflashes as usual.
The user c...
Hi,
I am looking for a tool which can edit asp.net pages and supports intellisense. I know several tools like Web Developer Express but I am looking more lightly softwares and of course it must be free because I am not that rich to pay money to a software :) and if it was open source,it'd be more great (:
If you knew any and shared it ...
Lets pretend that for some reason I want to create a custom control that is derived from Control and not WebControl. Let us also assume that I need to process attributes (i.e. implement IAttributeAccessor) and that I want to do so by using an AttributeCollection just like WebControl does.
WebControl implements the Attributes property l...
In asp.net MVC I have a search action in my controller and I am trying to decide If I should pass the query to my repository as a string
public ActionResult Search(string query)
{
return View(_repository.ListPeople(query));
}
or as individual parameters:
public ActionResult Search(string FirstName, string LastName, System.Nullabl...
I recently added some namespaces to my web.config file so that all of my aspx pages can reference various constants and enums without the need to add an import statement on each aspx page. Since adding this, we are now getting an error when trying to test an asmx web service. It appears that during the wsdl generation we get the follow...
Our coding standards have us putting each attribute within a tag on a separate line. However, when I have VS (2008) format the markup is lumps all the attributes together. Is there a way to change this behavior??
Thanks
...
Are there any commands that make life easy with respect to this? I want to take the column schema of one datatable (.net datatable) and copy it to another new datatable.
...
I have custom configuration section within web.config file. I'm lingering between:
Reading it into static class every time when I need any configuration value (because I guess that system already caches files when I open them (for instance when I run Word it takes longer the first time and much less on consecutive opens))
Reading it in...
Hi,
I am using DataList control to show three products per line horizontally. But there is layout problem and it exceeds the layout the pushes others away products like that :
Here is the code :
<asp:DataList ID="dlProducts" runat="server" RepeatColumns="3" RepeatLayout="Table"
DataSourceID="ObjectDataSourceCategor...
The lack of reflection in Medium Trust hosting environments seems to cause a lot of problems for many popular web applications.
Why is ReflectionPermission disabled by default with Medium Trust?
What risk does reflection pose in a shared hosting environment?
For random reference, see MSDN: How to use Medium Trust in ASP.NET 2.0
...
Can custom controls derrived from HtmlControl be displayed in the toolbox?
I have successfully got some WebControls in the toolbox but cannot get this one to display.
I am inheriting from System.Web.UI.HtmlForm.
Thanks
...