|
If you want to edit your post, click on the "edit" button at the bottom as opposed to posting the updated question again.
Regards,
--Perspx
|
|
|
|
|
Hello,
I want to know how to build web pages on fly.
like example:
If we go to adding articles in codeproject.com. If we add a new article name as "my first article" then they are creating a page myfirstarticle.aspx in the one of the categories.
Code Project Implementation Explanation:
Basename is the name you want to give your article's file (without the .aspx extension). For instance, if your basename is coolcode then your article file will be coolcode.aspx, and all files associated with your article (Zips, images) will be in the coolcode/ directory. If you pick a basename that has already been used then you will be prompted for a new one. Illegal characters and spaces in the basename will be replaced by underscores
How can we build this type mechanism pages.
Can anybody help me on this?
Thanks,
Ashok Nalam
Ashok Nalam
|
|
|
|
|
Store your content in a database and write a page which takes a query string parameter, telling it what content to pull out of the DB and display.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I can store the content in database and pull it from the database if i have a static page(eg:mystaticpage.aspx) which is created by me from the project and i will place place holder or control which it can show the content from database.
what i am asking is if user is created his own article(eg: named as my dotnet article )how can i create webpage(mydotnetarticle.aspx) at runtime.How the code project is doing thats what i want to know and to implement?
Ashok Nalam
|
|
|
|
|
can anybody please reply for my above query
Ashok Nalam
|
|
|
|
|
how to play .flv, .fla , .swf file using player in asp.net?
What is the script of embedding flash player ?
sourabh
|
|
|
|
|
ASP.NET does not support these formats. You just embedd or emit the HTML to play them, the same HTML you'd find if you googled for it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
what is script of embeding flash player in asp.net web page ???
sourabh
|
|
|
|
|
Take a look at this page. However, Flash can generate the HTML code to embed the object for you when you export your movie.
Regards,
--Perspx
|
|
|
|
|
Hi,
* What is difference between JSON and XML? Which is better?
* How to call WCF Service using JQuery(like we call Web Service from JavaScript)
|
|
|
|
|
Hi guys, I am stuck to this problem don't know how to do this question in (ASP) not (ASP.NET).
I have a checkbox on a "asp" page. If this checkbox is checked then i run a function that get all the students records who are registered. But, if the checkbox is not checked then my function get all the student records who are not registered.
how can i do this.
please help.
Thanks
|
|
|
|
|
use CheckBox.CheckedChanged Event
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
CheckedChanged event isn't in classic asp.
|
|
|
|
|
This is the ASP.NET forum. For outdated and obsolete technologies, try the web development forum,
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I inherited a project that was configured to run a file based Web Site using the ASP.NET Development Web Server. I want to switch this over to run using IIS. I have been looking through the project options but I cannot find how to go about switching this without creating a whole new project. Am I missing something?
Regards,
Jeff
|
|
|
|
|
Right click Website->Properties->Web->Select Use IIS Web Server Radio button and provide the URL.
|
|
|
|
|
I don't have that option... is this only in VS2008.
|
|
|
|
|
It was for VS2005 but you should be able to find that setting somewhere in Project Properties page.
|
|
|
|
|
The topic subject mind sounds familiar to some of you.
My problem
An Asp.NET website (3.5) with AJAX has a USER CONTROL.
This Control exists of a Label and of a DropDownList.
In my WebPage I consume the control and that works.
In the control I have stated:
<code>
public event EventHandler SelectedIndexChanged;
protected void Page_Init(Object sender, EventArgs e)
{
this.SelectedIndexChanged += new EventHandler(DDL_Osic);
}
protected void DDL_Osic(Object sender, EventArgs e)
{
if (this.SelectedIndexChanged != null)
this.SelectedIndexChanged(sender, e);
}
</code>
and in the ASPX of the User Control
<asp:DropDownList runat="server" ID="ddlTBM" CssClass="PromptValue" Width="100%"
AutoPostBack="true" OnSelectedIndexChanged="DDL_Osic"/>
In the Webpage it says in the aspx
<uc1:PromptSelecteerTBM ID="PromptTBM" runat="server"
OnSelectedIndexChanged="PromptTBM_OSIC" />
In the codebehind of the webpage:
protected void PromptTBM_OSIC(Object sender, EventArgs e)
{
LaadTBMZones(0);
}
And now the problem:
What happens that if I change the selection of the DropDownList the event of the usercontrol is fired, it goes to the method in the webpage, than returns to the event/method of the usercontrol and returns to the codebehind of the webpage and then back again...and so on
What did I do wrong? How to stop this loop?
|
|
|
|
|
SelectedIndexChanged triggers DDL_Osic, which calls SelectedIndexChanged, which triggers DDL_Osic, and so on... that's your loop.
I really do not understand why you add the handler in Page_Init and in aspx, either...
(i've tried posting a similar message a minute ago but i think it crashed, sorry if it actually had posted it and you're gonna see it twice. Though if it crashes again, i'm not gonna type it again
|
|
|
|
|
Hey Greg,
I added the handlers to both sides because I saw plenty of examples with this. Well if there is 1 too many, which should be removed?
|
|
|
|
|
Don't worry about that, honestly. Whichever you get rid off makes no difference, it's still gonna trigger.
Worry about your handler though and get rid of the part that says:
this.SelectedIndexChanged(sender,e);
in your DDL_Osic method, though, and add some proper logic to what the program should do at this point. As in what should happen, when the selection has been changed. If DDL_Osic triggers, means it CAUGHT the event. No need to call it again
|
|
|
|
|
the point is this:
As soons as the usercontrol ddl has changed it selectedindex the webpage should call a method to fill a Gridview which is outside of the usercontrol but in the page.
So if I remove the this.SelectedIndexChanged(sender,e); How can I fill the gridview autoside the ussercontrol with data?
|
|
|
|
|
This is what i'd do.
Forget about the code behind of the UserControl, make that Dropdown public in the usercontrol class and on the main aspx add the handler, (Page_Init, Page_Load):
private void Page_Load()
{
(yourusercontrol).(YourDropdownInUserControlId).SelectedIndexChanged += new EventHandler(s_SelectedIndexChanged);
}
private void s_SelectedIndexChanged(object sender, EventArgs)
{
}
Hope this works for you
|
|
|
|
|
Yeah,
this even works better!
This component is used over several pages in the system and only in 1 page it should do OnSelectionChangedIndex event. So the other pages have no interference with this.
COOL and many thanx
|
|
|
|