Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
J

JohnyCoder

@JohnyCoder
About
Posts
15
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Validating form field for HTML tags but Anchor text
    J JohnyCoder

    Hi: Hello everybody: I need to parse the form field, say Description. I want to disallow all the html tags but anchor text. Basically i need a pattern that will match 0-9 a-zA-Zm -, _, @ and anchor text (can be multiple occurance). So if the text in description form field match this criteria, i will allow the user to submit the form successfully otherwise validatiion will fail. examples: Valid input ----------- My name is john doe. i live in xyx, city xyn state. I am a technial recruiter. my web site is john doe Please visite. my phone number is 000-000-7777. My email is x@y.com My Work website is work website Invalid Input ------------- My name is john doe. i live in xyx, city xyn state. <img src=cby.com> or <script><script I am a technial recruiter. my web site is john doe Please visite. my phone number is 000-000-7777. My email is x@y.com Need help with regular expression

    C# regex html com tools help

  • How to implement paging in pop up window
    J JohnyCoder

    Thanks for reply. Can you explain it in a liitle more detail.I would really appreciate if you can direct me to the relevent ariticals or anything that would give more more detailed insight on the problem. Thax

    C# tutorial question

  • How to implement paging in pop up window
    J JohnyCoder

    Hello everyone. At first you might be thinking so what is the big deal in implementing paging. But actually its not that simple. Here is what i have to implement. The main parent window where the user gets the records in a datagrid based on dates params in the following format email - firstName - lastName By click on email a pop up window displays the detail of that record. Its the same concept as master detail. Ok now here is the tricky part. i want to have a prev and next button in the pop up window. So the user can move back and forth to see next or previous record in the pop up window with out closing the pop up and then clicking on the next record in the main parent window to see the detail. Any Ideas Thx

    C# tutorial question

  • Changing the location of _viewState in the aspx page
    J JohnyCoder

    Hello guys. Here is the code to move _VIEWSTATE hidden field from top of the form to bottom.drop this code in the basepage and then inherit all the pages from the basepage in ur app. protected override void Render(System.Web.UI.HtmlTextWriter writer) { System.IO.StringWriter stringWriter = new System.IO.StringWriter(); HtmlTextWriter htmlWriter = new HtmlTextWriter(stringWriter); base.Render(htmlWriter); string html = stringWriter.ToString(); int StartPoint = html.IndexOf("= 0) { int EndPoint = html.IndexOf("/>", StartPoint) + 2; string viewstateInput = html.Substring(StartPoint, EndPoint - StartPoint); html = html.Remove(StartPoint, EndPoint - StartPoint); int FormEndStart = html.IndexOf("") - 1; if (FormEndStart >= 0) { html = html.Insert(FormEndStart, viewstateInput } } writer.Write(html); } Thanks sam: Thank you everyone. Aamir

    ASP.NET question

  • Changing the location of _viewState in the aspx page
    J JohnyCoder

    Thanks Sam: I also found some articals explaining the viewstate delima. Most of them suggest to place the viewstate in session or cache instead of page.It not only helps in improving the performance but also in page ranking( since all the junk is out of the page). Tommorow i m going to implement this idea. I will keep u posted once i am done. Thanks Aamir

    ASP.NET question

  • Changing the location of _viewState in the aspx page
    J JohnyCoder

    Sam: Thanks for replying. Actaully i want to keep the state of the page.If i turn it off for a page, i would nt be able to do so. Its for SEO perposes (Or my boss just does not like it). I want to keep the _viewstate hidden field but i just dont want it to appear at the top of the htmlForm (in View Source) but some where at the bottom. It has to something the way page renders it controls.I may need to change the default rendering of the controls. I have a slight idea but just dont know the entry point. Thanks Aamir

    ASP.NET question

  • Changing the location of _viewState in the aspx page
    J JohnyCoder

    Hi: Hello everyOne. How can i change the default location(usually the first control in the form when view the page source) of _viewState hidden form field in the aspx page. For eg when some one view the source of my aspx page, the _viewstate field should not show up at the top of the page (in the page source. it looks junk). I hope u are uderstanding what i m trying to achieve.Its all for SEO perposes. Any Ideas? Thanks Aamir

    ASP.NET question

  • CUSTOM WEB SERVER CONTROL THAT VALIDATE ITSELF
    J JohnyCoder

    Hi: I just realized that i have three dropdowns mm/dd/yyyy.i can not pass the id of one dropdown. I have to pass the value in the form mm/dd/yyy. so how can i use controlToValidate property of the validator.? Help

    ASP.NET csharp javascript design sysadmin

  • CUSTOM WEB SERVER CONTROL THAT VALIDATE ITSELF
    J JohnyCoder

    Thanks minhpc_bk: I think this would help. i m gonna try this. But one more q. i want to catch the error in summary control. would that be a problem? Thanks ab

    ASP.NET csharp javascript design sysadmin

  • CUSTOM WEB SERVER CONTROL THAT VALIDATE ITSELF
    J JohnyCoder

    Thanks for reply. I think u got it rite. but the question is how can use the validation controls as part of my custom sever control.i can write a seperate custom validator for my date control. but that won't serve my purpose. basically my date control would be self validating(on client and server side) control. now how can i use a custom validator inside my date control.i dont know. mostly on the web i m finding seperate validators. there is very less info about self validating controls. if u come acoss some thing like this. please do let me know. Thanks. Ab

    Web Development csharp javascript design sysadmin

  • CUSTOM WEB SERVER CONTROL THAT VALIDATE ITSELF
    J JohnyCoder

    HI: Thanks for reply. Actually i know how to develope a composite control.But i m just confused about the validation part.if i was to develope a seperate a validation custom server control. that was not a problem. But i dont know how to embede validation control inside inside this composite control.Should write a seperate class(inherited from base validator) and then instantiate it inside my control. i m searching the web. but mostly i m finding separate validation controls for custom control. its hard to find self validating custom server control. if u come across something like that, please inform me. Thanks AB

    ASP.NET csharp javascript design sysadmin

  • CUSTOM WEB SERVER CONTROL THAT VALIDATE ITSELF
    J JohnyCoder

    hello everybody: i am new to VB.net I have to design a custom web server control which validates itself on client side and server-side. which means that i would not use a seperate custom validator for validation, but it should be a part of the custom control itself.and this validation would be done on clientside first, and incase javascript is off in browser then validation is done on server side. The description of the custom control is as follows: its a date control which has 3 dropdowns(dds).one for month, second for days and third for days.it has two properties isDOB(boolean) and getDate which returns the date in the format mm/dd/yyyy. one method setDate which takes the string inn the format mm/dd/yyyy.This will set date according to the input string. can somebody point me to the rite direction.any help would be deeply appreciated. Thanks Cheers! AB

    ASP.NET csharp javascript design sysadmin

  • CUSTOM WEB SERVER CONTROL THAT VALIDATE ITSELF
    J JohnyCoder

    hello everybody: i am new to VB.net I have to design a custom web server control which validates itself on client side and server-side. which means that i would not use a seperate custom validator for validation, but it should be a part of the custom control itself.and this validation would be done on clientside first, and incase javascript is off in browser then validation is done on server side. The description of the custom control is as follows: its a date control which has 3 dropdowns(dds).one for month, second for days and third for days.it has two properties isDOB(boolean) and getDate which returns the date in the format mm/dd/yyyy. one method setDate which takes the string inn the format mm/dd/yyyy.This will set date according to the input string. can somebody point me to the rite direction.any help would be deeply appreciated. Thanks Cheers! AB

    Web Development csharp javascript design sysadmin

  • CUSTOM WEB SERVER CONTROL WITH VALIDATION
    J JohnyCoder

    hello everybody: i am new to VB.net I have to design a custom web server control which validates itself on client side and server-side. which means that i would not use a seperate custom validator for validation, but it should be a part of the custom control itself.and this validation would be done on clientside first, and incase javascript is off in browser then validation is done on server side. The description of the custom control is as follows: its a date control which has 3 dropdowns(dds).one for month, second for days and third for days.it has two properties isDOB(boolean) and getDate which returns the date in the format mm/dd/yyyy. one method setDate which takes the string inn the format mm/dd/yyyy.This will set date according to the input string. can somebody point me to the rite direction.any help would be deeply appreciated. Thanks Cheers! AB Aamir Babar

    Visual Basic csharp javascript design sysadmin

  • custom web server control with client and server side validation
    J JohnyCoder

    hello everybody: i am new to VB.net I have to design a custom web server control which validates itself on client side and server-side. which means that i would not use a seperate custom validator for validation, but it should be a part of the custom control itself.and this validation would be done on clientside first, and incase javascript is off in browser then validation is done on server side. The description of the custom control is as follows: its a date control which has 3 dropdowns(dds).one for month, second for days and third for days.it has two properties isDOB(boolean) and getDate which returns the date in the format mm/dd/yyyy. one method setDate which takes the string inn the format mm/dd/yyyy.This will set date according to the input string. can somebody point me to the rite direction.any help would be deeply appreciated. Thanks Cheers! AB

    Visual Basic csharp javascript design sysadmin
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups