|
hi,
im developing a website in ASP.NET can anyone tell me how to import the swish file into ASP.NET code?
Insia
|
|
|
|
|
I have a web application that access SQL Server for all of it's data. It authenticates to SQL with a trusted connection using a special domain account that the web server is running under. The application uses impersonation to know who is doing stuff in the application. Everything stated above works fine.
I have since added a Web Service to the same application as a "backdoor" to get data from the database. When I invoke a method on the service, I get a general access denied like exception. The exception is often pointing to some random DLL in the ASP.NET temporary files. Through research on the internet, I have narrowed this problem to being some sort of "web service cannot access SQL" problem. I am just confused as to why the web forms part works fine but the service does not. It is worth noting that I am passing the credentials to the web service and that the web server resides on a different server than SQL
Thanks.
|
|
|
|
|
I have noticed that content file is used when we talk about asp .net code, and code-behind file when we talk about c# code.
but I don't understand what these two statments are actualy mean !
|
|
|
|
|
Code-Behind is a seperate file containing your VB/C# Code. This is held seperate from the ASP code.
ASP use to be code and html content all in one but .Net has chaned this...
I am very new to these concepts but found code behind is a great logical split from the ASP and the VB/C# code.
Hope this helps....
When people make you see red, be thankful your not colour blind.
|
|
|
|
|
I am pretty new to asp.net and I am teaching myself through books and other materials. I am having a problem that I don't know how to handle this. Here is my example. I want my users to be logged in to view certain content of my site. If the user clicks on a link without being logged on I want user to be redirected to my login.aspx and after the user logs in be directed to the link that they clicked on? Any have any sample code of how this works?
|
|
|
|
|
Hi,
cisco2103 wrote: I want my users to be logged in to view certain content of my site.
Step 1 : You can create a Session for each user.
cisco2103 wrote: If the user clicks on a link without being logged on I want user to be redirected to my login.aspx and after the user logs in be directed to the link that they clicked on?
All the links where you want to check whether a user is logged on or not, check the session already created in "Step 1". For this, you can create a common page which accepts a query string of a target link. All of your links will point to this page. This page will check whether an user is logged in or not. If yes it will redirect to the target link from the query string, else to the log in page.
The log in page will also accept a query string, denoting where the user should be redirected. When user logs in successfully, the ok button will redirect the user to the source from where session was expired or user tried to access without logging in.
Hope i am clear enough. As far as syntactical part, you can always get help on msdn library.
<marquee>"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
Anant Y. Kulkarni
|
|
|
|
|
Very old school and completely unnecessary in the age of .NET
only two letters away from being an asset
|
|
|
|
|
OK let me clarify and make sure I understand what you are saying. Instead of using a cookie I would be using a sessionid for each user. A sessionid is pretty much the same as a cookie except it expires when it leaves IE? For step I am following you some. SO on a pageload event for a click link or button I would have something like.
if sessionid.value is nothing
response.redirect("login.aspx")
endif
I am very confused on the second part of step two. Code Examples would be very helpful if you have any.
Thanks Terry
|
|
|
|
|
Don't be confused. This solution isn't worth pursuing when you have all of the plumbing provided by ASP.NET framework.
only two letters away from being an asset
|
|
|
|
|
All that you are asking to do is built in to APS.NET. Using the web.config file you set the security for the folders, granting or denying access to users or groups. When someone attempts to access a file within any of these folders the ASP.NET framework will redirect them to a login page (provided you have specified one) then redirect them on to the original link after they have sucessfully logged in.
only two letters away from being an asset
|
|
|
|
|
ok I have worked with web.config file very little. Can you point me to a link that will help me?
|
|
|
|
|
|
i am new to asp how to implement flash buttons in asp.net???
Thanks in advance..
Thank u,
Freak8802
|
|
|
|
|
Hi! I'm verry new to asp.net, but i've worked before with C# and it's quite easy learning. one of the things i don't know is how to acces the data in App_Data folder. i have an .xml file i want to load into a dataset. the website works on localhost when i have the path set as "c:\\Project Data\\Denumiri.xml", another folder where i have my files. Still, i want to include the .xml files in the project and access them.
<br />
ds_Denumiri1.ReadXml("\App_Data\Denumiri.xml", XmlReadMode.ReadSchema);<br />
Thanks a lot for your answer!
|
|
|
|
|
The ReadXml method is not specific for the web, so it doesn't use a logical path.
Use Server.MapPath("~/App_Data/Denumiri.xml") to get the physical path to the file.
---
b { font-weight: normal; }
|
|
|
|
|
THANKS A LOT!!
it was useful... i compiled it and it works on localhost. still, i get an error when i try to run it remotely, on http://drcnoib.somee.com[^] . i've set the customerror mode="Off" in web.config, but i still get that error.
i think the error comes from page_load event:
<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
<br />
if (!Page.IsPostBack)<br />
{<br />
<br />
ds_Denumiri1.ReadXml(Server.MapPath("~/App_Data/Denumiri.xml"), XmlReadMode.ReadSchema);<br />
ds_Denumiri2.ReadXml(Server.MapPath("~/App_Data/Denumiri.xml"), XmlReadMode.ReadSchema);<br />
<br />
DropDownList1.DataSource = ds_Denumiri1.Tables[0]; <br />
DropDownList2.DataSource = ds_Denumiri2.Tables[0]; <br />
DropDownList1.DataTextField = ds_Denumiri1.Tables[0].Columns["Statie_Nume"].ToString();<br />
DropDownList2.DataTextField = ds_Denumiri2.Tables[0].Columns["Statie_Nume"].ToString();<br />
DropDownList1.DataValueField = ds_Denumiri1.Tables[0].Columns["StatieID"].ToString();<br />
DropDownList2.DataValueField = ds_Denumiri2.Tables[0].Columns["StatieID"].ToString();<br />
DropDownList1.DataBind();<br />
DropDownList2.DataBind();<br />
}<br />
<br />
}<br />
but i don't know how to find out which is the error or when it occurs. . thanks a lot, anyway.
-- modified at 10:24 Monday 28th August, 2006
|
|
|
|
|
got it... the .net version of the site was set to 1.1, not 2.0 .... THANK YOU!!
|
|
|
|
|
hi,
How do I manually fire an ItemCommand Event in a datagrid.I have a page where i an using a user control datagrid.When I click the delete link in the grid I have a javascript jus to confirm the deletion..
After I click ok in the confirmation window...the item command event is not geting fired.
please help
Regards,
Sivaprasad
|
|
|
|
|
Visit www.programmingknowledge.com for an example.
|
|
|
|
|
Many people know this girl[^] and IMO she can give you a hint.
|
|
|
|
|
Thanks Minphc. Thatz a pretty useful link
Regards,
Sivaprasad
|
|
|
|
|
Hello
Upload new modules
i) Each module consist of ascx (asp/net user controls) & programming script and database script – modules can be any programming/database (PHP/mySQL or ASP/mySQL or ASP/Access or PHP/Access or Asp.net/MS SQL etc etc ) – every time a new module is added the super admin can specify the programming and or database
(1) Admin should be able:
(a) to upload ascx controls for backend administration and PHP User Modules with database script file
(b) Publish Modules to all accounts or to select accounts only
Comment:- This Project is basically a CMS System. By using my application user can make his own site.In my specification there are certain PHP module which will be developed by the PHP Developer and I have to integrate these module with my Asp.Net Application.So user can directly use them into his own site.Not getting what to do with point.
Plz Guide me..
thanx
-- modified at 8:58 Monday 28th August, 2006
|
|
|
|
|
how does an asp.net dynamic page work with it's code shared over multiple files
please explain or provide a related article
haseeb
|
|
|
|
|
What do mean by dynamic pages? Do you need part of a web page which can used in multiple pages?
Best Regards,
Apurva Kaushal
|
|
|
|
|
I am building a web survey type tool. There is a "reward download" for completing the questionnaire. The Questionnaire result / answers are submitted to a web service, to be stored in the db. What I would like to do, is once the db work is complete - to "send" the file to the client.
The files are stored in DB BLOBs. I'd like to avoid writing them to disk (especially FTP-ing them somewhere and then redirecting the client to the file - that just seems messy...)
I'd like to cause an http response whereby the user sees the browser's standard file download dialogue?
|
|
|
|