|
So I should only create a usercontrol in App_Code if I have a good reason for it?
I just can't figure out what that good reason is...
|
|
|
|
|
I would tend to put them in a dll for reuse, if I wrote any,
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Absolutely, I would do that to if I were to reuse them.
Could the be any benefits like loading-speed or something if I put the usercontrols in app_code rather than outside?
|
|
|
|
|
None I can think of. They only get loaded the first time a page gets accessed, then they live in server memory
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Yeah, that's what I thought, I just keep the usercontrols out of app_code until I find a good reason to to otherwise.
Thanks Christian...
|
|
|
|
|
Hi
Does anyone know any good articles for creating a keyword search in c#?
Ive found loads which show you how to search through a database driven website but all the content on my website that I need to search for is not database driven
any help would be great!
thanks
|
|
|
|
|
If it's not database driven, your best bet is to use google to search your site, if it's live. If it's not, then you need to build a DB.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
OK
Basically Im building a web app which will have lots of links and text information displayed on pages. So the text information which is not stored in the database can only be searched using google and not a custom search engine I build myself as it would take too long, is that what you mean?
I was hoping to find some example code on how to create my own search engine but I dont want to spend months doing it.
thansk for the reply
|
|
|
|
|
.netman wrote: I was hoping to find some example code on how to create my own search engine but I dont want to spend months doing it.
Every search engine, including Google, is based on databases and indexes. The better the indexing, the quicker the searches. That's what a database is good for, there's really no alternative. If your pages are static, you could choose to put the content into a DB, and search from there, that shouldn't take too long. It depends on how complex a search you want to support. IF your site is live, then there is no better option IMO than doing a google search from your site with site: yourURL as part of the search string.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks for the reply.
The app is not live yet so it may be worth putting the content in a database and then just using queries to search the data. I think I will do that.
cheers
|
|
|
|
|
Take a look at the Searcharoo project here[^]
|
|
|
|
|
Hi
thanks for the reply
This is not quite what I want though
cheers anyway
|
|
|
|
|
i have a master page n a content page..in content page i have a datalist and two button....while running this it trows an exception "Control 'ctl00_ContentPlaceHolder1_btnPrev' of type 'Button' must be placed inside a form tag with runat=server." so i add the code in content page's load event
System.IO.StringWriter stringwriter = new System.IO.StringWriter();<br />
System.Web.UI.HtmlTextWriter htmlwriter = new System.Web.UI.HtmlTextWriter(stringwriter);<br />
this.pnl1.RenderControl(htmlwriter);<br />
string s = stringwriter.ToString();<br />
public override void VerifyRenderingInServerForm(Control control)<br />
{<br />
return;<br />
}<br />
EnableEventValidation="false"....now its working but the problem is this..the click-event of the buttons of content page are not working...please someone help
|
|
|
|
|
You lose viewstate when you add dynamic controls, unless you do it before page_load. You'd do better to fix your tag so that it works when placed in the content page. Your content was obviously broken or you would not have got an error
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
but i have done...<%@ Page Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" EnableViewState="true" CodeFile="Default2.aspx.cs" Inherits="Default2" Title="Untitled Page" EnableEventValidation="false" %> ..still my button click event is not working...please help
|
|
|
|
|
hi,
I want to display a datagrid sub columns in each column as follows...
example
---------------------------------------------------------------
date | 1 | 2 | 3 | 4 | 5 |
---------------------------------------------------------------
|in | out| in |out | in |out | in| out| |
---------------------------------------------------------------
Name | | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
Please help me thanks in advance
|
|
|
|
|
To display first row use simple html table having span of two columns of Datagrid...
Thanks & Regards...
Amit
|
|
|
|
|
??
do you think this can solve the purpose ?
Ashish Sehajpal
|
|
|
|
|
Can you give solution in detail.?
regards
sam asir
|
|
|
|
|
Hi all,
please let me know any one knows the rgular expresstion to ristrict the string format of Url type:
1)http:\\www,goog.com.......
2)wwww.google.com..........
3http://www.codeproject.com/script/Forums/Edit.aspx.............
the expresstion which does not accept the Any specal charectes at last continously.
Thanks And Regards,
Guru
|
|
|
|
|
There's this helpful website regexplib.com[^] which i'm sure contains loads of examples to help you out.
|
|
|
|
|
hi everyone ..
i hve a small requiremnt inmy application. i need to enalarge images that are retrieved from the database dynamically(i am working on matrimaonal kind of site) when the image is pointed upon by the mouse..
would be really happy for ur reply..
thank u
regards
rack.
rack
|
|
|
|
|
Check this out
Its not dynamic code but as long as the code displaying the image from the database is you cna just use this get around it:
http://www.dynamicdrive.com/style/csslibrary/item/css-popup-image-viewer/
|
|
|
|
|
hi thank u very much for ur reply..
i want tu retreive the images from database so what sould i write in
"
thank u!!
rack
|
|
|
|
|
hi
i think my mail has just got distrbed ..
wat should write in "Src=...." if at all i want to display the images present in a database..
thank u
rack
|
|
|
|