|
for this error 'unable to start debugging on web server,access is denied'
see whether ur name is the part of the debuggers users in the iis. and one more thing the debug = true option should be set in the web.config file. the tag is not recognized by the envt.
for this error
'<Forms loginurl="login1.aspx">
u set this code n check out
<authentication mode="Forms">
<Forms loginurl="login1.aspx"></Forms>
</authentication>
|
|
|
|
|
can any one able to help me plz, it shows error in web.configfile,
when i run project , it says unable to start debugging on web server,access is denied.
then i run start without debuging. it shows an error in web.config
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized tag 'Forms' in the config file
Source Error:
Line 37: -->
Line 38: <authentication mode="Forms">
Line 39: <forms loginurl="login1.aspx">
Line 40: <credentials passwordformat="Clear">
Line 41: <user name="aslam" password="basha">
Source File: c:\inetpub\wwwroot\internetdbmailsystem\web.config Line: 39
aslam
|
|
|
|
|
for this error 'unable to start debugging on web server,access is denied'
see whether ur name is the part of the debuggers users in the iis. and one more thing the debug = true option should be set in the web.config file. the tag is not recognized by the envt.
for this error
'<Forms loginurl="login1.aspx">
u set this code n check out
<authentication mode="Forms">
<Forms loginurl="login1.aspx"></Forms>
</authentication>
|
|
|
|
|
how can i make a rollover menu that shows submenus when rolled over - like the green top right menu here on codeproject.com - when rolling over the "Message Board" menu for example it opens the submenus (windows vista,visual C++,Alt/WTL/STL,COM,C++ etc.).is it possile with Dreamweaver? or generally what code should i write.
tx.
|
|
|
|
|
This is the ASP.NET forum. It's probably possible in DreamWeaver, I don't know. The web dev forum is the place to ask.
It's certainly possible using javascript.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
hi there
can i save reference type in Application Object In Asp.Net???
i Know application in asp.net work on single thread so the problem is
when a few users (concurrent) request together a web page
then the application will serve 1 by 1 and Manage queue for all user?
So My Question is when i will use Refernce type in Application Object???
thanks in advance
|
|
|
|
|
ronivars wrote: can i save reference type in Application Object In Asp.Net?
Yes.
ronivars wrote: i Know application in asp.net work on single thread
No, it doesn't.
ronivars wrote: when a few users (concurrent) request together a web page
then the application will serve 1 by 1 and Manage queue for all user?
No, they will run side by side in separate threads.
ronivars wrote: when i will use Refernce type in Application Object?
Whenever you store an object in the Application object. If you for example store a string in the Application object, you actually store the reference to the string.
---
Year happy = new Year(2007);
|
|
|
|
|
hi guffa thanks for quick answer
i find some explanasion for HttpApplication class in msdn:
Instances of the HttpApplication class are created in the ASP.NET infrastructure, not by the user directly. One instance of the HttpApplication class is used to process many requests in its lifetime; however, it can process only one request at a time. Thus, member variables can be used to store per-request data.
so i need to improve Existing web application and a lot of object created
in my company store in application object that influencing performance
when concurrent users try to request pages
let's say for example data access(DAL) object is store in httpApplication
it's serve only one request at a time if i have 10 users concurrent thay will
angry
and one more thing in msdn
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
thanks again i be happy for suggestion
roni vars
|
|
|
|
|
ronivars wrote: so i need to improve Existing web application and a lot of object created
in my company store in application object that influencing performance
when concurrent users try to request pages
let's say for example data access(DAL) object is store in httpApplication
it's serve only one request at a time if i have 10 users concurrent thay will
angry
I only have a vague idea what you are trying to say here... You have to divide what you write into sentences, or it's practically impossible to decipher.
If each HttpApplication object only serves one request at a time, that means that each worker thread in the application has it's own HttpApplication object. That in turn means that if you store anything in the HttpApplication object, it will only be available from that worker thread.
If you cache DAL objects in the HttpApplication object, they will be local to the worker thread, which is very bad for cached objects. If you have for example ten worker threads, you will have ten copies of the cache in memory. That is bad, but nothing compared to the mess you can get if you update the data in the database and update the cache in the current thread accordingly. Then you have inconsistent data across threads, which will lead to users seeing old data and writing over each others changes.
If you want to share data in the application, you should store it in the HttpApplicationState object instead of in the HttpApplication object. You can use the Lock and Unlock methods of the HttpApplicationState object to make sure that only one thread at a time has access to it when you update values.
---
Year happy = new Year(2007);
|
|
|
|
|
hi Guffa thank for help
Now i Understand how apllication Work in depth
thanks Again
if Somebody wan't to understand how Application Work:
http://msdn.microsoft.com/msdnmag/issues/03/06/Threading/#S9
roni vars
|
|
|
|
|
hi again guffa,
the DAL problem is just for example,
is it true to say every request have one worker thread?
thanks
roni vars
|
|
|
|
|
ronivars wrote: is it true to say every request have one worker thread?
Yes. The worker thread is only unique to the request while the request is handled, though. After the request is handled, the worker thread will be returned to the pool and reused for other requests in the future.
---
Year happy = new Year(2007);
|
|
|
|
|
C# is the code behind lang.
What I want to do is display an image and then have some text describing the image float/display around the image. I used a System.Web.UI.WebControls.Image control on the page. The text and URL for the image will be pulled from a database when the page loads. I have that part all figured out. The question is how do I float the text around (not on top) the image like I can do in MS Word.
I did try to search the articles because I know I am not the first person with this question, so if I missed it, please refer me to it.
Thanks for all your help.
Patrick
|
|
|
|
|
This is a web development question rather than an ASP.NET question, as the solution is in HTML and CSS.
Make the image a floating element, and the text will float around it. Example:
<p><img src="..." style="float:left">The image will be placed at the left side, and this text will float to the right of the image.</p>
---
Year happy = new Year(2007);
|
|
|
|
|
Thanks. The asp part is "How do I get the text from the c# code (which I retrieved from the database) to the html page?" That is what is really confusing me? I tried calling a <%# GetText() %> but that did not work.
Thanks so much for your help.
patrick
|
|
|
|
|
Put a Literal control in the page and put the text in it's Text property:
<asp:Literal id="objText" runat="server" /><br />
<br />
objText.Text = "string from the database";
---
Year happy = new Year(2007);
|
|
|
|
|
Guffa,
Thank you very much!!!
Patrick
|
|
|
|
|
How can i filter tags like " ,,," from the html text.Are there any filters that filters these kind of tags when html text document is passed to that filter.
|
|
|
|
|
Use the "Ignore HTML" option when you are posting markup code.
---
Year happy = new Year(2007);
|
|
|
|
|
Sir
Where should I write my SIUD commands in my Code-behind Page or there should be a Class file named with our aspx file and in this file I should write the SIUD codes? What is the universal method for a proffessionals?
S.I.U.D means= Select, Insert, Update, Delete
Durgesh Kumar Mishra
|
|
|
|
|
SIUD
In general creating connections , issuing select, insert, update, and delete commands, and so on should be located in the Data Access Layer [^](DAL) class. your presentation layer (aspx) should not contain any references to such data access code, but should instead make calls into the DAL for any and all data requests
|
|
|
|
|
You're describing a 'no tier' methodology. Your data access should be in a seperate layer, which means not using the new MS stuff that forces you to write SQL in the aspx or the code behind.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hi,
I have made a treeview, wich expand, when I remove the code:
root.NavigateUrl = "Default.aspx?id=" + ParentNode[loop, 0];
BUT I have to know, what Id (which node in the treeview the user select), to give the right input from the database.
I have stroggeld with this issue in many days now, but I still don't know what I shall do, so that when I redirect to Default, that it expand the treeview on that node, the user selected. Please can anybody help me?
My Code:
<br />
using System;<br />
using System.Data;<br />
using System.Configuration;<br />
using System.Web;<br />
using System.Web.Security;<br />
using System.Web.UI;<br />
using System.Web.UI.WebControls;<br />
using System.Web.UI.WebControls.WebParts;<br />
using System.Web.UI.HtmlControls;<br />
using System.Data.OleDb;<br />
<br />
public partial class _Default : System.Web.UI.Page <br />
{<br />
private OleDbConnection connection = null;<br />
public OleDbCommand command = null;<br />
public string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\Inetpub\\wwwroot\\Test\\Menu3\\menu.mdb;";<br />
<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
if (!IsPostBack)<br />
{<br />
fill_Tree();<br />
}<br />
}<br />
<br />
void fill_Tree()<br />
{<br />
<br />
connection = new OleDbConnection(connectionString); <br />
connection.Open();<br />
<br />
<br />
command = new OleDbCommand();<br />
command.Connection = connection;<br />
<br />
DataTable myDataTable = new DataTable();<br />
myDataTable.Columns.Add(new DataColumn("CategoryID", Type.GetType("System.String")));<br />
myDataTable.Columns.Add(new DataColumn("ParentCategoryID", Type.GetType("System.String")));<br />
myDataTable.Columns.Add(new DataColumn("CategoryName", Type.GetType("System.String")));<br />
command.CommandText = "SELECT * FROM CATEGORIES WHERE ParentCategoryID = 0";<br />
<br />
command.Parameters.Clear();<br />
<br />
<br />
OleDbDataReader myReader = command.ExecuteReader();<br />
<br />
<br />
command.Dispose();<br />
<br />
<br />
<br />
string[,] ParentNode = new string[100, 2];<br />
<br />
<br />
<br />
int count = 0;<br />
<br />
<br />
while (myReader.Read())<br />
{<br />
ParentNode[count, 0] = myReader.GetValue(myReader.GetOrdinal("CategoryID")).ToString();<br />
ParentNode[count++, 1] = myReader.GetValue(myReader.GetOrdinal("CategoryName")).ToString();<br />
}<br />
<br />
<br />
<br />
<br />
for (int loop = 0; loop < count; loop++)<br />
{<br />
<br />
TreeNode root = new TreeNode();<br />
root.Text = ParentNode[loop, 1];<br />
root.PopulateOnDemand = false;<br />
root.SelectAction = TreeNodeSelectAction.SelectExpand;<br />
<br />
<br />
<br />
root.NavigateUrl = "Default.aspx?id=" + ParentNode[loop, 0];<br />
<br />
myReader.Close();<br />
<br />
<br />
OleDbCommand Module_SqlCmd = new OleDbCommand("Select * from CATEGORIES where ParentCategoryID =" + ParentNode[loop, 0], connection);<br />
<br />
OleDbDataReader Module_Sdr = Module_SqlCmd.ExecuteReader();<br />
<br />
while (Module_Sdr.Read())<br />
{<br />
<br />
TreeNode child = new TreeNode();<br />
<br />
child.Text = Module_Sdr.GetValue(Module_Sdr.GetOrdinal("CategoryName")).ToString();<br />
<br />
child.Target = "_blank";<br />
<br />
child.NavigateUrl = "your_page_Url.aspx";<br />
<br />
root.ChildNodes.Add(child);<br />
}<br />
<br />
Module_Sdr.Close();<br />
<br />
TreeView1.Nodes.Add(root);<br />
<br />
}<br />
<br />
<br />
TreeView1.CollapseAll();<br />
connection.Close();<br />
<br />
}<br />
<br />
protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)<br />
{<br />
TreeView1.CollapseAll();<br />
ExpandNodes(TreeView1.SelectedNode.ValuePath);<br />
}<br />
<br />
private void ExpandNodes(string valuepath)<br />
{<br />
string[] tmp = valuepath.Split('/');<br />
string tmpValuePath = string.Empty;<br />
foreach (string s in tmp)<br />
{<br />
tmpValuePath += s;<br />
TreeView1.FindNode(tmpValuePath).Expand();<br />
tmpValuePath += "/";<br />
<br />
}<br />
}<br />
}<br />
Kind regards,
simsen
|
|
|
|
|
Try this..............
When u click on node. Get the selected noe and save in session variable.
when page is postback then check in session is not null then expand the selected node which store in session variable. otherwise do nothing.
if u'r problem is different plz clerify here.
Parwej Back...............DON of Developer.......
Parwej Ahamad
g_parwez@rediffmail.com
|
|
|
|
|
Hi Parwej,
Please can you give me som example code. I am a newbee, so I am a little lost in what you write to me
Kind regards,
simsen
|
|
|
|