|
It cannot be done using one control. However, it can be done using CSS and HTML. Probably this site will be useful. Check here
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
I tried this but it's not working properly in Firefox
Sathya
|
|
|
|
|
here I am using gridview with Hoverextender control..when I click the delete button I want to get gridview id value..for getting id value I am using javasript..but its always giving value 1.If anybody knows plz reply me.
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="IId" OnRowDataBound="GridView1_RowDataBound" EmptyDataText="You have deleted all records in Item list" ShowFooter="true" GridLines="none">
<Columns>
<asp:TemplateField>
<HeaderTemplate>
<table style="width: 393px" cellpadding="0" cellspacing="0" border="0">
<tr style="cursor: move;background-color:#F1AB44;border:solid 0px Gray;color:Black;padding-top:0px;"></tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table style="width: 393px">
<tr style="cursor: move;background-color:#FFFFFF;border:solid 0px Gray;color:Black;padding-top:0px;">
<td style="text-align:left;width: 393px" class="ntext">
<asp:Panel ID="panel11" runat="server"><strong style="width:300px;"><%#FormatString(Eval("Iname").ToString(), 15)%></strong><strong style="margin-left:300px"><%#Eval("reason").ToString()%></strong>
</asp:Panel>
<b>&lt;ajaxToolkit:HoverMenuExtender ID="HoverMenuExtender1" runat="server" HoverCssClass="popupHover" PopupControlID="PopupMenu" TargetControlID="panel11" PopupPosition="Bottom"&gt; &lt;/ajaxToolkit:HoverMenuExtender&gt; </b>
&lt;asp:Panel ID="PopupMenu" runat="server" CssClass="popupMenu"&gt;
&lt;div&gt;
&lt;table style="width: 339px;border:solid 1px Black;"&gt;
&lt;tr&gt;
&lt;td colspan="2" style="text-align: center; height: 20px;"&gt;
&lt;asp:Panel ID="Panel3" runat="server" Style="cursor: move;background-color:#DDDDDD;border:solid 1px Gray;color:Black;padding-top:0px;height: 20px;" Width="389px" Height="20px"&gt;
&lt;span style="font-size: 12pt; color: chocolate; font-family: Verdana"&gt;&lt;strong&gt;&lt;%#Eval("Iname") %&gt;&lt;/strong&gt;&lt;/span&gt;
&lt;/asp:Panel&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="width: 146px; text-align: right;padding-left:3px;" rowspan="4"&gt;
&lt;asp:Image ID="Image1" runat="server" ImageUrl='&lt;%#Eval("IImage") %&gt;' Height="138px" Width="182px" /&gt;&lt;/td&gt;
&lt;td style="width: 219px; text-align: left;padding-left:10px;" rowspan="4" valign="top"&gt;
&lt;%#Eval("IDesc") %&gt;&lt;/td&gt;
&lt;tr&gt;
&lt;td style="text-align: right" colspan="2"&gt;&lt;%#Eval("id") %&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="2" style="text-align: center"&gt;
&lt;span style="font-size: 12pt; color: Black; font-family: Verdana"&gt;&lt;strong&gt;&lt;%#Eval("ICategory") %&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: center" colspan="2"&gt;
<b>&lt;input id="id" type="hidden" value='&lt;%#Eval("id") %&gt;' name="id"/&gt;</b>
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="center" style="text-align: center"&gt;
&lt;asp:Button ID="btnlock" Text="Lock" runat="server" OnClick="btnlock_Click" /&gt;
&lt;asp:Button ID="btnremove" Text="Remove" runat="server" OnClientClick="JavaScript:getid();" OnClick="btnremove_Click" /&gt;
&lt;/td&gt; &lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;&lt;/asp:Panel&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
&lt;/Columns&gt;
&lt;/asp:GridView&gt;
&lt;script&gt;
function getid()
{
//alert("getid");
<b>var getid = document.getElementById('id').value;</b>alert(getid);
}
&lt;/script&gt;
Rajendran.AL
|
|
|
|
|
i was tryig to download the file through the gridview link button.The gridview is in the update panel.
on cliking the link button it showed the followig error
"Sys.Webforms.PageRequestParserErrorException: The message received from the server could not be parsed. Errors parsing near
there were few square boxes after this.
I am writing the following code.
string filename = f.Name;<br />
Response.ContentType = "application/octet-stream";<br />
Response.AddHeader("content-disposition", "attachment; filename = " + str);<br />
Response.BinaryWrite(b);<br />
Response.End();
Please help.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
<blockquote class="FQ"><div class="FQA">Pankaj Garg wrote:</div>"Sys.Webforms.PageRequestParserErrorException: The message received from the server could not be parsed. Errors parsing near
there were few square boxes after this.
I am writing the following code.</blockquote>
Yes. Response will not work for Update Panel.
You need to trigger that event as PostBackEvent.
Example.
<triggers>
<asp:postbacktrigger controlid="DownloadLinkButtonID" />
</triggers>
Regard
kHan
please don't forget to vote on the post that helped you.
|
|
|
|
|
my linkbutton is in datalist and datalist is in update panel.
How should i find the link button id now?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
How to send a mail to user for get the new password?
My web.config like follows:
<pre><system.net>
<mailsettings>
<smtp from="admin@pmtt.net">
<network host="smtp.pmtt.net" password="" username="" />
</smtp>
</mailsettings>
</system.net>
</pre>
And membership's property "enablePasswordReset="true"".
if My domain is "pmtt.net"
How send a mail use Gmail or Hotmail,
Or configure my own mail domain for send email?
Thanks.
|
|
|
|
|
You may use either web.config or asp.net configuration to specify the SMTP Server..
You need to remember that Hotmail and Gmail requires proper authentication so you need to provide an username and password as well.
Thereafter, you need to code the mail which you will be sending. Here is a small code snippet which does this:
SmtpClient smtpClient1 = new SmtpClient("ServerName", "smtpPort");
MailAddress fromEmailAddress = new MailAddress("fromEmailAddress");
MailAddress toEmailAddress = new MailAddress("toEmailAddress");
MailMessage msg = new MailMessage(fromEmailAddress, toEmailAddress);
msg.Subject = "Password sent";
smtpClient1.Send(msg);
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
how to connect sql server database using asp.net with vb and c#
|
|
|
|
|
You mean asp.net with sqlserver connection ....?
|
|
|
|
|
You need to purchase ASP.NET book.
If We give you an answer of this question then you will ask How to add values in database or how to bind DataControl or how to access data from database etc...
regard
kHan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi,
I am using Ajax modal popup extender in my project. It works in IE 6, when it comes to IE 7, the popup is displaying behind the background. So I am not able to click on popup buttons.
Any help on this really appreciated!
|
|
|
|
|
Have you added style for the modal popup extender control in stylesheet?
If yes then set z-index as 1000
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi guys,
(sorry - lot of description about why I have an issue. My question is at the very bottom of this post...)
we have a scenario with several (more or less identical) Moss applications for different clients. Reports are the main part of it; these reports are identical as well for the clients but have to be deployed in each clients application. We display these reports using the Report viewer webpart that comes with the Reporting Services Add-on for Sharepoint.
I successfully set up kerberos auth and the RS integration. Using the ReportServer2006 (!) proxy I can programatically deploy the reports and manipulate their data sources. So far, so good.
Now there is one issue: I can deploy the reports _once_ - as soon as I try to deploy a second 'instance' of a report to a second application, the first entry in the 'Catalog' table of the ReportServer database gets deleted. So the last application gets stripped of its reports when the following application gets its reports deployed. This strange behavior does not affect the data sources; these can exist in several equally named copies in the table having different paths (URLs) for the different applications.
An obvious workaround: Rename the reports when deploying - e.g. 'Client1_ReportXY.rdl'. Works like a charm as expected.
But now we have n applications getting deployed via stsadm -o backup / restore from a template. Of course the Report Viewer webparts of the template don't know about the new names of the reports.
So I dug into the Sharepoint Object Model to try and update the reports' names in the Report Viewer webparts. I'm new in Sharepoint programming.
HERE IS MY ACTUAL PROBLEM: I can get hold of all the webparts on the page using SPLimitedWebPartManager - but the Report Viewer webpart doesn't show up in the SPLimitedWebPartCollection. Why is this? Is there any way to programmatically manipulate this webpart on an existing MOSS Page?
http://technet.microsoft.com/en-us/library/bb326422.aspx[^] points out that the Report Viewer webpart is a 'Custom Web Part'. Is this the cause - can't I access custom webparts via the object model?
Thanks for reading, any suggestions welcome. Actually I'm thinking of switching back to RS native mode - there have been lots of problems with the MOSS integration. And overall MOSS itself gave me more of a hard time than it actually helped
Juergen
modified on Friday, June 20, 2008 3:54 AM
|
|
|
|
|
Give focus to particular posion of webpage in a button click is Possible ?
Got ? Give me..
|
|
|
|
|
I am not sure whether I have understood the question correctly...
You may Panels, table or any other control and then on a button click, give the focus to the controls.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
how can i read file another process is reading
|
|
|
|
|
I am using the following method to open the files which are opened by other process.
System.IO.FileStream fs = new System.IO.FileStream("file path here", System.IO.FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.ReadWrite)
*jaans
|
|
|
|
|
Hi every body
I wrote code in asp.net to write in excel.
when i run it in debug mode it writes and opens this excelsheet.
But when I Browse by my IE then it does not open and also does not give error message
What is PROBLEM??????????????????
CAN ANYBODY TELL ME PLEASE ?
rAGHVENDRA
Raghvendra Kumar Roy
|
|
|
|
|
I have designed a Editor with basic format options and Spell check option.
The spell check code is as follows
Word.Application app = new Word.Application();
app.Visible=false;
object template = Missing.Value;
object newTemplate = Missing.Value;
object documentType = Missing.Value;
object visible = true;
object optional = Missing.Value;
Word._Document doc = app.Documents.Add(ref template, ref newTemplate, ref documentType, ref visible);
doc.Words.First.InsertBefore (hdnVal.Value );
Word.ProofreadingErrors we = doc.SpellingErrors;
iErrorCount = we.Count; doc.CheckSpelling( ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional);
object first = 0;
object last = doc.Characters.Count -1;
string strTemp = doc.Range(ref first, ref last).Text;
doc.Close(ref saveChanges, ref originalFormat, ref routeDocument);
app.Quit(ref saveChanges, ref originalFormat, ref routeDocument);
The problem is that, when i execute it in my system, its working fine.
But when i access the same URL from another machine, the spell check dialog is not opening but , its opening in the parent system.
What could be the problem? Kindly help me
Thanks
~VSree
|
|
|
|
|
I have a page which has lot of asp.net controls and retrieves data from the database and fill the controls.
and if the user makes changes and moves to the next page without saving. I want to alert them.
Can any one gimme idea on how to track the changes in the page !! or which keyword to search in google for !!
P.S: I checked for Viewstate property but it remains the same onload and posts.
Sathy
|
|
|
|
|
I guess this [^]will help you.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
Hi All,
In crystal report i want to display a field which is a string that should be in the following condition.
If that field has string value then it should display as it is else
if its a number then it should convert the string type to numeric type.
i used the following code
If NumericText ({st_delivery_note.stst_item_code}) Then
ToNumber ({st_delivery_note.stst_item_code})
else {st_delivery_note.stst_item_code}
but error occurs in the last line which says " A number required here"
Can anyone help me out.
|
|
|
|
|
|
Visual Studio can be used to edit XML files. BTW, what this has o do with ASP.NET ?
|
|
|
|