|
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.
|
|
|
|
|
when the user click the button i want to open a session into the go to meeting ,in go to meeting web site they said that it's possible to integrate between go to meeting and my own application but they didn't say how to do that
so i hope to fine any sample code demostrate how can i open a session to the go to meeting
thanks
LA ELAH ELA ALLAH MOHAMED RASOL ALLAH
|
|
|
|
|
Go to meeting is actually a paid service. I think you should ask the tech guy from Go To meeting on the exact procedure to open a session. I think there must be a web service exposed to open a new session.
I am sorry, I never did this before. Like to see if anyone can give a valid input to this.
|
|
|
|
|
thanks a lot
LA ELAH ELA ALLAH MOHAMED RASOL ALLAH
|
|
|
|
|
Hello my code causes the above error. I do not understand, I am trying to get htmlcode of the page to send an email. I have no problem, the mail is okay but the page itself can not be opened and gives the above error. The code is as follows:
StringBuilder str = new StringBuilder();
StringWriter strw = new StringWriter(str);
HtmlTextWriter htmlw = new HtmlTextWriter(strw);
this.Render(htmlw);
Please help...
|
|
|
|
|
Ersan Ercek wrote: A page can have only one server-side Form tag.
Its Saying tht They are more than one form tags in your page..!
In which page this error is coming..!
Ersan Ercek wrote: I have no problem, the mail is okay
Then In Email.Is the error is raising?or where?
when you are using master page, and in the content page if you use form tag again ,This error causes..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
NO problem is not with the email
it is okay, but when trying to render the page it gives that error.
|
|
|
|
|
If you have more than one form tag with Runat=server it will cause error. Actually, aspnet uses server side form element to enforce validation, postbacks etc. If you place 2 server side form it will cause errors.
So just remove the form tag which is not required.
Also if you want to request for two pages, just place the response directly to a container element rather than adding the whole form to the page again.
If it is not clear, let me know.
|
|
|
|
|
First of thank you very much for the answer, however it is not clear enough for me...
with container element you mean a table for example? Should I render the table only?
Could you please give an example..
Also it depends on the render command, if I do not run it page is displayed wo problem.
thx alot.
modified on Tuesday, November 17, 2009 7:48 AM
|
|
|
|
|
Yes.. You can render only the part of the object you want. Dont render the whole page.
Say your html is placed inside a div. Use div.RenderControl to get the content rather than trying this.Render.
Is this a problem or recursion? If you render the same page that you are in, it will cause an infinite recursion as well.
|
|
|
|
|
Am I right in thinking this is to do with your earlier question about email and html?
If so, then did you add the <form> tag because it complained that the table must be in a form tag?
I tried the response you got from sashidar myself and found the same thing. Are you using master pages? Because I assumed that it had something to do with that when I tried it.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
"Rumour has it that if you play Microsoft CDs backwards you will hear Satanic messages.Worse still, is that if you play them forwards they will install Windows"
|
|
|
|
|
Sorry for late response I hate not to answer somebody who is tyring to help me. But I had a busy day.
Yes it is related but no I am not using master page. It is about rendering the page. I am trying to pass the content of current page as email. However when I render the page I receive this error.
I think I am close to get rid of this problem with rendercontrol, however when I use it mycode creates a new div instead of getting the info of the existing div.
Thanks for help.
|
|
|
|
|
Hi to all,
I want to add sub header at gridview.
gridview contains main total four columns col1,col2,col3 and col4
under col2, i want two sub columns (sub1 & sub2) and under col3, i want two sub columns( sub1 & sub2)
and then next row data will be displayed....
please, help me how can i do it?...
|
|
|
|
|
|
sorry...for delay Abhijit
thanks its working.....
thank you very much....
|
|
|
|
|
Add there one more grid view under parent grid view.. there give a header to inner grid..
Thanks
Mohit Bhambral
mohitbhambral@gmail.com
|
|
|
|
|
I want to add 1 crystal report on my form
But following code gives me error for load report
How can I solve this?
testRpt.aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="testRpt.aspx.vb" Inherits="Booking_Final_Booking_testRpt" %>
<%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<CR:CrystalReportViewer ID="CrystalReportViewer1"
runat="server" AutoDataBind="True"
Height="1039px"
ReportSourceID="CrystalReportSource1"
Width="901px" />
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
<Report FileName="CrystalReport1.rpt">
</Report>
</CR:CrystalReportSource>
</div>
</form>
</body>
</html>
testRpt.aspx.vb
Imports Crystaldecisions.crystalreports.engine
Imports Crystaldecisions.reportsource
Imports Crystaldecisions.shared
Imports Crystaldecisions.windows.forms
Imports System.Data.SqlClient
Partial Class testRpt
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim crystalReport As New ReportDocument()
crystalReport.Load(Server.MapPath("CrystalReport1.rpt"))
crystalReport.SetDatabaseLogon("sa", "")
CrystalReportViewer1.ReportSource = crystalReport
end sub
end Class
and error is as
Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
|
|
|
|
|
Add this line in Web.config
<trust level="Full" originUrl="" />
You might find interest to read one article on Trust level
Here. [^]
Hope you like this solution.
Cheers.
|
|
|
|