|
OK - after you googled for help on this topic and found all the examples online, which bit was still causing you confusion ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have implemented custom paging I find the BottomPagerRow is no longer visible after selecting a row on the last page index only. Any suggestions welcome.
Regards
dotman1
|
|
|
|
|
My ISP is reluctant to host any LAMP software and will only support .net based stuff.
I have found Presstopia[^] but am wondering if anyone knows of any other . net based blog software. (doesn't have to be free).
|
|
|
|
|
|
Thanks Navaneeth,
That helps a lot.
(Sorry for the late reply, I have been in Melbourne for the F1).
|
|
|
|
|
Session state has created a session id, but cannot save it because the response was already flushed by the application.
I have a big problem with this error.
Few days ago, web app worked fine and when session expired and I refreshed the page, code inside Session_Start in global.asax logs me in again.
cookie = Request.Cookies["Userword"];
if (cookie != null)
{
string strCookie = cookie.Value;
if (strCookie != "")
{
sin.AutoLogin(cookie.Values["heavy"],
cookie.Values["metal"],
true, Request.UrlReferrer.AbsoluteUri == null ? "" : Request.UrlReferrer.AbsoluteUri, false);
}
}
else
{
if (Session["UserInfo"] == null)
{
Response.Redirect("login.aspx");
}
}
Yesterday I can't login by refreshing the page, any more.
If I login manually, everything is ok. Error raises only when session expires and user refreshes the page.
When I try to step in AutoLogin function, try catch block catches the Object reference error before debugger was able to step into a function.
The above error I caught in Application_Error in global.asax.
I have searched the net for solution, but with no luck.
Most of the answers were that you shouldn't use Response.Flush and I have Response.Flush only in captcha class which is loaded on login.aspx page and everything worked great until yesterday.
Can anyone help me with this issue?
|
|
|
|
|
I have an app that access a txt file on another server, and it passes the name of that file to a sp on a separate db server. I've got impersonation in place, but am confused on how to set it up.
I have three separate servers that I am dealing with, one is where the txt file is located, one where the db is located, and one where the app is located. I've set up windows users on the txt file server, and one on the db server. I've assigned permission to the txt file for that win user, and then I've assigned a login for the db for that win user, now which of these do I add to my impersonate username section?
|
|
|
|
|
Dear all,
I am trying to find some info on the net about a simple content management system which I would like to implement for experimentation purposes.
Unfortunately i am find a lot of information on how to handle article updates, news updates, membership updates etc.., but I am not finding information about how to deal with multiple pages creation and how these multiple pages that are created dynamically by the end user are handled in the database along with templates etc...
Can anyone suggest any apparoches that are normally taken in order to achieve this..or may be even suggest a good article that I may have missed.
Thanks a lot for your help,
Chris Farrugia
|
|
|
|
|
I'm not sure what you mean by 'multiple page creation'. Your data lives in your DB and ASP.NET is going to generate each page, one at a time, as would make sense for a stateless system like HTTP.
If your data exists across multiple pages or not, shouldn't really change the DB - the database schema should not be driven by the UI.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
What I means was the facility for the user to add a new page on the website.
What is the approach that cms usually take in order to accomplish this?
Thanks a lot,
Chris Farrugia
|
|
|
|
|
Oh - I see. So the content being managed, is a website ? The CMS is, in fact, a system for building web sites, which are live at the point of creation ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Yes exactly that is what I want.
So the cms will be responsible for management of the content of the website. But apart from the normal facilities such as news adding, article updates , polls etc, I woul like the facility to allow the user to add a whole page to the website.
I would like a suggestion of how this can be achieved. What approches are usually taken? Should the application store the html of the new pages created by the user in a database and then link the page with an id corresponding to the content? Any suggestions?
Thanks a lot,
Chris Farrugia
|
|
|
|
|
I guess you'd have to save your pages as HTML, yes, and then store the filepath along with your other info in the DB. In this case, instead of the system building data into an existing template, you'd need to build templates that can be dropped in to a page, or you'd need to simply offer a HTML editor.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello,
I am sure there is a way to know which control is generating the postback event.
Is it just using the EventArgs or there are other ways as well?
THanks.
NH
|
|
|
|
|
This article[^] explains how to do it.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
|
The sender property IS the control that generated the postback.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
how to schedule asp page so that it execute after every 1 hour
as my site want to update data from another site after every 1 hour automatically
|
|
|
|
|
you can use AJAX timer control.
or can create Different Windows services that can invoke some methods of your web application
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
An asp page doesn't run unless someone is requesting it, so an asp application is not really suitable for scheduling.
Do you really have to run the code every hour, even if noone is watching the page? Can't you just check how long it was since the information was last updated, and fetch new information if it's older than one hour?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
yes u r right ues i want to run the code every hour if none is watching
i have web space but rhey r not alowing to run the window service on their server
is there any another method without windows service
|
|
|
|
|
You can write a regular application and run it from the scheduler.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi,
I want to program a custom web control by C#, such that user can access
(save and open) the local PC files and connect to the internet via http,
is it possible ? Are there any limitation for a web control similar to java applet ?
Thanks
Dolphin
|
|
|
|
|
You can't do this with ASP.NET, but you could do it in C#. Yes, there will be limitations, not sure what tho, I'm sure they are similar.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have been using the asp.net treeview control but I am having trouble.
I have set level styles for each level of the treeview which has images for expanded and collapsed nodes.
The lowest level node displays no images which I would expect but it also displays the nodes with larger spacing between them.
Could someone provide a solution as to how I can control this spacing.
Below is the theme
asp:TreeView runat="server" SkinId="FolderList" VerticalPadding="0px" ChildNodesPadding="0px" NodeSpacing="0px" >
<ParentNodeStyle VerticalPadding="0px" ForeColor="White" />
<LeafNodeStyle VerticalPadding="0px" ChildNodesPadding="0px" NodeSpacing="0px"/>
<RootNodeStyle Font-Names="Arial" ForeColor="White" VerticalPadding="0px" />
<LevelStyles>
<asp:TreeNodeStyle
Font-Bold="true"
Font-Size="9pt"
ForeColor="Black"/>
<asp:TreeNodeStyle
Font-Size="8pt"
ForeColor="#282828"/>
<asp:TreeNodeStyle
VerticalPadding="0px"
NodeSpacing="0px"
ChildNodesPadding="0px"
Font-Size="8pt"
ForeColor="Red"/>
<asp:TreeNodeStyle
VerticalPadding="0px"
NodeSpacing="0px"
ChildNodesPadding="0px"
Font-Size="8pt"
ForeColor="Orange"/>
<asp:TreeNodeStyle
VerticalPadding="0px"
NodeSpacing="0px"
ChildNodesPadding="0px"
Font-Size="8pt"
ForeColor="#6E6E6E"/>
</LevelStyles>
</asp:TreeView>
|
|
|
|