|
thank you,
i worked it out late last nite, when i added smart tags i found a problem that led to me finding the root problem.
all is well now,
thanks again for your help
g00fy
|
|
|
|
|
I desperately need to get this working and we get an error every time. I am not the programmer, rather the project manager, but my programmer can't seem to fix the problem. Please look at this web.config file...where have we gone wrong? Here is the page that gets the error: http://upload.mjksolutions.com/SecureWebReport/Default.aspx
Also if you use Login.aspx
I know the add key="RootPath" value can't be right as the "Main" folder sites at the root of the directory where this is hosted /madallug/upload.mjksolutions.com/Main/
Does this matter.
Please help, I am really in a bind.
Here is the web.config.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="ConnectionString" value="server= mssql5.ixwebhosting.com; database= madallu_insorb; user id= *; password= *; pooling=false" />
<add key="RootPath" value="c:\Main"/>
</appSettings>
<system.web>
<!-- DYNAMIC DEBUG COMPILATION
Set compilation debug="true" to enable ASPX debugging. Otherwise, setting this value to
false will improve runtime performance of this application.
Set compilation debug="true" to insert debugging symbols (.pdb information)
into the compiled page. Because this creates a larger file that executes
more slowly, you should set this value to true only when debugging and to
false at all other times. For more information, refer to the documentation about
debugging ASP.NET files.
-->
<compilation
defaultLanguage="c#"
debug="true"
/>
<!-- CUSTOM ERROR MESSAGES
Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable.
Add <error> tags for each of the errors you want to handle.
"On" Always display custom (friendly) messages.
"Off" Always display detailed ASP.NET error information.
"RemoteOnly" Display custom (friendly) messages only to users not running
on the local Web server. This setting is recommended for security purposes, so
that you do not display application detail information to remote clients.
-->
<customErrors
mode="RemoteOnly"
/>
<!-- AUTHENTICATION
This section sets the authentication policies of the application. Possible modes are "Windows",
"Forms", "Passport" and "None"
"None" No authentication is performed.
"Windows" IIS performs authentication (Basic, Digest, or Integrated Windows) according to
its settings for the application. Anonymous access must be disabled in IIS.
"Forms" You provide a custom form (Web page) for users to enter their credentials, and then
you authenticate them in your application. A user credential token is stored in a cookie.
"Passport" Authentication is performed via a centralized authentication service provided
by Microsoft that offers a single logon and core profile services for member sites.
-->
<!-- <authentication mode="Windows" /> -->
<authentication mode="Windows">
<!-- <authentication mode="Forms">
<forms name="MYWEBAPP.ASPXAUTH"
loginUrl="WebForm2.aspx"
protection="All"
path="/"/>-->
</authentication>
<!-- AUTHORIZATION
This section sets the authorization policies of the application. You can allow or deny access
to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous
(unauthenticated) users.
-->
<authorization>
<allow users="*" /> <!-- Allow all users -->
<!-- <allow users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
<deny users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
-->
</authorization>
<!-- APPLICATION-LEVEL TRACE LOGGING
Application-level tracing enables trace log output for every page within an application.
Set trace enabled="true" to enable application trace logging. If pageOutput="true", the
trace information will be displayed at the bottom of each page. Otherwise, you can view the
application trace log by browsing the "trace.axd" page from your web application
root.
-->
<trace
enabled="false"
requestLimit="10"
pageOutput="false"
traceMode="SortByTime"
localOnly="true"
/>
<!-- SESSION STATE SETTINGS
By default ASP.NET uses cookies to identify which requests belong to a particular session.
If cookies are not available, a session can be tracked by adding a session identifier to the URL.
To disable cookies, set sessionState cookieless="true".
-->
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>
<!-- GLOBALIZATION
This section sets the globalization settings of the application.
-->
<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
/>
</system.web>
<location path="admin">
<system.web>
<authorization>
<!-- Order and case are important below -->
<allow roles="Admin"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="users">
<system.web>
<authorization>
<!-- Order and case are important below -->
<allow roles="User"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
</configuration>
Mark
-- modified at 9:30 Sunday 9th July, 2006
|
|
|
|
|
Start by doing as the information page says; set the mode of the CustomErrors property to "Off". That will make it show the error message instead of the information page.
---
b { font-weight: normal; }
|
|
|
|
|
Please help !
Error while trying to run project: Unable to start debugging on the web server. Access is denied.
Thanx in Advance.
AliAmjad
|
|
|
|
|
|
Hello all
We are storing the Media(wav) files in a
applicationDirecory\MediaFiles.
I have provided one link for download. It is asking for save, If the target machine player is Quicktime player, it is playing in with in the browser.
I need to Open one IE pop up winodow and in that it will open the wav file or asking user to save.
How to do this?
regards
GV Ramana
|
|
|
|
|
I'm new in ASP.net. I plan to develope a project based on ASP.net with C#. But I faced problem where how to store the data in ASP.net 2.0. For example, I had a few table in database -SQL server. Once the user search some information in database, it returned a list of record with content so that user can view them. And I planned to use object oriented way - create few classes such as order, order detail and invoice. Once the database returned the data to asp, it inserts data into those classes (order, order detail or invoice) and those classes can contain more that one record such as order1, order2, order 3 etc. But the problem is where should i store those classes that with data ? Should i store it in session or application? It is because once the user click to other asp.net pages, the classes that with data will lost. right?
Sorry that asking this silly question. Any help with examples is appreciated.
Danny
|
|
|
|
|
The web is stateless in it's basic form. As soon as you want to keep state, it will cost you, usually memory resources.
Objects are normally not persisted from page to page, so the standard way of doing it is not to do it. Usually you just fetch them from the database again.
If you want to persist the object, you can put them in session variables. Be carful about storing large objects in sesson variables, though, as the session objects live for a very long time. Objects in a web application usually lives mere milliseconds, so objects persisted in memory for minutes will be using relatively much memory resources.
---
b { font-weight: normal; }
|
|
|
|
|
Ya. I know there is expensive to keep it on memory. But make always make a connection to database to fetch the data also expensive. Besides, users needs to wait for the procedure connect to database and obtain the data always. If I want to keep the data from database, session is the only way that I can use? Is there any other way to keep those data cross page to page?
|
|
|
|
|
Pentellcc wrote: But make always make a connection to database to fetch the data also expensive.
It's not expensive in the same way. Memory is a resource that has an absolute limit, while database calls are only limited by the execution time. Allocating too much memory causes the server to stop, while too many queries only makes it go slower.
Pentellcc wrote: If I want to keep the data from database, session is the only way that I can use? Is there any other way to keep those data cross page to page?
Application variables, application cache, static variables... all those are shared by all users, though, so you need to separate the stored data using a unique key, and you need to use locking to make it thread safe.
---
b { font-weight: normal; }
|
|
|
|
|
hi all,
i joined newly and am also new to asp.net.
i read the article on aplahabetic paging done with ref using .dll by Mr.Jitendra Bansiwal. it works fine but i have a few other complications so i developed the following code but it doesn't work. it went wrong in itemCreated and itemCommand event.
it would be helpful if any one can check out what's wtong with follwing code:
void GridView1_ItemCreated(Object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{ if (e.Item.ItemType == ListItemType.Footer)
{ e.Item.Cells.Clear();
TableCell tc = new TableCell();
tc.ColumnSpan = 2;
e.Item.Cells.Add(tc);
int i;
string s;
for (i=65;i<=65+25;i++)
{ LinkButton lb= new LinkButton();
LiteralControl lc =new LiteralControl();
lc.Text = " ";
s=Convert.ToString(i);
lb.Text = s;
lb.CommandName = "alpha";
lb.CommandArgument = s;
if (str==s)
{ lc.Text = s + " ";
tc.Controls.Add(lc);
}
else
{
tc.Controls.Add(lb);
tc.Controls.Add(lc);
}}}
protected void ItemCommand(Object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
if (e.CommandName == "alpha")
{ BindGrid(e.CommandArgument.ToString());}
}
Thanks in advance
}
Anu
|
|
|
|
|
Someone knows some good site?
Jesus is Love! Tell to someone!
|
|
|
|
|
Hello Sir/Madam,
I am Ravindra learning ASP.net and very much interested
in AJAX. I am trying to implement AJAX.
But not able to get the output.
I implemented the following steps:
1.Adding the reference AjaxPro.dll.
2.Configuring the web.config
<httphandlers>
<add verb="POST,GET"
="" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro">
3.implemented the code and method
private void Page_Load(object sender, System.EventArgs e)
{
AjaxPro.Utility.RegisterTypeForAjax(typeof(Ajaxajax.WebForm1));
}
[AjaxPro.AjaxMethod()]
public string GetServerTime()
{
return "Hi I am Ajax";
}
4.Placing the code in HTMLDesigner
5.I also added a javascript file(WebForm1.js) as a new item
and I was confusing to edit which code.
please help me.........
thank you,
Ravindra
|
|
|
|
|
the Max Size of "text" is 255,but it's so short to me.
how should I do?
thank you.
KSCsoft
|
|
|
|
|
Use Memo.
---
b { font-weight: normal; }
|
|
|
|
|
Hi Everyone,
i am beginner,here i have to create one control like login form(two textboxes) and drag thay control into my webform1.aspx and one button also
drag.the main problem is how can i call the user control function for the button code ...
plz help me
suresh babu.k
-- modified at 10:42 Saturday 8th July, 2006
|
|
|
|
|
hi all,
in my dataset i have values like this
(first row belongs to column names)
AccountName RemarkCode RemarkCount Comapany Count
Albert D32 1 AETNA 1
Albert N65 2 Medicaid 1
albert N65 1 MegaLife 1
raj 123 2 MegaLife 1
raj 123 2 Anthem 1
what i want is
AccountName RemarkCode RemarkCount Comapany Count
Albert D32 1 AETNA 1
------ N65 1 Medicaid 1
------ 49ps 1 MegaLife 1
raj 123 2 MegaLife 1
----- ------ ----- Anthem 1
(---- represents no value at that place)
an output like this
can any body help me how to do this and i should display the
out in a datagrid
Thanx in advance
your
peter
-- modified at 10:08 Saturday 8th July, 2006
|
|
|
|
|
Hi Peter,
If I am clear about your problem the following solution might be helpful.
Use the "Item_Databound" event of the DataGrid to check for the columns NULL or Empty values and update that column value with the required string say (----) in the corresponding DataTable (DataSet).
The Item_Databound event fires for each and every row in the DataTable when getting binded to the DataGrid.
Good Luck.
Subrahmanyam K
|
|
|
|
|
how can i find the whois is exist or no
get me a sample that don't use another site
MHF
|
|
|
|
|
this is ConnectionString in the web.config file:
add key="ConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\wwwroot\guestbook\DB\guestbook.mdb;"
this is absolute directory in the appSettings element.
I wanna get opposite directory.so,how should I do?
KSCsoft
|
|
|
|
|
From your other thread I see that you mean the relative thread.
Relative to what directory?
---
b { font-weight: normal; }
|
|
|
|
|
look at following:
<appsettings>
<add key="ConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0;<b>Data Source=F:\wwwroot\gestbook\DB\gestbook.mdb</b>;">
this is the absolute directory,I wanna get the opposite directory.
so,I should I do?
thank you!
KSCsoft
|
|
|
|
|
|
yes,I mean the relative directory.
KSCsoft
|
|
|
|
|
just give Server.MapPath(".") to get the current directory
|
|
|
|