Just in case anyone is interested, I figured it out (kinda). In order to check if the parameter is null (and return null), you have to add this:
CREATE FUNCTION DECRYPT_RSA
(
@Expression NVARCHAR(max),
@PrivateKey NVARCHAR(max)
)
RETURNS NVARCHAR(max)
WITH RETURNS NULL ON NULL INPUT...
I'm creating a function that calls a class I wrote in C# to encrypt and decrypt text.
I can get this code to create the function just fine:
CREATE FUNCTION DECRYPT_RSA
(
@Expression NVARCHAR(max),
@PrivateKey NVARCHAR(max)
)
RETURNS NVARCHAR(max)
AS
EXTERNAL NAME...
Well, the problem is that the date field is readonly. So technically it will never change (by that I mean it can never be changed by typing it it). I believe that the onchange event only gets called when a user physically types in it then it loses focus (and only if the text has changed). If you...
Haha. Yeah, I'm not sure either. I'll have to load the OleDbCommand object into Reflector or something to see how it does it. I could be wrong, but I don't think the database does the conversion.
swreng,
By the way, did that help at all?
Ron Wheeler
Tekdev Open Source Development
Well, I'm pretty sure you can pass a byte array to a stored procedure. Here is an example from SQL Server Magazine on how they did theirs: Article
Listing A: C# Code That Calls the p_insertimage Procedure
public class ImageData
{
public static void Main()
{
string sconn =...
Well, I don't think this has anything to do with it, but shouldn't you initialize bts like this:
byte[] bts = new byte[str.Length];
I don't think you need the str.Length - 1 in there. As for the parameter, I doubt it will make much of a difference, but what if you changed it to something...
yeah, I know a lot of design companies that version their files. Something like, style1_1.css, style1_2.css, etc. But putting the version in a querystring would work just as great.
Ron Wheeler
Tekdev Open Source Development
Essentially, it's the same, just do another query and while loop.
string fileLocation = @"c:\mytext.txt";
SqlConnection conn = new SqlConnection(connString);
conn.Open();
SqlCommand cmd = new SqlCommand("SELECT * FROM Person", conn);
SqlDataReader reader = cmd.ExecuteReader();
TextWriter...
I'm not really VB.NET programmer, but wouldn't you pass the parameter ByRef so that it's updating the original page, not just a copy? Which doesn't really matter, since he is using C#. Which would then need "ref".
So, in C#:
public void AddControlToPage(ref System.Web.UI.Page myPage)
{...
Instead of redirecting like you do in your example, you would just redirect to yahooo.com.
if(user=="jack" && pass=="jill")
{
Response.Redirect("http://www.yahooo.com");
}
Ron Wheeler
Tekdev Open Source Development
So you want to add the control, "label", to your custom class? Does your class inherit/extend System.Web.UI.Page? If so, then I can't see why that doesn't work.
I guess I just need to ask what you are trying to do. The way I'm imagining it is:
namespace MyApp
{
using System.Web.UI...
I'm a little confused as to why the css is being set to a new Array() to begin with though. It can only be set to a single string, right?
Also, you have to make sure the document has been loaded (at least the <link> tag) before this script it run, so you may want to put the link tag before...
I'm not a huge fan of inline styles, but here's what I did to somewhat fix it:
<div style="padding:100px 30px 0px 25px;position:absolute;">
<div style="border:1px solid black; height:155px; width: 450px;">
<div...
You have to update the web.config to specify which pages are protected.
In web.config (in <system.web>)
<authentication mode="Forms">
<forms name="LoginAuth" loginUrl="~/login.aspx" timeout="20" cookieless="UseCookies" />
</authentication>
In web.config (outside <system.web>)
<location...
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.