|
iam adding picture in an iframe by command iframe.document.execCommand('insertimage', false, imgSrc);now i want to add table like this .how it possible.
|
|
|
|
|
jagadeeshkumar1984 wrote: iam adding picture in an iframe by command iframe.document.execCommand('insertimage', false, imgSrc);now i want to add table like this .how it possible.
A table is represented by HTML, put an HTML file in the IFRAME.
|
|
|
|
|
First Create aspx page for inserting Table and it will have all the thing which u need to accept for creating table. Something like this:
<table cellpadding="1" cellspacing="1" border="0" width="100%">
<tr>
<td align="right" class="textright">Rows</td>
<td class="textright">
<input name="rows" class="text" type="text" id="rows" value="2"/>
</td>
<td align="left" class="textright">Columns</td>
<td class="textright">
<input name="columns" type="text" class="text" id="columns" value="2"/>
</td>
</tr>
<tr>
<td class="textright" align="right">Table width</td>
<td class="textright">
<input name="width" class="text" type="text" id="width" value="100"/>
</td>
<td class="textright" colspan="2">
<select id="widthType" class="text" name="widthType">
<option value="pixels">pixels</option>
<option value="percent" selected="selected">percent</option>
</select>
</td>
</tr>
<tr>
<td align="right" class="textright">Border thickness</td>
<td class="textright">
<input name="border" class="text" type="text" id="border" value="1"/>
</td>
<td align="left" class="textright" colspan="2">pixels</td>
</tr>
<tr>
<td align="right" class="textright">Cell padding</td>
<td class="textright">
<input name="padding" class="text" type="text" id="padding" value="4"/>
</td>
<td class="textright">Cell spacing</td>
<td class="textright">
<input name="spacing" class="text" type="text" id="0" value="0"/>
</td>
</tr>
<tr>
<td class="textright">
</td>
<td class="textright" colspan="3">
</td>
</tr>
<tr>
<td class="textright"> </td>
<td colspan="3" class="textright" align="center">
<input type="button" class="button" value="Insert Table" onclick="AddTable();" />
<input type="button" class="button" value="Cancel" onclick="window.close();" />
</td>
</tr>
</table>
Then add Javascript Function AddTable():
function AddTable() {
var widthType = (document.tableForm.widthType.value == "pixels") ? "" : "%";
var html = '<table border="' + document.tableForm.border.value + '" cellpadding="' + document.tableForm.padding.value + '" ';
html += 'cellspacing="' + document.tableForm.spacing.value + '" width="' + document.tableForm.width.value + widthType + '">\n';
for (var rows = 0; rows < document.tableForm.rows.value; rows++) {
html += "<tr>\n";
for (cols = 0; cols < document.tableForm.columns.value; cols++) {
html += "<td> </td>\n";
}
html+= "</tr>\n";
}
html += "</table>\n";
window.opener.insertHTML(html);
window.close();
}
Finally call this page on ur iframe form like this:
function dlgInsertTable(command, editorId)
{
//function to open/close insert table dialog
//save current values
setRange(editorId);
var finalDivId = editorId + '_content';
parent.command = command;
var currentRTE = finalDivId;
var windowOptions = 'history=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,width=500px,height=200px';
window.open('insert_table.aspx?f=' + finalDivId, 'InsertTable', windowOptions);
}
Hope this helps u???
|
|
|
|
|
in form based authentication we have a tag with credential inthat we had an attribute password.for that we have 3 values clear,mid5,shai.how we encrypt a password stored in a database will be encrypted using shai.....please send the source code also
|
|
|
|
|
|
Encrypting the values passed as a user name or password as in mail ids.i want the source code for encrypting the username that stores in the database will entered into the textbox it will be displayed as in encrypted form using random numbers.
|
|
|
|
|
Hi,
I have two sql databases. I want to update tables from one database to other database.
how can I do it
Thanks in advance
|
|
|
|
|
say the two tables dbase1 and dbase2
just update the tables like dbase1.emp and dbase2.emp
hope u understood
|
|
|
|
|
If both the database resides on the same server then you can do using the below syntax
Update DBName.dbo.Table SET DBName.dbo.Table.Column = val
Regards - J O N -
|
|
|
|
|
hi how can we set the dataset value as navigate url to open that file.
plz help asap.
regards
venkat
|
|
|
|
|
just link the full path of the file from server
|
|
|
|
|
hi
how to convert the system path into browser path
(or)
how to replace \ with / in system path
venkat
|
|
|
|
|
venky456 wrote: how to replace \ with / in system path
string Answer = @"\".Replace(@"\","/");
|
|
|
|
|
you should use Server.MapPath Method[^]
If you just want to replace \ with / :
string path = systemPath.Replace("\\","/");
|
|
|
|
|
i have webfarm mode and i have three server.
i have one fileupload control how it will upload the file on server in file structure.
|
|
|
|
|
hi friends
i am in new RSS feed .
how to implement in .net.
how to dynamically update the information using rss feed in asp.net
regards
saravanan
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
use XmlTextReader reader = new XmlTextReader("sitename");//getting xmlfile
DataSet s = new DataSet();
s.ReadXml(reader); // read xml
datagrid.dataSource = s;
datagrid.DataBind();
this code will do the RSS Feeding...
|
|
|
|
|
http://www.w3schools.com/rss/default.asp
Thomas
|
|
|
|
|
Hi
I am using VS 2003 framework 1.1
in my asp.net application crystal report run fine in my PC.
But on demo server it will giving error,
Exception Details: CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Load report failed.
Stack Trace:
[LoadSaveReportException: Load report failed.]
.I(String , EngineExceptionErrorID ) +272
.E(String , Int32 ) +56
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob) +1262
CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob) +456
CrystalDecisions.CrystalReports.Engine.ReportDocument.)() +98
CrystalDecisions.CrystalReports.Engine.ReportDocument.get_Database() +7
CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDatabaseLogon(String user, String password) +64
DSRBWeb.Protocols.MainIntro.btnrpt_Click(Object sender, EventArgs e)
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292
--------
I already given rights to asp.net user for report.
can you please help to solve this
With Regards,
Mayank Prajapati
MCP, MCTS .Net 2.0
|
|
|
|
|
I need to filter a value in Dataset. My code is
string ConStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + path + ";Extended Properties=\"Text;HDR=No;FMT=Delimited\\\"";
System.Data.OleDb.OleDbConnection conn = new System.Data.OleDb.OleDbConnection(ConStr);
System.Data.OleDb.OleDbDataAdapter da = new System.Data.OleDb.OleDbDataAdapter("Select * from " + file, conn);
da.Fill(ds, "TextFile");
Here i have not defined any column value, Still Can i filter the dataset.
|
|
|
|
|
yes i think you can still filter the column values....
Regards,
Sandeep Kumar.V
|
|
|
|
|
Can you please give me some clue or syntax
|
|
|
|
|
you can use RowFilter property of Dataview to filter rows from the dataset...
something like this...
Dim view As New DataView<br />
view = DataSet1.Tables("TableName").DefaultView<br />
view.RowFilter = "Column = 'FilterValue'"
Regards - J O N -
|
|
|
|
|
Hello there,
I want to learn how to create web pages and controls dynamically through html in ASP.Net application.
Can anybody provide me any link for this or if anybody has some ebook then plz forward it to my emailid (manohar.nagendra@gmail.com).
Thanks in advance,
Nagendra.
|
|
|
|
|
Hi Friends
I am using Textbox inside a panel.
And the Textbox has Validator. The Validator is not getting fired?
Its pretty strange.
If i keep the panel in Visible = true on pageload. I see the Validator works.
But once i make its Visible = false and then again Visible = true.
Thereafter the Validators dont work.
Any idea friends.
Any suggestions would be appreciated.
Thanks
Cheers
Menon
|
|
|
|