|
Abhijit Jana wrote: I don't know what do you mean by that statement that "It doesn't use VD"
I said, "doesn't use virtual directories in the same way". Read the comment a little closer.
Yes SharePoint creates a virtual directory, it hijacks port 80 on the machine, however, if you look no aspx files are present there. SharePoint uses a virtual file system to serve pages from the content database based on templates in the 12 folder.
I don't want to argue either. I would suggest you understand the topic before you begin to talk about it and offer advice on it.
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: Yes SharePoint creates a virtual directory, it hijacks port 80 on the machine, however, if you look no aspx files are present there. SharePoint uses a virtual file system to serve pages from the content database based on templates in the 12 folder.
ohh..Yes. Got it !!! Thanks mark.
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
A number of options depending on what you have and are trying to accomplish.
One way is to use SharePoint Designer to add the page to your site. However, this won't work if you have code-behind for the page. You can use in-line code, but it won't work in all instances because the SharePoint engine will restrict its use if the page is ghosted. If you have code-behind, or other dependencies, then you need to use a solution package to deploy it to your SharePoint site(s)
only two letters away from being an asset
|
|
|
|
|
can any tell me how to export the gridview data to a PDF format without using third party tool.
|
|
|
|
|
sarangkhandare wrote: without using third party tool
Then you have to write your own library .
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
Refer this link[^]
I hope it helps you.
|
|
|
|
|
I have one aspx page with a link button. Onclicking in the link button there is one popup window coming , while closing the popup window I wat to refresh the parent aspx page... Anybody there to help me ......
|
|
|
|
|
window.opener will give access to the parent page. You need handle the JS event when popup is closing.
|
|
|
|
|
Try redirecting that page u want to get refreshed
|
|
|
|
|
Subin Alex wrote: Try redirecting that page u want to get refreshed
No at all. He is asking some thing different !! and its all about window.opener.RefereshPresentPage();
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
On closing the popwindow ragister a javascript function like in popup page
Page.ClientScript.RegisterStartupScript(this.Page, this.GetType(), this.ClientID + "_1", "CloseWindowandRefreshParent();", true);
put this javascript function in popup page
function CloseWindowandRefreshParent()
{
window.opener.RefereshPresentPage();
window.close();
}
And put below javascipt function in the parent page
function RefereshPresentPage()
{
window.location.href = window.location.href;
}
Cheers!!
Brij
|
|
|
|
|
It all about window.opener.RefereshPresentPage();
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
Hi,
Can Any one give me an idea of how to set the Focus to Next Control when Pressing Enter Key which will suit all browsers.
Thanks.
|
|
|
|
|
|
can any one please guide me how can i get rid of this problem my control is placed inside update panel.
umerumerumer
|
|
|
|
|
Remove it from update panel then it will return true.It is due to postback.
|
|
|
|
|
Thanks Solved....
umerumerumer
|
|
|
|
|
Check IsPostBack On Pageload.
|
|
|
|
|
Hi all,
Below is my gridview
<asp:gridview id="bcgrid" runat="server" datakeynames="msg_ID" editrowstyle-font-size="XX-Small" editrowstyle-font-bold="true" font-names="Verdana" font-size="XX-Small" forecolor="DimGray" width="368px" autogeneratecolumns="False" onrowdeleting="bcgrid_RowDeleting" onrowediting="bcgrid_RowEditing" allowpaging="True" onpageindexchanging="PageRecords" pagesize="20" xmlns:asp="#unknown"> <columns> <asp:templatefield headertext="Language"><itemtemplate>
<asp:label id="p" runat="server" text="<%#DataBinder.Eval(Container, " dataitem.msg_language").tostring()="" %&>"=""> <itemtemplate>
<asp:templatefield>
This is the code for deleting a row
protected void bcgrid_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
int id = Convert.ToInt32(bcgrid.DataKeys[e.RowIndex].Values[0].ToString());
Delete(id);
}
I am getting the error
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Can anybody help me in come out of this error
Thanks in Advance
|
|
|
|
|
At which line you are getting error?The error says,that the id doesn't fall in index range vailable.Debug the code and check the id and available index range.
Cheers!!
Brij
|
|
|
|
|
int id = Convert.ToInt32(bcgrid.DataKeys[e.RowIndex].Values[0].ToString());
ths line gives error
|
|
|
|
|
Check the length of the collection bcgrid.DataKeys and bcgrid.DataKeys[e.RowIndex].Values and accordingly check the index
Cheers!!
Brij
|
|
|
|
|
In the code-behind, you are using DataKeyItem's Index, but you are not telling to the program what datakeys are.
For the GridView control, you have to specify DataKeyNames property.
Ashok kumar.
|
|
|
|
|
I was making a simple guestbook where i define labels(Name,mail,location and message ). i made a table for this. when i run the program . error comes that Textbox1- Text4 does not exsists in current context. following is coding that i have done.
----------------------------------------------------------------------
guestbook.aspx:-
]]>
<title>Untitled Page
Guestbook.NET
Post New Entry
Name: | <asp:textbox id="TextBox1" runat="server" xmlns:asp="#unknown"> | E-mail: | <asp:textbox id="TextBox2" runat="server" xmlns:asp="#unknown"> | Location: | <asp:textbox id="TextBox3" runat="server" xmlns:asp="#unknown"> |
Message:
<asp:textbox id="TextBox4" runat="server" xmlns:asp="#unknown">
<asp:button id="Button1" runat="server" onclick="Button1_Click" text="Submit" xmlns:asp="#unknown"> |
------------------------------------------
default.cs :-
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class _Default : System.Web.UI.Page
{
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["cn"].ConnectionString);
SqlCommand cmd = new SqlCommand();
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
conn.Open();
cmd.Connection = conn;
cmd.CommandText = "insert into guest values(@Name ,@email ,@location,@Message)";
cmd.Parameters.Add("@Name", SqlDbType.VarChar).Value = TextBox1.Text;
cmd.Parameters.Add("@Email", SqlDbType.VarChar).Value = TextBox2.Text;
cmd.Parameters.Add("@Location", SqlDbType.VarChar).Value = TextBox3.Text;
cmd.Parameters.Add("@Message", SqlDbType.Text).Value = TextBox4.Text;
conn.Close();
}
}
i waste my 2 hours in this program i dont know where is the problem. plz help
|
|
|
|
|
<asp:textbox id="TextBox4" runat="server" xmlns:asp="#unknown">
from this remove xmlns:asp="#unknown" and try.
|
|
|
|