|
have you used Web deployment addin in visual studio ? It lets you make an assembly per every folder containing aspx pages . I wanna compile just one folder .
|
|
|
|
|
Oh ... Yes. actually I never used it.
Must give it a try...
|
|
|
|
|
If I'm not wrong, if you make changes to any file which is under app_code folder, VS compiles the whole project.
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
|
|
FEMDEV wrote: exporting the results from query/stored procedure directly to excel in C# windows application. How can I do this.
Then why are you asking it on ASP.Net Forum ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel id ="upanel" runat ="server">
<ContentTemplate>
<table border ="0" width ="100%">
<tr>
<td>
<h3>Customer Data</h3>
</td>
</tr>
<tr>
<td width ="50px">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AutoGenerateColumns="False" BorderColor="White" BorderStyle="Ridge"
BorderWidth="2px" CellPadding="3" CellSpacing="1" DataKeyNames="customerid"
HorizontalAlign="Left" onpageindexchanging="GridView1_PageIndexChanging"
onrowcancelingedit="GridView1_RowCancelingEdit"
onrowcommand="GridView1_RowCommand" onrowdeleted="GridView1_RowDeleted"
onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing"
onrowupdated="GridView1_RowUpdated" onrowupdating="GridView1_RowUpdating"
onselectedindexchanged="GridView1_SelectedIndexChanged" PageSize="5"
ShowFooter="True" Width="1003px">
<RowStyle BackColor="#DEDFDE" ForeColor="Black" Wrap="True" />
<Columns>
<asp:TemplateField HeaderText="Customer ID">
<FooterTemplate>
<%--<asp:Button ID ="b2" BackColor ="blue" CommandName ="Add" runat ="server" />--%>
<asp:Button ID="btnsave" runat="server" CommandName="Add"
Text="Insert Record" />
<asp:TextBox ID="add_customerid" runat="server"></asp:TextBox>
</FooterTemplate>
<ItemTemplate>
<asp:Label ID="lblcustomerid" runat="server" Text='<%#Eval("customerid") %>'>'</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Company Name">
<ItemTemplate>
<asp:Label ID="lblcompanyname" runat="server" Text='<%#Eval("companyname") %>'>'</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="up_txtcompanyname" runat="server" BackColor="green"></asp:TextBox>
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="add_txtcompanyname" runat="server"></asp:TextBox>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Contact Tiltle">
<ItemTemplate>
<asp:Label ID="lblctitle" runat="server" Text='<%#Eval("contacttitle") %>'>'</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="up_contacttitle" runat="server" BackColor="green"></asp:TextBox>
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="add_contacttitle" runat="server"></asp:TextBox>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="City ">
<ItemTemplate>
<asp:Label ID="lblcity" runat="server" Text='<%#Eval("city") %>'>'</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="up_city" runat="server" BackColor="green"></asp:TextBox>
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="add_city" runat="server"></asp:TextBox>
</FooterTemplate>
</asp:TemplateField>
<asp:CommandField ButtonType="Image" CancelImageUrl="~/Cancel.gif"
DeleteImageUrl="~/Delete.gif" EditImageUrl="~/Edit.gif" ShowEditButton="True"
UpdateImageUrl="~/Update.gif" />
<asp:CommandField ButtonType="Image" DeleteImageUrl="~/Delete.gif"
ShowCancelButton="False" ShowDeleteButton="True" />
<asp:CommandField ButtonType="Image" SelectImageUrl="~/Plus.gif"
ShowSelectButton="True" />
</Columns>
<FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
<PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
<SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
<EditRowStyle Wrap="False" />
</asp:GridView>
</td>
</tr>
<tr>
<td align ="center"> <h3>Order Details</h3>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
Tauseef A Khan
MCP Dotnet framework 2.0.
|
|
|
|
|
It is very hard to decipher the code when there is a block of code commented.
I can see --%>
which is actually opened in
<%--<asp:Button
Please make sure the code is understandable. dont paste the entire code but only the portion which creates problem ..
|
|
|
|
|
i have updated the code , thanks , please help.
also on run time in browser the table row of my text gets taller than on the preview at design time.
Tauseef A Khan
MCP Dotnet framework 2.0.
|
|
|
|
|
Your code is not understandable at all. Please post with proper format.
Why you are not Fixing your column width Warp the Grid Content with the proper size.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
i have updated the code , thanks...
also on run time in browser the table row of my text gets taller than on the preview at design time.
Tauseef A Khan
MCP Dotnet framework 2.0.
|
|
|
|
|
Are you using any CSS on grid View ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
no
Tauseef A Khan
MCP Dotnet framework 2.0.
|
|
|
|
|
Hi,
Please let me know how to call a function written in Code Behind file, in a different folder, from a .aspx control. Here is what I am doing:
<img src = "<%=DAL.CommonUtil.GetConfigValue("ImagePath")%>/header_bg.jpg" alt ="headerImage" />
DAL - FolderName
CommonUtil - Class
GetConfigValue - Function.
Error Message - The name DAL does not exist in current context
DAL folder is under App_Code folder. I tried appending App_Code in my src string, however I am still etting the error
Error Message - The name App_Code does not exist in current context.
I really appreciate the help and would like to thank you in advance.
Thanks & Regards
Puneet
|
|
|
|
|
Each class represents an unique Namespace. Use
<%@ Import
to import the namespace and then use it in server tags.
You dont have to look for folders, its the namespace that matters.
|
|
|
|
|
you can use using also
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
Hi,
I have a gridview with LinkButton(Template Field) inside an updatepanel I want to set PostBack Trigger to this LinkButton Click event(Not for the entire GridView ). Is this possible?
Thanks in Advance
|
|
|
|
|
Yes it is. Place only the LinkButton inside the UpdatePanel.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Thanks. But my scenario is the grid should be in updatepanel. You mean.. I have to place updatepanel inside TemplateField?
|
|
|
|
|
Yes. Inside ItemTemplate tags, you can place the update panel. That can have your LinkButton.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Do like this
protected void GridView_RowDataBound(object sender, GridViewRowEventArgs e)
{
try
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
LinkButton lbtn = (LinkButton)e.Row.FindControl("LnkBtnSelect");
ScriptManager1.RegisterPostBackControl(lbtn);
}
}
catch (Exception ex)
{
throw ex;
}
}
Cheers.
|
|
|
|
|
yes you can add the update panel in template field of gridview where your link button is....
Thanks
Mohit Bhambral
mohitbhambral@gmail.com
|
|
|
|
|
i have a button in my web application and i want when the user click it it opens the go to meeting how can i do that and i need some sample code plz
thanks a lot
LA ELAH ELA ALLAH MOHAMED RASOL ALLAH
|
|
|
|
|
What is 'the go to meeting'....
I guess you want to doubleclick the button in design-view. In the generated code enter
Response.Redirect("meeting.aspx");
Response.End();
|
|
|
|
|
From your client use
window.location.href = 'https://www2.gotomeeting.com/';
on Javascript onclick of the button.
|
|
|
|