|
hi there,
I was looking for 3 regex expressions:
1.match any content before"<html>".
1.match any content between "<head>" and "</head>".
2.match any content inside a tag, eg: "<body onload='' bgcolor=''>" would return "onload='' bgcolor=''".
I was looking to read the result line by line: string[] tags = Regex.Split("")?
I have absolutely no experience with regular expressions.
thank you
|
|
|
|
|
Since you are new to the regular expression, you can start with downloading the Expresso[^] and the tutorial[^] posted here at CP.
|
|
|
|
|
I've been looking for a good colour selector for asp.net and while there are zillions out there, there are few good ones at all.
Many are still stuck on the old websafe colour palette which is dead as a dodo these days.
I have a theory but am not knowledgeable about Javascript / colour pallets etc to know if it's doable, but here's what I'm thinking of doing:
Create an asp.net server control for colour selection. Instead of the little box with hundreds of little boxes in it, each with it's own event and clickability etc, just one image, perhaps static or generated on the fly from some parameters that shows a sweep through all possible colours within a given range of colours and resolution.
When a user mouses over it or clicks in it, instead of having oodles of clickable elements inside it, you find the position clicked and then reverse calculate the color that would be at that position using a math routine of some kind.
This way you have a lighter footprint on the page content going to the browser, you can make more beautiful color selectors rather than the grids you currently see almost everywhere and the shackles of the websafe colour pallette are gone as well.
If it works then you extend it to support being inside a datagrid and databinding, attaching to an edit control to insert the selected value as hex etc etc. All the nifty things that aren't currently available.
Doable or is there a good reason why I don't see it done that way?
(variety in spelling of the word Colour intentional)
|
|
|
|
|
Wow - that sounds cool. It seems the only real issue would be in mapping a point back to a color in the map.
Sounds like a CP article in the making...
|
|
|
|
|
Cool, sounds like it might be doable then. Unfortunately I'm not the person capable of doing it, I would love to see such a component and so would a *lot* of people out there (judging by the threads I've come across searching for such a component).
I hope someone takes this on as an article, if not I'll revisit it in about a year when I have the time to actually learn what I need to in order to do it.
The math is what would hold me up, I was never very good at it and this probably requires something along the lines of formulas used in video games to detect where a point was clicked if it's anything other than a simple square.
Plus it would have to work in Opera, Mozilla / FF and IE as well to be of any widespread use.
|
|
|
|
|
Im looking for a query who get result in packages
let me explain
select * from users where codgroup = 1
i get all the user belongs to group 1 (100 users)
i want a query who get the rows by package (ten could be).
PD: Only sql statements, not using paging gridview property
I hope you can help me
keep Learning and you never will be out of date...
|
|
|
|
|
I'm not sure what this has to do with asp.net, perhaps try the correct forum which in this case would be the SQL one and you might have more luck. Also your question is a little unclear by what you mean by "packages".
|
|
|
|
|
Search for paging for your control. CodeProject has many controls for that
Best Regards
3ala2
|
|
|
|
|
Forgive my ignorance, but I'm not sure I understand what you mean by packages. Are they physical packages, Oracle packages, or something else?
|
|
|
|
|
Somebody tell me that SELECT * FROM users LIMIT 0, 10 i could get the firsts ten registers, later i could use the sentence SELECT * FROM users LIMIT 11, 20, in order to get the 11 to 20 users data.
But i doesnt work,
did you get the idea???
keep Learning and you never will be out of date...
|
|
|
|
|
Since SQL Server does not have a limit clause, I'm assuming that you are using another backend database. What DB are you using?
|
|
|
|
|
It may also help to have a general database schema (don't include specific business data for security reasons) or a mock DB schema. I'm getting the feeling that your solution would be solved by an inner join with a TOP clause on the right side table.
|
|
|
|
|
You could try a stored procedure like the following:
CREATE PROCEDURE [dbo].[usp_GetnRecordsForEachUser]
(
@userID int,
@maximumRows int
)
AS
SET ROWCOUNT @maximumRows
SELECT u.*
FROM users u
WHERE userid = @userID
ORDER BY u.userID
SET ROWCOUNT 0
GO
|
|
|
|
|
hi
i have two textboxes which have the validation controls for validation.These validations should perform when i click a submit button.Upto this it's ok.I have a datagrid in the same page.iam populating the grid in the pageload event. when iam clicking the update link(updatecommand event) in my datagrid these validations are also performing.How to solve this?If it is a button we can simply make the cause validation property false.But for datagrid i didn't find any property like this?How to solve this?
thanks
vijay
|
|
|
|
|
Which column are you using to create the "update link"? Basically, for the button colums you can set the CausesValidation to false either declaratively in the web form or programmatically in the ItemCreated event handler. In addition, in the ASP.NET you can use the ValidationGroup property to work around this issue.
|
|
|
|
|
Hai Everyone
I am making my page as ajax page using magicajax.dll,It is working fine in my pc but when i install it in server it is not working Can any one help me
and tell me what type of setting i have to do in IIS or In server For it
Mahammadhusen
|
|
|
|
|
Because you are asking about a specific component, so their[^] support forum might be a better place.
|
|
|
|
|
I need a Regular Expression to validate a date
in dd-mm-yyyy in java script
Thanks in advance
|
|
|
|
|
Instead of writing your own script to validate the date value, you may use the CompareValidator with the Operator=DataTypeCheck and Type="Date" to validate the input element. Also because you want the dd-mm-yyyy format, you need to take in account the current cultureinfo when the validator gets rendered. If you still want to do on your own, you can view source the web page and have a look at the script of the validator for your reference.
|
|
|
|
|
“Can not access closed file” problem will solved by adding property requestLengthDiskThreshold to httpRuntime
<httpruntime
executiontimeout="1200"
="" maxrequestlength="8192" usefullyqualifiedredirecturl="false" minfreethreads="8" minlocalrequestfreethreads="4" apprequestqueuelimit="100" requestlengthdiskthreshold="8192">
|
|
|
|
|
i want to pass a string array from c# to javascript function, and want to get values from that array, plz help me
|
|
|
|
|
|
Simlplest method would be to JSONify the array, slap it into a hidden field then eval() it at the js end...
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Sir,
What is the difference between managed and unmanaged code.Please give a simple example that demonstrates the difference between them.
thanks
|
|
|
|
|