|
Hi,
I am a new comer to web development,and i would like to know how IIS is configured in
Windows server 2003 for ASP.NET2.0 and how i could run the application after precompiling my project.
Plz help
|
|
|
|
|
|
If you are already familiar with the IIS console (Start button, Administrative tools, Internet Information Services Manager (also exists as a snap-in to a stand alone MMC)), the ASP .Net 2.0 part is easy. Right click on your web site in the IIS management console and select properties. There will be an ASP.Net tab in the properties window. Click on the tab and the ASP.Net version selection is the first drop down list.
As far as running the project, I don't quite understand your question. Just visit the web page you built as part of the project to run it. If you are doing it from the local server, simple use http://localhost/etc..
|
|
|
|
|
|
Hi
I have a nasty problem with my visual studio. I cannot enter Debug mode when click Start Debugging button its opening the web page of my solution but the solution is not in the Debug mode, I still see Start Debugging button instead of Stop and it never hits the breakpoints as it's not in debug mode.
I do the iisreset several times and remove the temporary asp.net files and iisreset and clean the solution and close and do the same thing, no change it's always the same case.
Can any one please tell me if any of you have the same problem.
Thanks in advance,
Aruna
--
http://ashakthi.blogspot.com
http://kids-articles.blogspot.com
|
|
|
|
|
gottimukkala wrote: I do the iisreset several times and remove the temporary asp.net files and iisreset and clean the solution and close and do the same thing, no change it's always the same case.
So, your site is hosted in IIS and you want to debug it from Visual Studio ?
If yes,
Did you Attach the worker Process ? Which IIS Version are you using ?
|
|
|
|
|
I am using IIS 5.1 but My site doesn'z host on IIS Server. I just did iisreset if the visual studio catches something. It was working fine since 5 days I am having this problem.
--
http://ashakthi.blogspot.com
http://kids-articles.blogspot.com
|
|
|
|
|
Hi,
If you are not using IIS then there is no sense that IISRESET will work for you.
Are you a debugger user? Is debugging enabled for the current user?
Have you set compilation debug = true for the current project?
Either you love IT or leave IT...
|
|
|
|
|
Thanks for your replies. I attched our webserver process to the debug and its working now.
--
http://ashakthi.blogspot.com
http://kids-articles.blogspot.com
|
|
|
|
|
gottimukkala wrote: I attched our webserver process to the debug and its working now.
I didn't get you ?
|
|
|
|
|
I am using following script to add gridview templatefield textbox values dynamically...
function ShowTotal(id)
{
//since the code is used with in UpdatePanel (Ajax) $get is used
//for normal application $get will be replaced with document.getElementById(idOfControl)
//txtQuantity is the textbox place inside the grid
//lblTotalQuantity is the lable in the footer that will display total
//$get(id + '_ctl0' + i + '_txtQuantity this line will actually access the control
//containers like GridView/Datalist they put prefixes with control's ID
var grid = $get(id);
if (grid.rows.length > 0)
{
var qty = 0;
for (i=2; i<grid.rows.length;i++)
{
// i=i+1;parseInt
if ($get(id + '_ctl0' + i + '_marksobt').value != "")
qty = qty +parseFloat($get(id + '_ctl0' + i + '_marksobt').value);
}
var tid = grid.rows.length;
$get(id + '_ctl0' + tid + '_TextBox2').innerText = qty;
}
}
And I add following code for gridview rowdatabound
protected void Gridview1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
TextBox marksobt = (TextBox)e.Row.FindControl("marksobt");
marksobt.Attributes.Add("onchange", "javascript:ShowTotal('" + this.grdResultCreate.ClientID + "');");
string str = marksobt.ClientID.ToString();
}
}
All these things works properly with IE,Google Crome but it is not working with mozilla.
Can anybody help me to fix this problem.
|
|
|
|
|
Which version of Firefox ? any errors that you have received ?
|
|
|
|
|
Thanks For Your Reply..
I am using Mozilla Firefox2.0 in my local system.
I am not receiving any error.Calculations are not taking place
in gridview footer.While this script runs fine with other browsers.
Any Help can u provide.
Thank you.
|
|
|
|
|
Please Anybody Tel me the varous script injection
problems and it solutions
Shaikh Tauhid Hasan
|
|
|
|
|
|
Are you talking abt Java script injection ? However Google is there as he said.
|
|
|
|
|
Hi,
i am starter in aps.net , and i've created a webproject in asp.net2.0 and SqlServer2000 in Windows 2003 server.My doubt is ,
The images are in the folder named "img" and when i added the image to the Webpage
the is like this "../img/he.jpeg" .When i upload this site will the images with this path be displayed or not?
Plz help.
|
|
|
|
|
No the images will not displayed. If you have the same directory structure in the web server you can use Server.MapPath("/img") + "filename".
|
|
|
|
|
Try to use the full path of the image name like:
http://servername/vdname/images/imagename.jpg
Either you love IT or leave IT...
|
|
|
|
|
Good day
On RowDataBound event i have hidden the Field called ID that will appear after the Check Box like this
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
e.Row.Cells[1].Visible = false;
}
Now its time to Delete the Selected Records from a Gridview and i have the Following code on the Delete Button
foreach (GridViewRow row in GridView1.Rows)
{
CheckBox chkbx = (CheckBox)row.FindControl("myCheckBox");
if (chkbx != null && chkbx.Checked)
{
List.Add(GridView1.Columns[1]);
Userarr.Add(GridView1.Columns[2]);
for(int i = 0 ; i < List.Count ; i++)
{
int Staff_ID = obj.Get_User_Id(Convert.ToString(Userarr[i]),Convert.ToString(Session["ActiveDatabase"]));
obj.Responsibility_Caretaker_Remove(Convert.ToInt32(List[i]), Staff_ID,Convert.ToString(Session["ActiveDatabase"]));
}
}
}
I know you will complain about Arraylist, lets look at the Solution, i will change later.
Now what am doing here is: I add the Value of the second Field and the third to Different Arraylist and using for loop and calling a method that will call a Sp that will Delete the record based on those two Fields. Now my Problem is that the Field
List.Add(GridView1.Columns[1]);
has been set to false in the Visible Property as you have seen above. And am getting index out of bounds errors. How can i get the value on that hidden Field.
Thanks
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
You can access the text property for the cell even if it is invisible. I'm not sure why you are grabbing the column object from the grid and expecting to get a value from that. I'm also not sure why you are adding to the List in a foreach and then looping through the entire list every foreach iteration?
I think you might want to try something this instead:
foreach (GridViewRow row in GridView1.Rows)
{
CheckBox chkbx = (CheckBox)row.FindControl("myCheckBox");
if (chkbx != null && chkbx.Checked)
{
int Staff_ID = obj.Get_User_Id(Convert.ToString(row.Cells[2].Text),Convert.ToString(Session["ActiveDatabase"]));
obj.Responsibility_Caretaker_Remove(Convert.ToInt32(row.Cells[1].Text), Staff_ID,Convert.ToString(Session["ActiveDatabase"]));
}
}
Hope this helps.
|
|
|
|
|
Thank you very much it Helped.
Resolved
Thanks
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Oh can see you've already got the solution. Regards
|
|
|
|
|
Hi,
1. At what point are you getting the IndexOutOfRangeException? Have you stepped through your code?
2. Instead of hiding the ID column you can decide not to bind the ID column to the gridview in the first place, by not specifying it in the gridview boundfield collections.
You can set the ID column of the datasource as a Primary Key to the GridView Rows which you can use for your delete.
hope this helps,
Ibrahim
|
|
|
|
|
Hello,
I have placed a html table control on my web page. I wish to fill the rows and columns with dataset's rows and column. Please tell me the easy the faster way to fill the html table with dataset.
Dataset is carrying 20 rows and 8 columns.
Thanks & Regards
Girish Sharma
|
|
|
|