|
Hi friends
I am currently working in asp.net with C#
I have problem to use MaskedEditValidator control for MaskedEditExtender.
I am using MaskedEditExtender for time format.
MaskedEditValidator is working in ie but doesnt fire in mozila browser.
Best regard
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
can i write asp code in asp.net 2.0
like vb script
i wanted to connect the database by writing the code in javascript/vbscript.
like in login page
i want to access the username and password field from database using
javascript/vbscript
please help...
-- modified at 1:15 Saturday 7th July, 2007
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
|
|
|
|
|
Sonia Gupta wrote: i wanted to connect the database by writing the code in javascript/vbscript.
To do this you could use AJAX.
Sonia Gupta wrote: like in login page
Which login page ?
|
|
|
|
|
I'm using an open source .NET URL rewriter to handing 301 permanent redirect and url rewriting on my site. We want to use the url rewrite to clean up our urls for SEO purposes, and we want to use the 301 redirect because we are changing up the directory structure for the URL paths. With the URL rewriter, we can use regular expressions in the web.config for both the redirecting and rewriting.
Well, our current naming convention makes it impossible to use a regular expression for the redirect. It's an apartment site, and for the ratings pages the url paths looks like this:
/ratings/texas.htm for the states pages
/ratings/tx-houston.htm for the cities pages
/ratings/tx-houston-apartmentname1234.htm for the apartment pages
We wants a structure something like this:
/ratings/Texas/ratings.htm
/ratings/TX/Houston/ratings.htm
/ratings/TX/Houston/Apartment-Name/ratings-1234.htm
The problem comes in when the city has a space in it: New York City, so the url is like this: /ratings/ny-new-york-city.htm. Well, then you have apartments with different length names like this: /ratings/ny-new-york-city-6th-avenue-lofts1234.htm.
So if I want to redirect /ratings/ny-new-york-city-6th-avenue-lofts1234.htm into /ratings/ny/new-york-city/6th-avenue-lofts/ratings-1234.htm or /ratings/tx-houston-spring-apartments1234.htm into /ratings/tx/houston/spring-apartments/ratings-1234.htm, there's no way for a regular expression to know when the city end and the apartment name beings.
Now, what I'm probably going to have to do is form all of the old page urls from the database and copy and paste them in as conditions in the web.config. So I'll have something like this:
<redirect url="/ratings/ny-new-york-city-6th-avenue-lofts1234.htm" to="/ratings/ny/new-york-city/6th-avenue-lofts/ratings-1234.htm">
<redirect url="/ratings/tx-houston-spring-apartments1234.htm" to="/ratings/tx/houston/spring-apartments/ratings-1234.htm">.
I'm not too opposed to this, except that I have over 100,000 pages that I would have to do this with. That would be a pretty loooong web.config. Would this slow my site down considerably? Is there ANY other way to handle this? Any advice would be great, thanks!
|
|
|
|
|
Psytherium wrote: I'm not too opposed to this, except that I have over 100,000 pages that I would have to do this with. That would be a pretty loooong web.config. Would this slow my site down considerably? Is there ANY other way to handle this?
What about creating a separate XML file which holds all these URL's ?
|
|
|
|
|
I guess I could do that, I suppose I would have to go in to the code of the open source URL Rewriter(www.urlrewriter.net) and change where it checks for all of the urls to redirect. Would it make a difference putting the urls in a separate xml file than the web.config?
|
|
|
|
|
Psytherium wrote: Would it make a difference putting the urls in a separate xml file than the web.config?
I think so.
URL Rewritting is such a simple task to implement. So why don't you implement your own URL rewritting engine which works with your requirement. You will get good performance than some opensource projects. You can read Scott Mitchel's URL Rewritting article[^] to get into this.
|
|
|
|
|
I am adding a "links" page to a website, and thought that, instead of manually entering the links into HTML, I could use an ASP.NET Datalist bound to a database table; this way, the website owner could change the displayed links and descriptions in an admin page.
My question is: is there a way to make the database field (varchar) containing the URL display the URL as an active link when it is pulled up on the webpage? There may be some simple way to do this that I am too stupid to see...
Thank you for any advice.
|
|
|
|
|
Nostromo77 wrote: My question is: is there a way to make the database field (varchar) containing the URL display the URL as an active link when it is pulled up on the webpage?
Once you get the URL to the web page, I think that will be rendered to hyperlink automatically by browser if it is in correct format. So you can directly bind that to the datalist
|
|
|
|
|
Excellent, thank you - I will try this.
|
|
|
|
|
***** Current language, ASP.NET 1.1 with C#
How to create Multi-column Drop Down List ?
Have you any idea?
From,
Eva
|
|
|
|
|
You have to build your own, using DHTML.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanks your reply.........
but i dun know how to do it..........
Can u help me?
From:Eva
|
|
|
|
|
Hi,
I have two web pages in one web page i have 5 check boxes. For example if the user checks the Checkbox1, checkbox2 and clicks on button.
On the button click I am storing the selected checkboxes value in database lke the following:
Year Options
xxx 1
xxx 2
in the above format( user selectes checbox1, check box 2).
And in the Second Web page I am showing the 5 checkboxes but in this web page I need to check the first and second checkboxes on the page load because user selectes those two check boxes in the first web page.
my select query returning the results like this:
Options
1
2
based on options I have to check those corresponding check boxes in the second web page.
How to achive this.
Thanks in advance
|
|
|
|
|
Make an array of references to the checkboxes:
Checkbox[] boxes = new Checkbox[] { Checkbox1, Checkbox2, Checkbox3, Checkbox4, Checkbox5 };
Now you can easily access the checkboxes using an index.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
Hello friends, can any body tell me what is serialization and what is the use of that..
alex.
|
|
|
|
|
Serialization is used to return results from Google, try it.
only two letters away from being an asset
|
|
|
|
|
On Putting a object instance into session or something like that...
|
|
|
|
|
Serialization[^]
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
So after 7 hours you thought you would post the google search for him.
only two letters away from being an asset
|
|
|
|
|
hey Mark, I got from bed now only. now here it is early morning.
I just logged in to cp while i am checking the mail.
So replied to him.
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
Try reading the other replies first. If you have something of value to add, then reply.
only two letters away from being an asset
|
|
|
|
|
Mr. MVP needs to check his attitude at the door.
only four letters away from being an asshol*
|
|
|
|
|
I am doing a prototype webpage where i want to stream a video file from a sqlserver database. I already have a table with video files. I want to convert the file into a .flv file and stream it to the web page. I would really like to do it without creating the file in a file system, I mean i would like to do it on demand,i.e convert the file to .flv type and stream it when requested. I have never done any video streaming of any kind. I would appreciate any input and references,
thanks and best regards
Mahesh
|
|
|
|
|