如何在我的网站中禁用网络身份验证? [英] How to disable the network authentication in my website?

查看:69
本文介绍了如何在我的网站中禁用网络身份验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,

我创建了一个网站,它在gridview中播放音频文件,我将这些音频文件存储在192.168.100.4 \Recording文件夹的服务器驱动器中。如果我运行我的应用程序,则要求使用用户名和密码在gridview中显示音频文件。





[注意:如果我运行包含gridview的网站包含音频文件,它要求进行身份验证,如何删除该身份验证。我将音频文件存储在另一台机器中,因此每次运行代码都要求使用authenticatin]



我附上截图和代码供您参考。请给我解决这个问题的方法。



Web.config:

Hi sir,
I create one website, which plays audio file in gridview , i store that audio files in the server d drive of 192.168.100.4\Recording folder . If i run my application, it is asking for usename and password to display the audio file in gridview.


[Note: If i run the website having gridview containing audio files, it is asking for authentication, how to remove that authentication. I stored the audio files in another machine, so it is asking for authenticatin everytime i run the code]

I attached the screenshot and code for your reference. Kindly give me the solution for this problem.

Web.config:

<configuration>
	<appsettings />
	<connectionstrings>
		<add name="ConnectionString" connectionstring="Data Source=localhost;user id=sa;password=god;Integrated Security=false;Initial Catalog=checking" providername="System.Data.SqlClient" />
	</connectionstrings>
	<system.web>
	
		<compilation debug="true">
		</compilation>
		
		<authentication mode="Forms">
			<forms loginUrl="~/Login.aspx" timeout="8000"></forms>
		</authentication>
		
    	</system.web>
</configuration>



Default.aspx


Default.aspx

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
        <columns>
            <asp:BoundField DataField="CalledDate" HeaderText="CalledDate" />
             <asp:BoundField DataField="Callerid" HeaderText="Callerid" />
              <asp:BoundField DataField="StartDate" HeaderText="StartDate" />
               <asp:BoundField DataField="EndDate" HeaderText="EndDate" />
                <asp:BoundField DataField="Duration" HeaderText="Duration" />
                  <asp:BoundField DataField="filename3" HeaderText="filename3" />

                  <asp:TemplateField HeaderText="PLAY">
                                        <itemtemplate>
                                           <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" height="45" width="75"
                                                id="Object1">
                                                <param name="AutoStart" value="0" />     
                                                <param name="FileName" value="http://192.168.100.4//Recording//<%# Eval("filename3") %>" />
                                              
                                            </object>
                                        </itemtemplate>
                                        <itemstyle wrap="True" />
                                    
        </columns>

推荐答案

检查此链接它会有所帮助 [ ^ ]



将站点中提到的更改添加到IIS网站文件夹
Check this link it will help[^]

Do the changes mentioned in the site to your IIS Website folder


这篇关于如何在我的网站中禁用网络身份验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆