|
I am giving http://192.168.0.12/Web1/default.aspx in the address bar of browser it is returning the error "You are not authorized to view this page"
HTTP 401.3 - Access denied by ACL on resource
Internet Information Services
I do'nt know what is application pool.
Regards
Girish
|
|
|
|
|
|
Abhijit,
I simply tried by machinename instead of IP and now it is working from machinename instead of IP; but at the starting of page it is asking for Username and Password of the web server machine. No problem, we can work with machinename but it is asking username and password, so how to stop to ask this username and password.
Regards
Girish Sharma
|
|
|
|
|
Girish481 wrote: o how to stop to ask this username and password.
I believe you have been selected "Integrated Windows Authentication" in Virtual Directories Properties on IIS. , Unchecked it , and only select the Anonymous Access
cheers,
Abhijit
|
|
|
|
|
Yes, i tried that; but problem is that if i uncheck Integrated Windows Auth check box; then i am not able to debug the application. Means if it is Windows Auth; then it is not asking username and password; but it is not allowing me to debug the application. For debug the application, it is saying that you must have windows auth.
|
|
|
|
|
Why are you trying to debug the application from IIS ?
cheers,
Abhijit
|
|
|
|
|
No, i am not debugging from IIS. If i set windows auth, then i get error message in ASP.NET when i run the application through F5.
|
|
|
|
|
For debugging the application,windows authentication must be enabled and the windows user must have suffiecient rights to debug the application.
Cheers!!
Brij
|
|
|
|
|
|
Didn't you try google.here complete step can't be provided.Check the link below
[^]
Cheers!!
Brij
|
|
|
|
|
pragya_chaubisa wrote: I need a complete steps to create windows service,
Google is not working there ?
pragya_chaubisa wrote: as well as
source code of login account activation.
So you want code form us for your home assignment.
pragya_chaubisa wrote: expecting early response.
Yes !! I have give as early as possible.
BTW: How does it related to asp.net ?
cheers,
Abhijit
|
|
|
|
|
|
hi
I have a web page and i put a crystal report viewer on it and on this page i fill a dataset as per my requirement.
now i want to create a crystal report according to that dataset means in crystal report template i have no any maped field and i want to bind the dataset field to crystal report at runtime so the crystal report columms will be generated on the bases of dataset columms at runtime so pls how can i do it.
i want the columms into crystal report which are generated at runtime not at design time and the version of crystal report is 10.2.3600.0. so pls give me the answer for this as fast as possible.
Hiren Dave
|
|
|
|
|
|
I alreadely read that one but my requirement is quite different so pls give me the solutions regarding my question.
Hiren Dave
|
|
|
|
|
Hi Friends,
I have one class with four properties like
public class Class1
{
private int m_CountryID = 0;
private string m_CountryName = string.Empty;
private int m_OperatorId = 0;
private string m_OperatorName = string.Empty;
public int CountryId
{
get { return m_CountryId; }
set { m_CountryId = value; }
}
public string CountryName
{
get { return m_CountryName ; }
set { m_CountryName = value; }
}
public int OperatorId
{
get { return m_OperatorId; }
set { m_OperatorId = value; }
}
public string OperatorName
{
get { return m_OperatorName; }
set { m_OperatorName = value; }
}
}// End of Class1
Now in another class i have collection object for the above class
public Class Class2
{
Class1 objClass1 = null;
List<Class1> lstCountries = new List<Class1>();
objClass1 = new Class1();
objClass1.CountryId = 1;
objClass1.CountryName = "INDIA";
objClass1.OperatorId = 1;
objClass1.OperatorId = "AirTel";
lstCountries.Add(objClass1);
objClass1 = new Class1();
objClass1.CountryId = 1;
objClass1.CountryName = "INDIA";
objClass1.OperatorId = 2;
objClass1.OperatorId = "VodaFone";
lstCountries.Add(objClass1);
objClass1 = new Class1();
objClass1.CountryId = 2;
objClass1.CountryName = "US";
objClass1.OperatorId = 3;
objClass1.OperatorId = "US-VodaFone";
lstCountries.Add(objClass1);
objClass1 = new Class1();
objClass1.CountryId = 2;
objClass1.CountryName = "US";
objClass1.OperatorId = 4;
objClass1.OperatorId = "US-Airtel";
lstCountries.Add(objClass1);
/* now I know the operatorid. I want to get the country id of that perticular Operatorid with in the List, Eg: if i send oprtaorid 3 i wantto get countryid as 2
lstCountries.Find("How can we use this")
For this one How can we use List.Find Method or any other alternative..?
*/
}
Haribabu
|
|
|
|
|
I don't think as per your requirement list will work.One thing you can do,You can some key value pair collection.In key you put operatior id and get the object from the value.
Else you can make a static function that takes the list of objects in parameter ,property name and value to search.Then search and return the result.
Cheers!!
Brij
|
|
|
|
|
i am using ajax toolkit and when i drag it on page it gives me error
error rendering tab panel script manager is required even script manager is already on page....
please guide how to solve it..???
umerumerumer
|
|
|
|
|
Which template did you select ? AJAX enabled sites or Normal web sites ? Do you have multiple script manager on that page ?
cheers,
Abhijit
|
|
|
|
|
no i have single update panel on page and normal mode not ajax enabled website...
umerumerumer
|
|
|
|
|
Use Ajaxenabled website for using Ajaxtoolkit
Cheers!!
Brij
|
|
|
|
|
hi,dear
iam working on uploading image from contentPage of asp.net ..its working fine when iam using a normal webpage...when iam giving in tag of normal webpage the code:
<form id="form1" enctype="multipart/form-data" runat="server">
</form>
its works fine i can upload my image ,but using ContentPage when iam not using this form tag here,but only at MasterPage..iam not getting image content in my Upload control..
>>>>iam using Controls in my ContentPage are:
1.input(file) HTML Control named filUpload
2.webButtonControl named btnUpload.
plz help me out...thanx in advance
Here is my MasterPage code part
<body>
<form id="form1" enctype="multipart/form-data" runat="server">
<asp:scriptmanager runat="server" id="scrpt1" xmlns:asp="#unknown" />
<div>
</div></form></body>
ContentPage...Default3.aspx.cs
protected override void Render(HtmlTextWriter writer)
{
base.Render(writer);
this.Page.ClientScript.RegisterForEventValidation(btnUpload.ID);
}
protected void btnUpload_Click(object sender, System.EventArgs e)
{
string sSavePath;
string sThumbExtension;
int intThumbWidth;
int intThumbHeight;
sSavePath = "images/";
sThumbExtension = "_thumb";
intThumbWidth = 160;
intThumbHeight = 120;
if (filUpload.PostedFile != null) ...
{
HttpPostedFile myFile = filUpload.PostedFile;
int nFileLen = myFile.ContentLength;
if (nFileLen == 0)
{
lblOutput.Text = "No file was uploaded.";
return;
}
if (System.IO.Path.GetExtension(myFile.FileName).ToLower() != ".jpg")
{
lblOutput.Text = "The file must have an extension of JPG";
return;
}
byte[] myData = new Byte[nFileLen];
myFile.InputStream.Read(myData,0,nFileLen);
string sFilename = System.IO.Path.GetFileName(myFile.FileName);
int file_append = 0;
while (System.IO.File.Exists(Server.MapPath(sSavePath + sFilename)))
{
file_append++;
sFilename = System.IO.Path.GetFileNameWithoutExtension(myFile.FileName)
+ file_append.ToString() + ".jpg";
}
System.IO.FileStream newFile
= new System.IO.FileStream(Server.MapPath(sSavePath + sFilename),
System.IO.FileMode.Create);
newFile.Write(myData,0, myData.Length);
newFile.Close();
System.Drawing.Image.GetThumbnailImageAbort myCallBack =
new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback);
Bitmap myBitmap;
try
{
myBitmap = new Bitmap(Server.MapPath(sSavePath + sFilename));
file_append = 0;
string sThumbFile = System.IO.Path.GetFileNameWithoutExtension(myFile.FileName)
+ sThumbExtension + ".jpg";
while (System.IO.File.Exists(Server.MapPath(sSavePath + sThumbFile)))
{
file_append++;
sThumbFile = System.IO.Path.GetFileNameWithoutExtension(myFile.FileName) +
file_append.ToString() + sThumbExtension + ".jpg";
}
System.Drawing.Image myThumbnail
= myBitmap.GetThumbnailImage(intThumbWidth,
intThumbHeight, myCallBack, IntPtr.Zero);
myThumbnail.Save (Server.MapPath(sSavePath + sThumbFile));
imgPicture.ImageUrl = sSavePath + sThumbFile;
lblOutput.Text = "File uploaded successfully!";
myThumbnail.Dispose();
myBitmap.Dispose();
}
catch (ArgumentException errArgument)
{
lblOutput.Text = "The file wasn't a valid jpg file.";
System.IO.File.Delete(Server.MapPath(sSavePath + sFilename));
}
}
}
public bool ThumbnailCallback()
{
return false;
}
}
|
|
|
|
|
premprakashbhati wrote: but using ContentPage when iam not using this form tag here,but only at MasterPage..i
Content Page should not have any Form Tag. All the controls should be in asp:content tages.
premprakashbhati wrote: am not getting image content in my Upload control..
>>>>iam using Controls in my ContentPage are:
1.input(file) HTML Control named filUpload
2.webButtonControl named btnUpload.
I believe you are using this in Content Page . You are having a FileUpload control and Having a Asp Button. and you have given the code of button click. Then what is your problem ?
premprakashbhati wrote: iam not getting image content in my Upload control..
What does it mean ?
cheers,
Abhijit
|
|
|
|
|
hi ,abhijeet...
my problem is when iam uploading the image file by clicking browse button of filUpload --input(file)HTMLControl,and clicked on Upload webControl button..iam not getting the image file in filUpload control..(Here iam Working with Master and ContentPage)
>>i have tested this by taking one asp.net page and provided in tag that
<form id="form1" enctype="multipart/form-data" runat=server>
and in aspx.cs page the provided .cs code..its working fine means iam getting the image file in filUpload Control and i can upload it to the image control on my .aspx in thumbnail form and storing the same image file in images application folder .
modified on Friday, December 26, 2008 5:31 AM
|
|
|
|
|
plz see to it ..
no answer from anyone............
|
|
|
|