|
Hi,
I want to design my Website. I want to use Silverlight control.
Which silverlight controls are available. How can I use.
Or Is there any other readymade templates avaialable.
Thanks
|
|
|
|
|
|
Hi friends
I have created a user control with name menuUserControl with menu control in it. I have created a user defined property for the user control(menuUserControl) as groupid and when ever I pass groupid to the user control(menuUserControl) in a page, it should use a theme based on the groupid I pass to it.
For example if I use two user controls(menuUserControl) one at the top and other at the bottom of the the page with two different groupids like if I pass groupid=1 for top user controls(menuUserControl), it should use theme1 and groupid=2 to the bottom user controls(menuUserControl), it should use theme2.
So my problem is that I am unable to apply theme to the user control. I have done some google search but unable to create a theme for a user control. I am only able to apply themes to the server controls. As I am using two user controls i.e menuUserControl as said above, both are displaying same theme. I want to apply two different themes to two user controls(menuUserControl). If any one have any solution or any other alternative, kindly help me please, Its very urgent for me.
If you did not understand or you have any doubt, please reply back, I will try to analyze the problem. Hope to get a positive response.
Thanks
Wajid
|
|
|
|
|
Hi
I think I have not explained the problem clearly.
So in simple terms, I want to say that I have created a usercontrol and using it in a page at the top and bottom. I want to apply two different themes to the top and the bottom user control.
Thanks
|
|
|
|
|
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
|
|
|
|
|
|
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.
|
|
|
|