|
The only reason is because I'm using the URL rewriter from www.urlrewriter.net and they don't have an option to check a database. I had to get the url redirect and rewrite up and running quickly and using urlrewriter made this possible and easy.
|
|
|
|
|
Psytherium wrote: they don't have an option to check a database
Why not?
Psytherium wrote: had to get the url redirect and rewrite up and running quickly and using urlrewriter made this possible and easy
While sacrificing efficiency.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Because they did not code it in to their program. I suppose I'll have to go in and add the feature (Assuming it is the best option) since it's open source.
|
|
|
|
|
I was thinking along the lines of maintainability for the future, as well
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Well, once those 100k pages or so are redirected and the new urls are indexed in the search engine, I can go back to my 8 lines or so of regular expressions. Of course, that will take a couple of months.
|
|
|
|
|
Hi! Can anyone explain me how in c# code-behind coding the server can be instructed to resend a page.
Can it be initiated by the Server or is it necessary that the client requests for it?
Example given: Click on Button starts a Thread, ProgressChanged should resend the Page and the actual output. (Click starts a dict search, the output is shown in a table. After 10 seconds the server should resend the Page to the Client automatically, the actual output included)
I tried it with Response.Flush() but it cannot be done out of the running thread. I think a kind of invoke is required, but don't know how to do it in aspx either, didn't work the same way I would do it in c# (InvokeRequired and Delegate)
Thx in advance for your proposals
Here an approach done with a Timer
<br />
public class Class1<br />
{<br />
public Class1(Page page)<br />
{<br />
Timer tim = new Timer(5000);<br />
tim.Elapsed += ElapsedEventHandler(delegate(object o, ElapsEventArgs e)<br />
{<br />
page.Response.Flush();<br />
}<br />
tim.Start<br />
}<br />
}<br />
<br />
public partial class _Default : System.Web.UI.Page<br />
{<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
Class1 cls = new Class1(this);<br />
}<br />
}<br />
Error: System.Web.HttpException: Answer not available in this context
HelpLink null
InnerException null
ErrorCode -2147467259
-- modified at 15:45 Monday 16th July, 2007
|
|
|
|
|
ezazazel wrote: Can it be initiated by the Server or is it necessary that the client requests for it?
The server can NOT resend the page whenever it wants. The client has to request the new page, be it by the user clicking on it, or by some javascript, or by an AJAX component.
|
|
|
|
|
I am in the begining stage of ASP.NET upgrade process. I need to make sure that I am on the correct route. Please guide me
I have a big website which is done on ASP.NET1.1. It contains more than 30 modules ( Projects ). I have a root bin folder. After compiling each project I need to copy the DLL to the root bin. This is the present scenario.
In ASP.NET2.0, I heard that "no need of doing like this". Files can be organized in different folders and no need of Dll's. Is it ? So how can I arrange the modules ( Projects )., All in a single solution ? Or as like what I do in ASP.NET 1.1 , several independent projects and with independent solutions ? What would be the best practices on arranging the modules ( Projects ) for my scenario ? If I made all the projects in a single solution, will it make any problem if more that one developer working on same solution ?
When deploying the project to the live server, is there any security issue if I upload .CS file ? Or do I need to use "Publish website" option ?
For more information, Our development server is Windows2003 with ASP.NET 1.1 and 2.0. Website is configured using DNS (no need of accessing like localhost). It will be something like http://dnsaliasname.
|
|
|
|
|
Hi,
I want to add a template column in a datagrid during a runtime and also want to asign images to that template column at the runtime. can anyone tell me how can i do that?
Thanks for your help in advance,
|
|
|
|
|
you can add Template column in datagrid dynamicaly according to ur recqurement.
where you are binding you can write this
dgExample.Columns.AddAt(position,templatecolmn)
or u have option like
you can use protected variable at code behind page and assign it to column like this
suppose strHTML is protected variable at code behind then write in code behind page like
strHTML="<asp:templatecolumn>
<itemtemplate>
"
and use it in your aspx page like this
<asp:datagrid id="dgExample" width="70%" headerstyle-backcolor="Aqua"
="" itemstyle-backcolor="AliceBlue" runat="server">
<column> <%=strHTML>
amit
|
|
|
|
|
Thanks Amit.
Actually I already found the solution. I need to to initialize the ItemType of my Template column using user defined class and it works for me but now i am having a problem to export my datagrid to excel. I am able to export the columns which i have added in a design but there are template columns i am adding programatically and somehow its not showing in excel. May be because it is not defined in xml??
|
|
|
|
|
Hello everyone,
I am using Visual Studio 2005 and have some code built by both .Net Framework 2.0 and .Net Compact Framework 2.0 (two separate builds).
I want to build and test the code in both .Net Framework 3.0 and .Net Compact Framework 3.0. I can not find any guide about how to setup environment in Visual Studio 2005 to utilize .Net Framework 3.0 and .Net Compact Framework 3.0 to make builds, and setup both .Net Framework 3.0 and .Net Compact Framework 3.0 environment to test the code (new build).
Maybe it is because .Net 3.0 is too new? Any tutorials to recommend?
thanks in advance,
George
|
|
|
|
|
The best way is to get the Orcas beta.
"It was the day before today.... I remember it like it was yesterday."
-Moleman
|
|
|
|
|
Hi buddy,
Orcas beta is a good choice, do you know how to make build and test in Visual Studio 2005 with .Net 3.0? Any tutorials?
regards,
George
|
|
|
|
|
To my understanding you shouldn't have to:
.Net Framework 3.0 = .Net Framwork 2.0 + WPF + WWF + WCF + CardSpace.
i.e. the 2.0 components are unchanged.
|
|
|
|
|
Hi Abisodun,
I just want to make sure (through runnable experience) that my code can be built with .Net 3.0, test can pass in .Net 3.0. In understand and agree with you that in theory, it should work. But I need to make my hands dirty.
Do you have any detailed steps to make build/test in Visual Studio 2005?
regards,
George
|
|
|
|
|
|
Thanks Abisodun,
Are you posting the correct link? The link you posted is about Unit Test.
regards,
George
|
|
|
|
|
I'm using the CreateUserWizard control(v.2.0) for the first time and I don't quite understand how to implement additional fields into the control. In particular, how to update them in my Sql Server 2005 database.
I created my asp.net membership tables using the aspnet_regsql.exe tool. I then created a CreateUserWizard control by specifying a template. So my page now has additional registration fields displayed, such as address, phone #, etc, however I don't know how to get these fields into my db table when the user clicks "Submit".
Any ideas?
Thanks.
-Goalie35
|
|
|
|
|
Hello All,
I'm writing web application with standard Login Component for users. I have a Q:
How can I access user details (or Group where loged user is registered) from a code (C#).
For expample I Want to disable button for users from "User" group and enable for "Administrator" user.
Thanks
|
|
|
|
|
try this one:
Context.User.IsInRole(string role)
-- modified at 16:04 Monday 16th July, 2007
|
|
|
|
|
Hi ! I am new in ASP .net I wanted to install IIS on my machine , But I found that I dont have windows XP CD with me right now. Is there any way to install it directly form the microsoft site? Please Help me out !!!! Its urgent !!!!
Thanks
|
|
|
|
|
ciacia wrote: Is there any way to install it directly form the microsoft site?
Maybe if you have a genuine windows copy
|
|
|
|
|
There are also other webservers that help you run ASP.NET. After installing .NET Framework SDK, you can use Abyss Web Server from Aprellium Technologies. It supports ASP.NET and the interface is browser based.
|
|
|
|
|
Take a look at the Casini web Server[^]. It is lightweight and works about as good as IIS. Anything I've put on the web server, has been migrated to a true IIS box with no real hiccups. It is a nice server to use in a development environment.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|