I use Request.QueryString["var"] to pull the value of http://test.com/test.aspx?var=test into a string
the same thing doesn't work for test.aspx#var=test
how can I get it from that version of a querystring?
thanks for any help
Hi,
I have the following query which uses a date variable, which is generated inside the stored procedure:
DECLARE @sp_Date DATETIME
SET @sp_Date = DateAdd(m, -6, GETDATE())
SELECT DISTINCT pat.PublicationID
FROM PubAdvTransData AS pat
INNER JOIN PubAdvertiser AS pa ON pat.AdvTransID = pa.AdvTransID
WHERE (pat.LastAdDate > @sp_Date) AND (pa.AdvertiserID = 12345))
The problem is that the @sp_Date value appears to be being ignored and I am wondering why? Have I defined or used it incorrectly?
sql microsoft sql-server-2008
User error...
Thanks, R.
I need a control that only accept HEX value in the following format:
xxxx-xxxx and x is in 0-9, a-f, A-F
So I add a MaskedTextBox and try to edit its Mask property, but did not succeed.
Are there any constants in T-SQL like there are in some other languages that provide the max and min values ranges of data types such as int?
I have a code table where each row has an upper and lower range column, and I need an entry that represents a range where the upper range is the maximum value an int can hold(sort of like a hackish infinity). I would prefer not to hard code it and instead use something like SET UpperRange = int.Max
Hi
I upgraded an iPhone project from the 2.2.1 SDK to 3.0 SDK recently...
And when I build the project I am getting the following warning:
GCC 4.2 default deployment target 10.6.2 for architecture 'i386' and
variant 'normal' is greater than the maximum value 10.6 for the
Simulator - iPhone OS 3.1.2 SDK
I have the iPhone OS Deployment target set to iPhone OS 3.0
Any idea what could be causing this 'warning' to show up.
Regards
- SY
Say I've got the following data back from a SQL query:
Lastname Firstname Age
Anderson Jane 28
Anderson Lisa 22
Anderson Jack 37
If I want to know the age of the oldest person with the last name Anderson, I can select MAX(Age) and GROUP BY Lastname. But I also want to know the first name of that oldest person. How can I make sure that, when the Firstname values are collapsed into one row by the GROUP BY, I get the Firstname value from the same row where I got the max age?
I am using asp.net pagemethods with jquery.... How to get the value of a session variable inside static method in c#...
protected void Page_Load(object sender, EventArgs e)
{
Session["UserName"] = "Pandiya";
}
[WebMethod]
public static string GetName()
{
string s = Session["UserName"].ToString();
return s;
}
when i compile this i get the error An object reference is required for the non-static field, method, or property 'System.Web.UI.Page.Session.get'
Any suggestion or any alternative...
( insert really basic question disclaimer here )
More specifically, I have the following declaration:
output reg icache_ram_rw
And in some point of the code I need to put the zero value in this reg. Here's what I've tried and the outcomes:
assign icache_ram_rw = 1'b0;
( declarative lvalue or port sink reg icache_ram_rw must be a wire )
icache_ram_rw <= 1'b0;
( instance gate/name for type "icache_ram_rw" expected - <= read )
How do I do it after all?!
I am relatively new to Java, and often find that I need to sort a Map on the values. Since the values are not unique, I find myself converting the keySet into an array, and sorting that array through array sort with a custom comparator that sorts on the value associated with the key. Is there an easier way?
I'm getting "The 'charCode' property of a keydown event should not be used. The value is meaningless" error in firefox using jQuery. My code looks like this:
$("div#center-box div#empid-textbox input.id").keydown(function(e){
key = e.which;
if(key===13){
//do something;
};
});
does anyone know how to remedy this error?
Possible Duplicate:
How do you capture stderr, stdout, and the exit code all at once, in Perl?
I'm writing a Perl script that needs to call a subprocess and capture both the output and the exit value. Is there a way to get both?
In XHTML/HTML which elements has semantic value , which are presentational and which are not in both category?
And who decide which tag is semantic, presentational?
What is the difference between structural and semantic mark-up?
I am working with a legacy database that stores "blank" values as a single space. Is there a way with Fluent NHibernate, either by way of a convention or mapping override, that I can translate this "blank" value as a .NET null? (I know that I will need to save nulls to this database as a single space still but I will use an save event listener for that).
HI
I have a URL
var str:String = "conn=rtmp://server.com/service/&fileId=myfile.flv"
or
var str:String = "fileId=myfile.flv&conn=rtmp://server.com/service/"
The str might be like this, But i need to get the value of "conn" and "fileId" from the string.
how can i write a function for that.
Friends,
My apex page has several different radio groups, each one can have the value of Yes or No.
When the user presses a button I need to capture the values of these radio groups in the javascript processing for the page and then "do stuff" dependent on their values.
Is there an Apex Javascript API that I could utilise to obtain the values? or will I need to implement a function similiar to this?
Thanks in advance for any help you can provide.
I have an application where a Hilbert R-Tree (wikipedia) (citeseer) would seem to be an appropriate data structure. Specifically, it requires reasonably fast spatial queries over a data set that will experience a lot of updates.
However, as far as I can see, none of the descriptions of the algorithms for this data structure even mention how to actually calculate the requisite Hilbert Value; which is the distance along a Hilbert Curve to the point.
So any suggestions for how to go about calculating this?
Since the control emits bizzare non-standard HTML, I'm wondering if it has any practical value.
The control emits font tags!
How are others dealing with it? Do you do some sort of RegEx replace on the text?
Or am I missing something?
I am using ASP.NET 4.0 and MVC 2 I have added these lines which i found in other articles -
To the Web-Config -
<httpRuntime requestValidationMode="2.0"/>
To the Controller -
<ValidateInput(False), AcceptVerbs(HttpVerbs.Post)>
To the View Page -
<%@ Page ValidateRequest="false" %>
But still gives me "A potentially dangerous Request.Form value was detected from the client"
I am trying to use the Markitp editor in this way -
<%= Html.TextAreaFor( model => model.Description,"markitup")%>
If I have a HashMap that looks like this:
HashMap<String, MyObject>
where the String key is a field in MyObject, does this string value get stored twice?
So when I add entries:
_myMap.put(myObj.getName(), myObj);
Am I using double the String size in terms of memory? Or does Java do something clever behind the scenes?
Thanks
Hello, I have a project where I many files in the same folder, but want to set permissions by a department number which is a column value of each file.
Can I make a workflow to do this somehow, so when a file is added and the dept# is picked. Sharepoint will lookup that department number and give it the appropriate permissions?
Thank you,
Adrian
Is there a way to plot multiple data for the same value x? For example following points:
[1, 1], [1, 2], [1, 3], [2, 6], [2, 9], [3, 11], [4, 11]...
Many thanks!
I am trying to write a LINQ query which will return true if there are multiple objects which have a property with the same value.
Here is what I have come up with so far:
Formatters.Where(Function(f As DataModel.Formatter) _
Formatters.Select(Function(f2 As DataModel.Formatter) f2.Name.ToLower()).Contains(f.Name.ToLower())).Count > 1
However the above always returns true as long as their are more then 1 elements in the list, can someone please give me a hand with this?
Thanks,
Alex.