- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 5
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Software Architect
- Interests
- Music, Guitars
- PC Specs
- DELL Dimension 9200C, intel core duo 2.4 ghz, 4GB ddr ram
92 Posted Topics
Re: or you could use a custom validator: this part in your asp page [CODE] <asp:TextBox id="txtTextBox" runat="server"/> <asp:CustomValidator id="cvLengthValidator" runat="server" OnServerValidate="cvLengthValidator_OnServerValidate" ErrorMessage="Minimum Length is 10" ControlToValidate="txtTextBox"/> [/CODE] in your code behind [CODE] protected void cvLengthValidator_OnServerValidate(object sender, ServerValidateEventArgs e) { e.IsValid = e.Value.ToString().Length > 10; } [/CODE] | |
Re: Hi, You need to take a close look at your web.config file, it looks like you may have a duplicate line in the HttpHandlers section. It could also be that you have 2 web.config files i.e. 1 in the root folder and a second in the imageserver folder, with duplicate … | |
Re: you could also add a literal control to your page/user control [code] <asp:Literal id="litHtml" runat="server"/> [/code] And then assign your html to its text property: [code] litHtml.Text = "<h3>Hello World</h3><div>Something here</div>"; [/code] | |
Re: How about converting it so that it can be played with the silverlight media player using Expression Encoder | |
Re: How about this for an idea : an ASP.NET site in the vein of Sorcefourge which catalogues and lists ASP.NET only open source projects and allows people to contribute and logs the progress of the projects bug tracking etc. Theres a career in there somewhere! | |
Re: cboEmpList.DataValueField = myRead.GetValue(myRead.GetOrdinal("EId")) that line is only useful if you are databinding in your case use [CODE] cboEmpList.Items.Add(New ListItem(myRead.GetValue(myRead.GetOrdinal("EId")), myRead.GetOrdinal("FName")) + " " + myRead.GetValue(myRead.GetOrdinal("Mi"))) [/CODE] | |
Re: this article has both server and javascript solutions: [URL="http://aspalliance.com/1614_Adding_Filter_Action_to_FileUpload_Control_of_ASPNET_20.all"]http://aspalliance.com/1614_Adding_Filter_Action_to_FileUpload_Control_of_ASPNET_20.all[/URL] | |
Re: why not check whether the DataSet has any rows in code before binding then show/hide a label with that text? | |
Re: Totally agree with SKnake on this, any kind of attempt to use dynamic sql should include thorough checking for SQL injection attempts. The solution is as stated that the parameter is text and should be enclosed in single quotes spaces around the equals will make no difference at all, if … | |
Re: You need to create a Session Object as every time someone visits your site a session is created by default. You can think of the session as a big hashtable with keys to retrieve the contents, one important thing to remember though is that Sessions dont last forever, so if … | |
Re: try this article: [URL="http://stackoverflow.com/questions/82319/how-can-i-determine-the-length-of-a-wav-file-in-c"]http://stackoverflow.com/questions/82319/how-can-i-determine-the-length-of-a-wav-file-in-c[/URL] | |
Re: erm am I missing the point? ASP.NET & Javascript as competing web development technologies? You have to look at what your project involves, if you want to do any serious database driven web application you will need to use ASP.NET, PHP, Ruby on Rails or any of the server scripting … | |
Re: just a thought, but is the shared folder dug down about ten levels in a folder with odd characters or something like that? | |
Re: we use infosaic.com, they support all versions of asp.net, sql etc too | |
Re: There are databound controls in asp.net mobile like the mobile list control, or you can use something like the mobile textview control and add your own markup. You have to be a bit careful as different mobile devices support different markup like tables for example. | |
Re: Hosting wise you could try infosaic.com they do reasonable .NET hosting and you get a sql express database with the hosting package. You also get a domain name with the package too. For more robust but more expensive try DiscountASP.net. In reality while a good example website could get you … | |
Re: I take it you are using VS2005 or 2008 if you are using an app_code folder? I suspect you may need to change your publish settings. Also you said web application not website, so just in case, you cannot use app_code in web application projects only web sites, and you … | |
Re: I agree with sknake safest place is in the database, if you don't have one why not use ASP.NET forms authentication and put the login details in the web.config file? | |
Re: Something like this depending on your database name and location: OleDbConnection conn; OleDbCommand comm; OleDbDataReader dr; conn = new OleDbConnection("Provider = Microsoft.Jet.OLEDB.4.0; Data Source = C:\\db1.mdb"); comm = new OleDbCommand("Select * from Table1",conn); conn.Open(); conn.Close(); | |
Re: Hi sfRider, Sadly, dynamic content is dynamic content, so if the links are being rendered on the fly by javascript then you will not be able to scrape them. | |
Re: This library encapsulates the functions in the twitter api: [URL="http://code.google.com/p/twitterizer/"]http://code.google.com/p/twitterizer/[/URL] See the twiiter api documentation for details: [URL="http://apiwiki.twitter.com/Twitter-API-Documentation"]http://apiwiki.twitter.com/Twitter-API-Documentation[/URL] | |
Re: Hi, I would load the seperate xml files into datasets then merge the datasets as you cannot merge the individual tables in a single dataset without iterating through the data rows, check this article on MSDN for a detailed description on merging Datasets: [URL="http://msdn.microsoft.com/en-us/library/aa984388(VS.71).aspx"]http://msdn.microsoft.com/en-us/library/aa984388(VS.71).aspx[/URL] | |
Re: I think the generic description for this is single sign on, there are several ways to achieve it, some are more secure than others, essentially google is using cookies combined with a check that the user is allowed access to a particular application. By default ASP.NET authentication uses an auth … | |
Re: Your original solution will work fine, I suggest you use some url rewrites to achieve the impression that there are multiple event pages on the site. One simple way is to use an assembly called UrlRewriting.net [URL="http://www.urlrewriting.net/149/en/home.html"]http://www.urlrewriting.net/149/en/home.html[/URL] this is a free URL rewriting module, this would enable you to map … | |
Re: you will not be able to see the flash buttons work in the Visual Studio IDE however you should see them when you debug in IE provided the code is correct for the flash object | |
Re: why not use an iframe on the the buy.com site to host the page on pay.com? | |
Re: Sorry for the very general answer but the question is very general too! I suggest you look up some sites dealing with web design, CSS, web standards and probably table layouts too. These are really basic things you should know before attempting to build a web site. Visual studio can … | |
Re: C# in my humble opinion, because it looks nice init! | |
Re: Here's a Scott Gu blog which explains how to configure membership for use on a remote server, you may have to ask the hosting company to configure the database for you: [URL="http://weblogs.asp.net/scottgu/archive/2005/08/25/423703.aspx"]http://weblogs.asp.net/scottgu/archive/2005/08/25/423703.aspx[/URL] | |
Re: Hi Jumbo, A infarction said, you don't ever link to the Master Page url so probably in your code you have something like: [ICODE] protected void btnTest_Click(object sender, EventArgs e) { Response.Redirect("YourMasterPage.master"); } [/ICODE] But it should read: [ICODE] protected void btnTest_Click(object sender, EventArgs e) { Response.Redirect("YourContentPage.aspx"); } [/ICODE] | |
Re: 1. Right click your project in VS and click properties 2. Cick the publish tab on the left 3. Choose "Prerequisites" 4. Choose "Crystal Reports for .NET Framework 2.0" (make sure the check box is checked. 5. In the same window you will find 3 vertical Radio Buttons , chose … | |
Re: The errors are both related to IIS configuration you need configure the application virtual directories as applications: [URL="http://msdn.microsoft.com/en-us/library/zwk103ab.aspx"]http://msdn.microsoft.com/en-us/library/zwk103ab.aspx[/URL] If you are using shared hosting you will need to ask the hosting company to configure it for you, or some hosting companies allow you to do it yourself via their control … | |
Re: you can use an ASP.NET Ajax Panel and a timer control: [URL="http://www.asp.net/ajax/documentation/live/tutorials/IntroToTimerControl.aspx"]http://www.asp.net/ajax/documentation/live/tutorials/IntroToTimerControl.aspx[/URL] | |
Re: Here is a VB example: [URL="http://www.codeproject.com/KB/aspnet/AppPoolRecycle.aspx"]http://www.codeproject.com/KB/aspnet/AppPoolRecycle.aspx[/URL] | |
Re: This seems to do the job for firefox, but some are reporting problems for Opera and Safari: [URL="http://forums.asp.net/t/1013531.aspx"]http://forums.asp.net/t/1013531.aspx[/URL] | |
Re: you could achieve the same thing using a custom sitemap provider, there is an article at MSDN that describes how to do this: [URL="http://msdn.microsoft.com/en-us/magazine/cc163657.aspx"]http://msdn.microsoft.com/en-us/magazine/cc163657.aspx[/URL] we use this extensively on our sites for menus, navigation etc. The benefit of this is that if you add the provider to your config file … | |
Re: The error you are getting is because you are trying to modify the referrer header which is restricted if you comment out that line it should work | |
Re: I think you should google 2 things 1. ASP.NET hosting (you need web space to host web sites) 2. FTP (this is how you usually get your files into the web space) | |
Re: changing the locale of the database might work, you can ask the hosting company to do that | |
Re: 2 approaches 1. Add the logic for delete and update to your webservice and specify these via the datasource wizard 2. Add the update delete logic to your page class and handle the update and delete events of your datagrid in the page class | |
Re: in your global.asax [ICODE]public static string GlobalMethod = "example";[/ICODE] in your page class [ICODE]lblYourLable.Text = Global.GlobalMethod;[/ICODE] if your Global.asax.cs has a namespace then use: [ICODE]YourNamespaceName.Global.GlobalMethod[/ICODE] | |
Re: you are right it is tedious to read through it! my suggestions, the sql error appears to be a problem with the syntax of the inline queries you have specified for your SqlDataSources, more specifically something near a ']' you don't actually need the [] around column names unless the … | |
Re: I am presuming you are using a SQL database here, so why not create a fulltext index for the fields you want to query. Then use 'contains' to search the fulltext index. Any other way will involve table scanning multiple fields with a 'like' statement which just isnt cost effective … | |
Re: If I understand your question correctly you would have to make the text property of the textbox public to access it from an external class. Using FindControl, especially in the context of an entire page, is not recommended as it is a recursive operation and resource intensive. I would only … | |
Re: Use execute scalar as it returns the value of first row of the first column of the result set like so: [ICODE] string result = (string) myFileCommand.ExecuteScalar(); lblTotalSpaceUsed.Text = result; [/ICODE] | |
Re: Totally agree with Fungus1487, it's not worth the headache writing your own, we use the telerik rad editor but the suite is expensive and probably overkill for decorating text. One other thing though, if the project isn't commercial, why not use community server? It does all the forum stuff and … | |
Re: your first post seemed to have you pointing in the right direction, and the error message tells you what you need to do. If you do not have access to the server directly then you need to ask the server admin to configure your folder as an application in IIS. … | |
Re: Scott Gu's blog has a great article on linq to sql which includes examples of executing stored procs. [URL="http://weblogs.asp.net/scottgu/archive/2007/08/16/linq-to-sql-part-6-retrieving-data-using-stored-procedures.aspx"]http://weblogs.asp.net/scottgu/archive/2007/08/16/linq-to-sql-part-6-retrieving-data-using-stored-procedures.aspx[/URL] | |
Re: Suggestion: 1. Add a property to your page [ICODE] private int _tabIndex; public string TabIndex { [INDENT] get { return _tabIndex; } set { _tabIndex = value; } [/INDENT] } [/ICODE] 2. Handle the ActiveTabChanged of your event TabContainer and update your poperty with the tabID of the new tab … | |
Re: Why not use the google ajax language api [URL="http://code.google.com/apis/ajaxlanguage/"]http://code.google.com/apis/ajaxlanguage/[/URL] |
The End.