Thank you in advance.
When a System.Web.UI.WebControls.DropDownList is used is it possible to override the name attribute? Using the .ID will give both id and name attributes the same value. Using .Attribute for id and name will apply them only after .Net assigns a generated name attribute...
The routine below updates the first record when multiple record numbers come through the parameter accounts. Is there a data type that pass comma delimited values like 1,2,3,4,5?
CREATE DEFINER=`root`@`localhost` PROCEDURE `set_admin_accounts_state_zero`(
accounts varchar(300)
)
BEGIN...
Thank you in advance. I have intermittent access to a .xml file in App_Data. The file is only used in a portion of the program but there are times when it throws a "...because it is being used by another process." error. I've included everything I could find that is supposed to close the file...
I tested /project/pages/page[@completed='n'][not(text())=''] at http://www.mizar.dk/XPath/Default.aspx with success but the xpath expression below doesn't work in C#. How do I re-write the xpath statement so I can use .Evaluate to return a empty node-set in C#?
string xpath =...
I am writing an ASP.Net newsletter program and would like to space out when the email is sent. Would a web service be what I need to accept the data and return a void response, then process the data?
How do I link a click event to a button that is created in code behind? What I have below is what makes sense atm, but gives me a "Value cannot be null. Parameter name: child" error. What am I missing?
using System;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
public...
I am having a problem with a nested TableCell object putting all of the data in the last page when it should be distributing it. Is there something I have to do beyond creating a new instance?
i.e. TableRow page = new TableRow()
int page_id = 1;
int row_id = 1;
TableCell pagecell = new...
I have the following code resizing a textbox. The width is working as expected but the height isn't responding. What am I missing?
private void Form1_Resize(object sender, System.EventArgs e) {
Control control = (Control)sender;
textBox1.Size = new Size(Form1.ActiveForm.Size.Width -...
How can I access MasterPage html elements from a User Control click event? I have tried:
in master page
<div id="menu" runat="server"></div>
in click event for control:
UserControl uc = (UserControl)LoadControl("a.ascx");
Page.FindControl("menu").Controls.Add(uc);
The code below is placing \ in front of all quotation marks. Is there a way to keep this from happening or remove them?
<system-page>
<name>first_1</name>
</system-page>
XmlDocument xd = new XmlDocument();
xd.LoadXml("<system-page><name>first_1</name></system-page>");
XmlNode xn =...
XmlNode pages = xd.SelectSingleNode("system-index-block/system-folder");
XmlNodeList xnl = pages.SelectNodes("//system-folder|//system-page");
How do I stop from getting parent items when I do a greedy search through the children of a node?
I was forced to upgrade from VS 2005 to VWD 2008 and now the Asp.Net Development Server is wanting to be set up. I've done several days of searching for a means to change DS from the VWD IDE with no luck. How do I change it so all of my projects automatically launch the DS?
I have tried every way I can think of to define a path to a .swf file. The output is from CS3 and it works on my home system. Here is an test page with all of the path types: http://www.sdwingchun.com/test/scott.asp and http://www.intraflux.com/scott.asp. What am I doing wrong?
I am using a DSN connection to an Oracle database and am having problems with getting the syntax correct for stored procedures/fucntions. Below is what I have so far:
This function is working
var password varchar2(70);
exec :password := cascade.ae.get_password('srider');
print password...
How would I run the procedure below in SQL+?
function get_password(v_account in varchar2) return varchar2;
function get_password(v_account in varchar2) return varchar2
is
results varchar2(70);
cursor c is select password from cascade.cxml_user where username=v_account;
begin...
In the code below, the match collection grabs all of the matching items in a string but the select doesn't hightlight the last one.
if (input.Text.Length > 0) {
Regex r = new Regex(regex.Text);
MatchCollection mc = r.Matches(input.Text);
formatted.Text = mc.Count.ToString();
int...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.