|
|
nithydurai wrote: my question is how can i create aspx page in runtime ?
Just like you create any other file.
nithydurai wrote: i want to give option "add new page" to the user, where he can add a new page and control its all contents.
so i need to know how to create that aspx page in the runtime
It is not a good idea to create ASPX pages on run time. What you are trying to do can easily done using URL rewriting. Read the articles on URL rewriting.
|
|
|
|
|
As per problem description provided, I may guess that you want to create a dynamically generated page based on some inputs e.g from user or some XML that contains control details.
On this thread I would like to include that, It can be done by using some utility frameworks e.g.
1. MonoRail[^]
2. NVelocity[^]
Both of the framework, accept a template file and render the output file in desired format. Although It is not pretty much easy as it sounds.
I hope by going through some quick starts at given link you may be able to get some where.
|
|
|
|
|
Hi all,
I am creating a type of control that is used to display fill-in-blank questions, the control will have a drop down list in the location of each blank with 4 options to choose from, like this
The elephant [is, are, us, we] a very big Mammal that [eat, eating, eats, ate] plants...
[is, are, us, we] = drop down list with 4 options that the student uses to choose the best answer.
The question is how to dynamically create drop down server controls AND position them in the correct place within the words of the paragraph?
Any ideas?
Thanks
And ever has it been that love knows not its own depth until the hour of separation
Mohammad Gdeisat
|
|
|
|
|
Easy way is to put this inside a template column of a GridView. ASP.NET will maintain the viewstate for all the dropdowns.
|
|
|
|
|
What about positioning the controls between the words in the paragraph?
And ever has it been that love knows not its own depth until the hour of separation
Mohammad Gdeisat
|
|
|
|
|
<asp:panel id="pnl" runat="server" xmlns:asp="#unknown">
DropDownList ddl = new Dropdownlist();
pnl.control.add(ddl);
|
|
|
|
|
i wud like to read data from the bar-code device and store it the database, help me out to find a solution.
|
|
|
|
|
|
ok i just want the data from that device to be caught
|
|
|
|
|
That show you have no idea about ASP.NET. I reiterate, you can't use ASP.NET for doing such things.
|
|
|
|
|
I use the following code to disable back in IE
In javascript i use
window.history.forward(1);
]
and on code side
protected void Page_Init(object sender, EventArgs e)
{
Response.Cache.SetCacheability(HttpCacheability.NoCache);
}
protected void Page_Load(object sender, EventArgs e)
{
Response.AddHeader("pragma", "no-cache");
Response.Expires = -1;
}
But When i move from login page to firstpage it should not retun to login page
when the back button is clicked.
right now its returning to login page.How can i avoid that.
|
|
|
|
|
|
Hi,Try to go through the following link.
http://dotnetslackers.com/articles/ajax/HandlingTheBackButtonFromServerCode.aspx
hope it helps.
|
|
|
|
|
Can You please tell me how to add Briefcase functionality to my Website?
|
|
|
|
|
I have to display images as thumbnail from a specified folder or list of files from an array
Regards
Radhakrishnan G.
|
|
|
|
|
And at which point are you having a problem?
|
|
|
|
|
my question is how can i create aspx page in runtime ?
i want to give option "add new page" to the user, where he can add a new page and control its all contents.
so i need to know how to create that aspx page in the runtime
|
|
|
|
|
hi,
I'm trying to create a folder sharing using WMI win32_share on an ASP.NET c# page.
while running it using the visual studio 2008 it works great.
But after I publish it to the IIS and run the WebPage nothing happends?!
it's seems like the page was loaded fine but checking the folder I see no share was created.
Any ideas?
I'm using .NET 3.5, visual studio 2008, c# webapplication.
IIS 6 server.
here is the code
string shareName = "Test";
string CUDir = @"D:\Test";
ManagementClass managementClass = new ManagementClass("Win32_Share");
ManagementBaseObject inParams = managementClass.GetMethodParameters("Create");
ManagementBaseObject outParams;
inParams["Description"] = "";
inParams["Name"] = shareName;
inParams["Path"] = CUDir;
inParams["Type"] = 0x0;
outParams = managementClass.InvokeMethod("Create", inParams, null);
tnx
modified on Tuesday, January 27, 2009 4:33 AM
|
|
|
|
|
The problem was on the IIS application pool.
in order for me to use Win32_share I need to setup the predefined Identity of the Application Pool to Local System. otherwise I have no premissions to use WMI.
I can also set the Configurable to a user with the right premissions to do the same.
To access the Identity you need to open the IIS Manager.
Colpase the Apllication pools and either create a new pool to be used or edit the deafult by right click and Properties.
Go to the Identity tab and choose your wish.
Also do not forget to go to under Web Sites and on your selected website/virtual directory properties to set under the Application settings the Apllication pool to the one with the new premissions.
|
|
|
|
|
e.g. datagrid to look like after name and address columns have bind to datagrid.
name l address l l l
|
|
|
|
|
in such a situation you will have to hide column after binding it...
but if you hide that column using grid property of hiding it then you wont be able to use that data in it or data will be lost on postback...
umerumerumer
|
|
|
|
|
U can use bound field.
BoundField b = new BoundField();
b.DataField = field name you would like to bind with.
b.HeaderText = " ";
datagrid.Columns.Add(b);
|
|
|
|
|
Hello everyone,
Is it possible to add a cssClass to a TreeNode?
|
|
|
|
|
Hello,
I have put a combo box on a form in VB.NET; which will be populated through oracle table "PLACENAMES". I wish that when a user types the name of place in the combo box the relevant / like place names should be auto dropped down for his selection, and if it is a new place name then this new place name should be saved in the table on pressing the enter key.
Please guide me how to achieve this feature.
Thanks & Regards
Girish
|
|
|
|