I have a Custom Control that has multiple textbox fields and a checkbox contained within it.
If the checkbox is checked, and the user submits the form, I need to allow them to continue if the textbox's are empty (and the checkbox is checked).
I have to implement this without javascript.
The problem is that on the OnInit event of the C...
First, I'll say I am not making this up. I have a web method implemented in a asmx file like this:
[WebMethod]
[SoapDocumentMethod(OneWay=true)]
public void Method1(INPUT oInput)
{
// Call SQL stored procedure SP1
// Call SQL stored procedure SP2
}
Using SQL Server Profiler I see stored SP1 get called, but SP2 does not. If I set...
I'm currently writing a sitemap generator that scrapes a site for urls and builds an xml sitemap. As most of the waiting is spent on requests to uri's I'm using threading, specifically the build in ThreadPool object.
In order to let the main thread wait for the unknown amount of threads to complete I have implemented the following setup...
I have a datalist containing usercontrol placed in update panel, any of these usercontrols may contain a datalist.I'm trying to fire ondeletecommand of the inside datalist but nothing happens.Any clue
...
Here is what I am trying to do. I have a TreeView server side control (asp.net 2.0) and I need the user to be able to add nodes to it, then after all the nodes desired are added, the data should be saved to the database.
Here are some things I would like to pay attention to:
1) I don't want to save the tree data each time the new node ...
I have button Add and Remove on my page.
Add button adds one checkbox, two textboxes and one dropdownlist to a new line on my page.
Remove button removes them.
I have this running nicely by following Joe Stagner's example.
Problem:
The controls that are created dynamically all need to fire the same event when checked (for checkboxes), ...
I have this code up on my server here (Yes I known ASMX is a bad idea but WCF doesn't work at all for some reason):
<%@ WebService Language="C#" Class="Test" %>
using System.Web;
using System.Web.Services;
[WebService(Namespace = "http://smplsite.com/smplAccess")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public cl...
Does anybody have a clue how I might embed an ASP.NET 3.5 app inside a Visual Basic 6 application?
My other option is to provide a hyperlink inside the VB6 application that will open the ASP.NET app.....BUT I would prefer to embed the ASP.NET app within a tab control in VB6 if at all possible.
thanks in advance
...
Hi,
These lines cause a security exception in a godaddy account. Any suggestions how to rewrite to get this to work?
File.Delete(PropsFileName); // Clean up
TextWriter tw = new StreamWriter(PropsFileName); // Create & open the file
tw.WriteLine(DateTime.Now); // Write the date for reference
tw.WriteLine(TokenLine); // Write t...
I'm editing a lot of .aspx files in Emacs these days. nxml-mode can use a schema (RELAX NG, but maybe others) to detect errors in XML, and I find it really handy for other things.
Is there a RELAX NG schema for *.aspx files?
(I'm having trouble searching because "aspx" is so common not just as a language but as part of URLs.)
...
I have an asp.net codebehind page linking several checkboxes to javascript methods. I want to make only one javascript method to handle them all since they are the same logic, how would i do this?
code behind page load:
checkBoxShowPrices.Attributes.Add("onclick", "return checkBoxShowPrices_click(event);");
checkBoxShowInventory.Attr...
Chart1 shows all the labels, but once I add the 10th item, half of the labels disappear.
First the markup:
<asp:Chart ID="Chart1" runat="server" Width="700" Height="600">
<series>
<asp:Series Name="Series1" ChartType="Bar" />
</series>
<chartareas>
<asp:ChartArea Name="ChartArea1" />
...
hi, i have read that you can do it, but would this really improve performance of the page, or would it bring more performance overhead ?
thanks in advanced.
...
I have a custom validator inside a repeater
<asp:Repeater runat="server" ID="lstRepeater" >
<ItemTemplate>
<asp:CustomValidator ID="cvValid" runat="server" CssClass="error" EnableClientScript="False" ErrorMessage="Invalid."></asp:CustomValidator>
<asp:TextBox runat="server" ID="tbCustomAnswer"></asp:TextBox>
</It...
I have a GridView that is bound with a dataset. I have my footer, whichis separated by the column lines. I want to merge 2 columns; how do I do that?
<asp:TemplateField HeaderText="Name" SortExpression="Name">
<ItemTemplate>
...
</ItemTemplate>
<FooterTemplate >
Grand Total:
</div>
</FooterTemplate>
</asp:Templat...
I'm looking for a good example of storing data in a cookie using ASP.NET. Could someone show me an example?
...
Okay, so it seems, for some reason (I might be doing it wrong, obviously), that I have some problem wrapping continuous lines, using Asp.net.
Let's say I have 800 pixels worth of the "m" character, well, my table cell gets extended to that length. I don't want that, I want the cell to automatically break the continuous line after 300px....
I have a menu where I am setting the selected value dynamically.
Will I have better performance doing setting the value on a DataBound event or iterating over the menu in the PreRender event?
Would the performance characteristics be generalizable to all data bound controls (i.e. would it be different for a menu versus a gridview)?
F...
What's the lightest method to pass data into a Crystal Report in an ASP.NET site? I've pushed custom collections and datasets. I have a advanced custom collection and I really need to only pass in two fields.
...
Hi,
I am using asp.net and i would like to define the elements of a dataset in my html code.
The problem is when i attempt to use:
<%@Using namespace="System.Data" %>
this is giving me an error
also
I am using
foreach (DataRow row in ds.Tables[0].Rows)
{.....}
DataSet ds is obtained from an sql query. I don't believe...