Forum: ASP.NET Jan 22nd, 2009 |
| Replies: 4 Views: 4,105 You should also stear away from inserting code just like that. Look into adding parameters:
SqlCommand comm = new SqlCommand("INSERT INTO desg VALUES (@txtsno, @txtdesg, @txtbasic)", connection);... |
Forum: ASP.NET Mar 28th, 2008 |
| Replies: 2 Views: 3,317 Use javascript, and put it into a span element:
<script type="text/javascript">
<!--//
function blinkme()
{
var elm = document.getElementById("blinker");
if (elm.value.length > 0)
{
... |
Forum: ASP.NET Mar 28th, 2008 |
| Replies: 2 Views: 4,727 Line 78, your query:
Dim SQLCheckForUser As String = "SELECT * FROM Users WHERE UserAlias = " & UserAlias.Text
THe problem with this is that you are not putting it within quotes. ANd because... |
Forum: ASP.NET Mar 10th, 2008 |
| Replies: 2 Views: 2,966 Are you sure the page isn't cached? If the page is cached, then it isn't finding the cookies, just using the settings on when they found them in the past. |
Forum: ASP.NET Mar 7th, 2008 |
| Replies: 9 Views: 918 No problem.
I'm a performance geek I guess. I sit here at work almost all day long just finding what is faster than what, and tweaking a 1500 line file I use whenever I build an application, just... |
Forum: ASP.NET Mar 7th, 2008 |
| Replies: 9 Views: 918 Without Commenting lines, it's a lot smaller than it was:
Lines Before Edit: 143
Lines After Edit: 98
A nice 45 line savings ^^
It should be a lot quicker in performance as well. |
Forum: ASP.NET Mar 7th, 2008 |
| Replies: 9 Views: 918 Unfortunately I don't think you can skip any steps here. It seems all quite logical. If you do skip steps, that would require a different route to take and can be a waste of time, as performance... |
Forum: ASP.NET Mar 7th, 2008 |
| Replies: 9 Views: 918 Thanks. I'll look at it and give you back the results.
One quick question as well, this function works properly, you just wish to make it more efficient and condensed, correct?
I will make it... |
Forum: ASP.NET Mar 7th, 2008 |
| Replies: 9 Views: 918 Question real quick.. then I can help you (it will be in RED).
An no, it was meant for this thread, however I didn't read your thread, just the header. My apologies.
'Get the questions from the... |
Forum: ASP.NET Mar 7th, 2008 |
| Replies: 5 Views: 7,106 It's very simple. Follow the article, it's dead on and works perfectly.
http://www.codeproject.com/KB/aspnet/httpImageHandler.aspx |
Forum: ASP.NET Mar 6th, 2008 |
| Replies: 9 Views: 918 The problem with this is that a querystring can only hold so many characters. Want to see how many? Type as many as you can inside the address bar and response.write your querystring. You'll see how... |
Forum: ASP.NET Mar 6th, 2008 |
| Replies: 10 Views: 1,269 check out w3schools.com to learn the basics of asp.net. After that, jump into tutorials and look at code. To be quite honest, 15 hours isn't anything. Most people don't understand how to search for a... |
Forum: ASP.NET Mar 6th, 2008 |
| Replies: 2 Views: 493 http://www.1keydata.com/css-tutorial/codes.php |
Forum: ASP.NET Mar 6th, 2008 |
| Replies: 1 Views: 722 It's done by database. When the user logs in, or clocks in, you create a record in a database that you specify (lets name it timesheets). When a user logs out, you create a new record as well.... |
Forum: ASP.NET Mar 6th, 2008 |
| Replies: 6 Views: 1,413 The thing is with "update panel" is that you have to download AJAXToolKit, and then you must enable your server to accept it, otherwise it will be problem after problem.
There is also a class... |
Forum: ASP.NET Mar 5th, 2008 |
| Replies: 6 Views: 1,654 Well a way you can do it resides in just resetting the expiration the file
Set the expiration on the file to now or now + 1 second. |
Forum: ASP.NET Mar 5th, 2008 |
| Replies: 6 Views: 1,654 Can't, I am at work and at work I work on a linux machine and have no access to FTP connections. Therefore I cannot test anything ^^ |
Forum: ASP.NET Mar 5th, 2008 |
| Replies: 6 Views: 1,654 Well you will need something like:
HttpResponse.RemoveOutputCacheItem(Server.MapPath("/directory") & "file.aspx");
or just
HttpResponse.RemoveOutputCacheItem("/directory/file.aspx");
Not... |
Forum: ASP.NET Mar 5th, 2008 |
| Replies: 15 Views: 3,044 Also check this out:
http://blog.gilluminate.com/2006/4/25/prevent-copy-paste-and-print-screen-online |
Forum: ASP.NET Mar 5th, 2008 |
| Replies: 3 Views: 4,492 Your easiest and best bet would be to create a transfer page that will read the contents of the current session variable. Then, create a loop that puts down a hidden input field with the id as the... |
Forum: ASP.NET Mar 5th, 2008 |
| Replies: 6 Views: 1,654 HttpResponse.RemoveOutputCacheItem("pathtoyourfile"); |
Forum: ASP.NET Mar 4th, 2008 |
| Replies: 15 Views: 3,044 he can make the opacity of the entire screen down to 30% so the camera can't pick it up!! |
Forum: ASP.NET Mar 4th, 2008 |
| Replies: 4 Views: 6,027 You cannot detect when it has a file, however you can detect length. If you wish to detect length, you need to make sure the box is READONLY. Cause, like me and probably a few others, I type most of... |
Forum: ASP.NET Mar 4th, 2008 |
| Replies: 3 Views: 1,004 You would need to put your current treeviewstate in a session variable to call along every page on the site. Otherwise, it is page to page or every page has a different coding to show the correct... |
Forum: ASP.NET Mar 4th, 2008 |
| Replies: 15 Views: 3,044 Yes you can disable those keys, but it won't stop them from using the clipboard.
However, what you can do is set up a javascript function that gets called constantly. Then inside the function you... |
Forum: ASP.NET Mar 4th, 2008 |
| Replies: 27 Views: 6,230 Yup, here's the problem with UPDATE:
SqlCommand cmd = new SqlCommand("UPDATE blahUserDetails SET UserDetailsRow WHERE username=@username", conn);
You're not setting a value, it should be something... |
Forum: ASP.NET Mar 3rd, 2008 |
| Replies: 27 Views: 6,230 then the control hasn't been created yet, but is in process. |
Forum: ASP.NET Mar 3rd, 2008 |
| Replies: 27 Views: 6,230 is tb declared, and a control? |
Forum: ASP.NET Mar 3rd, 2008 |
| Replies: 6 Views: 1,413 You can have it change, but you need to use javascript and ajax. Use the javascript to keep track of the timer. Once it hits 30 seconds, javascript can call a command against the server, or if you're... |
Forum: ASP.NET Feb 29th, 2008 |
| Replies: 4 Views: 2,314 I use that function with a "btnDelete_Click" and it works perfectly. but okay, glad to hear you got it |
Forum: ASP.NET Feb 29th, 2008 |
| Replies: 27 Views: 6,230 you need to keep track of the ID of the record you are updating. Put it there, or create a "hidden html field" and set the value of it on page_load. Then, grab the value when you update/delete. |
Forum: ASP.NET Feb 29th, 2008 |
| Replies: 27 Views: 6,230 Well I don't do c#, but I can "try" for you. I also don't do code-behind ^^
protected void CancelBtn_Click(object sender, EventArgs e)
{
Response.Redirect("UserAdmin.aspx");
}... |
Forum: ASP.NET Feb 28th, 2008 |
| Replies: 4 Views: 2,314 It's not good practice to check them through HTML, not to mention if anything changes, your entire page is broken.
You should check your repeater for its controls, and then check to see which one... |
Forum: ASP.NET Feb 28th, 2008 |
| Replies: 27 Views: 6,230 It doesn't look like there is something wrong. Where are you actually putting the string on the page? It usually doesn't throw this error unless you are putting server content outside the tag. |
Forum: ASP.NET Feb 28th, 2008 |
| Replies: 27 Views: 6,230 make sure you are spitting out the textboxes within the form. If not, you will get this error. You are most likely spitting out the info above the form tag. |
Forum: ASP.NET Feb 28th, 2008 |
| Replies: 27 Views: 6,230 you don't have a runat server form?
<form runat="server">
<asp:Table....>
</form> |
Forum: ASP.NET Feb 28th, 2008 |
| Replies: 27 Views: 6,230 Make the edits, then create a sub to handle a submit onclick. Within that onclick, update the database with an update command. But make sure you have the record ID, you wouldn't want to update every... |
Forum: ASP.NET Feb 28th, 2008 |
| Replies: 10 Views: 1,763 and that error is...?
also try this:
<script language="vb" runat="server">
Function ChkDate(ByVal dt As String) As String
If dt = "01/01/1900" Or dt = "1/1/1900" Then
ChkDate = ""... |
Forum: ASP.NET Feb 27th, 2008 |
| Replies: 24 Views: 3,652 yes it is doable. You will need to do an on Itemcreated event and search through for those buttons. Then reset the onclick function to trigger a new sub, which then will redirect based upon the... |
Forum: ASP.NET Feb 27th, 2008 |
| Replies: 24 Views: 3,652 Those buttons use commands, then based on those commands they use the datasources to update.
You would have to insert your own button with a new command argument. Then create a sub that it... |