Keycode Less Than (<) And Greater Than (>) Using C#?
Mar 21, 2011what are Keycodes for Less than (<) and greater than (>)? For example, keycode for "Enter" is 13. Please note that I am using C#.
[Code]....
what are Keycodes for Less than (<) and greater than (>)? For example, keycode for "Enter" is 13. Please note that I am using C#.
[Code]....
know the keycode of print screen so that i can disable print sceen option due to security reason ??
View 5 RepliesI had to exclude several pages from my website to get it to run in vs 2008. When I finally got the home page to come up, I tried to type a character into the login box, and at the first character the probelm blows up:
Microsoft JScript runtime error: 'keyCode' is null or not an object
This is insanse. This is the page I'm on when it crashses. Does this have something to do with ajax?
[Code]....
i do not know what is going on my firefox!
my aspx and javascript codes are like this :
[code]....
when i type something in textbox 1,2,3 so i see just first alert (mean a,b,c).
I have a Sql query (I made it shorter for an example) belowselect top 4 Count (distinct[x].ProductID ) as [Count], y.Category as Category FROM [y] left OUTER JOIN [x] on [x].CategoryID = [y].CategoryID where x.MainID in (SELECT item FROM split(@MainID, ';')) group by y.Category order by Count descthe results will show all Categories with the Count next to it... I need to get the sql query to only get all the Categories with a Count greater then 10...How can I get this?.. .........what do I need to do to let the Sql Query work?
View 3 RepliesThis expression is to check number > 1
^[1-9]+[0-9]*$
what is the expression to check if it's greater than a given value, say "99" ? what about a value less than, 99?
Update:
I'm using ASP.NET validation control.
I'm trying to select all records from db that SUPPORT_END_DATE greater than Date of the day
like this :
Select * From Supp_table Where SUPPORT_END_DATE > "Date Of the day I get it from textbox.text=Date.ToDay()"
I'm currently working on a project where I need to segregate some of the views within a controller I have a little better.I want to do something like:
{controller}/{action1}/{action2}/{id}
So let's just say
/Clients/Jobs/Edit/e124929
So I guess I'm looking to have "sub-actions" of my actions?It's achievable with via routing. How should I set the route up for this, and how should I create the routine in my controller to handle the "sub-actions"?
I have a webservice that returns: <Index>test</Index>When it gets returned to a page & I view the source, it displays it as: <Index>test</Index>Is there a way I can send the element in its original form? I want to process the xml once it hits the page (actually flash will be interpreting the xml).
View 3 RepliesI keep getting an error:Index (zero based) must be greater than or equal to zero and less than the size of the argument list.y code:
OdbcCommand cmd = new OdbcCommand("SELECT FirstName, SecondName, Aboutme FROM User WHERE UserID=1", cn);
OdbcDataReader reader = cmd.ExecuteReader();
while (reader.Read())
[code]...
I have an ASP.NET app that scrapes data from a handful of external pages, parses the relevant bits and displays them in a table. Total data retrieved is 3-4MB and the resulting page is about 1MB. I am using synchronous WebRequest GetResponse for the retrieval, but the same problem existed using an asynchronous BeginGetResponse/EndGetResponse process.There is no database access, no session storage, no caching, but an in-memory list of about 100 objects (total 1MB of data), plus a good amount of AJAX (AjaxControlToolkit). This issue appears on the very first run of the app, even if I have restarted IIS.
The issue:
When I run the app on my dev computer, the maximum commit charge is about 1.5GB. The biggest user, measured by Task Manager's VM Size, is WebDev.WebServer.exe (600MB). The app runs perfectly.
When I run it on my rent-a-server (IIS 7.5, 1GB RAM), the maximum commit charge is over 3.8GB. The biggest user is w3wp.exe at 2.7GB. IIS grinds to a halt and spits out a timed-out error page.
Given my limited server budget and the hope of having multiple simultaneous users, I'm kind of in a panic.
Is this normal? If I bump the server RAM up to 4GB, will that be enough?
What is the best way to put a Greater than sign in an SqlDataSource
The code will run but it is underlined with an error "Attribute values must be enclosed in quotation marks."
Sample code looks like this...
SelectCommand="Link.Section, Link.PostDate.....
WHERE...
and (PostDate <= GetDate()) and (isnull(postremove, getdate()) >= getdate()))">
I have a list of character that display fine in WebBrowser in the form of encoded characters such as € � ... But when posting these characters onto server to I realized that HttpUtility.HtmlDecode cannot convert them to characters as browser did, they all become space.
text = System.Web.HttpUtility.HtmlDecode("€");
I expect it to return € but it return space instead. The same thing happen for some other characters as well.
how to clear the GridView column greater than index 1.
grdview.Columns.Clear() will clear all columns, but i need to clear the columns greater than index 1
I'm using ASP.NET with sql-server. I have an area where the user can enter text of a maximum amount. I encode this text as a good measure but the encoded length can be greater than this maximum amount when I try to insert it into the database.
Special characters are encoded on 3 characters. I can't show the user that he has exceeded the max amount of characters because from his perspective he hasn't. I also can't set the database field to the worst case scenario (being 3 times my max amount).
After the user puts a date in textbox1, I want to fill in textbox2 with a date that is 90 days greater. Looking to do this without a postback.
View 16 RepliesIf I want to validate that a text box contains an integer greater than or equal to zero. Do I need to use TWO asp:CompareValidator controls: one with a DataTypeCheck operator and one with a GreaterThanEqual operator?
Or is the datatype operator redundant? Can I just use a single validator with the GreaterThanEqual operator (and the type set to Integer)?
I have this code to create a pdf but its giving an errors saying table width must be grater than zero, and also on the generated pdf should show the items with the associated image, the items are in a gridview and each item has an image. Also a paging option i want to create to if paging is true it must generate the pdf with the actual gridview page else should create a pdf with all items and ignore which page are selected...
View 1 RepliesIf a user enters "<" or if it already exists in a textbox inside an update panel, I am getting "internal server error 500" during post back. I believe the page suspects a HTML injection and is attempting to stop it. I could use Page.EnableEventValidation to avoid it but I really don't want to do that. Is there any other way, I could resolve it (like replace < with > or something like that)?
Update:
This is happening in a textbox inside a gridView.
[Code]....
Visual Web Developer 2010 Express
ASP.Net and C#
My issue is that I am pulled three tables together using the Query Builder and I only want to show data where a specific date is greater than todays date. Here is what i have so far:
[Code]....
Where it says '2010-09-01 00:00:00' I want that to be the todays date.
Is this possible?
how to display result in gridview according to textbox only if textbox2 date value is greater than textbox1 ?
i have two textboxes and gridview ... if i type in Textbox1 : 2-Jan-2011 and in textbox2 : 1-Jan-2011 then in label1 the eroor message display else ..if textbox2 value is greater then textbox1 value then gridview will display records according to textbox1 and textbox2 from database ...
how to do that?
How do I make the dropdownlist in my gridview wider than the control itself..is there a Dropdownlistwidth property??..or do I have to use css..
View 1 RepliesI have an HTML markup which has HTML Table and Images in it. I am using iTextSharp API to convert the HTML markup to PDF. But, unfortunately the iTextSharp fails to export the HTML markup containing the Images & Table to PDF.
Error: The network path was not found.
using iTextSharp.text;
using iTextSharp.text.pdf;
using iTextSharp.text.html;
using System.Data.SqlClient;
using System.Text;
using iTextSharp.text.html.simpleparser;
[Code] ....
I know this error is due the Image Path. But, not able to resolve.
I want to create PDF in a folder and not be able to downloadable to user.
how can I disable the single quote, greater than and less than character when typing it into textbox.
And also prevent the copy, paste that character into textbox.
sb.Append(" <table width=100% cellspacing=0 cellpadding=2 class=table1>")
sb.Append(" <div style=text-align: right;>")
sb.Append("<input type=button onClick=window.print() value=Print></input>")
sb.Append("</div>")
sb.Append("<tr><th align=center Cssclass=theadPO style=background-color: #18B5F0><b>Order SHeet</b> </th></tr>")
[Code] ....