|
Hi All,
I am using Rich Text Editor (JavaScript) and I need to save this Rich Text Editor Data (which is in html format) in text file.
Also I need to Save the file name in DataBase and I need to show this file in the Rich Text Editor's Text box when I come in edit mode.
Can anyone please help me...
Thanks in advance...
|
|
|
|
|
Hi...
Actually i want to add top columns Group Header...Means create goup header for col1, col2 etc...
Following are the sample code for my GRIDVIEW
<asp:gridview id="gvFinancialStatus" runat="server" autogeneratecolumns="False"
="" width="100%" datakeynames="RACK_ID" allowsorting="True" onsorting="gvFinancialStatus_Sorting">
<columns>
<asp:boundfield datafield="ROW_DESC" sortexpression="ROW_DESC">
<itemstyle width="300px" font-bold="True">
<headerstyle horizontalalign="Center">
<asp:boundfield headertext="Total Budget $" datafield="COL1" sortexpression="COL1">
<itemstyle width="70px" horizontalalign="Right">
<headerstyle horizontalalign="Center">
<asp:boundfield headertext="Actual Todate $" datafield="COL2" sortexpression="COL2">
<itemstyle width="70px" horizontalalign="Right">
<headerstyle horizontalalign="Center">
<asp:boundfield headertext="Accruals $" datafield="COL3" sortexpression="COL3">
<itemstyle width="70px" horizontalalign="Right">
<headerstyle horizontalalign="Center">
<asp:boundfield headertext="Total Todate $" datafield="COL4" sortexpression="COL4">
<itemstyle width="70px" horizontalalign="Right">
<headerstyle horizontalalign="Center">
<asp:boundfield headertext="Earned Value $" datafield="COL5" sortexpression="COL5">
<itemstyle width="70px" horizontalalign="Right">
<headerstyle horizontalalign="Center">
<asp:boundfield headertext="%age of Budget" datafield="COL6" sortexpression="COL6">
<itemstyle width="70px" horizontalalign="Right">
<headerstyle horizontalalign="Center">
<asp:boundfield headertext="Expected At Comp." datafield="COL7" sortexpression="COL7">
<itemstyle width="70px" horizontalalign="Right">
<headerstyle horizontalalign="Center">
Please provide sample code so that i can incooperate in my application
Thanks
|
|
|
|
|
Hi,
I u want to create a single header which spans for more than one columns then you can use the following approach.
After binding your gridview to the datasource you can set columnspan for the cells in the headerrow.
gv.HeaderRow.Cells[0].ColumnSpan = 2;
gv.HeaderRow.Cells[1].Visible = false;
I hope this will help u.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hi inside my datagrid, i used templte column in that i given "dropdownlistbox"...,
If i change anything in that dropdown listbox based on that event want to be fire...,
Normally in form we have dropdownlistbox selected item change event method is there...,
But how to do inside datagrid, dropdownlistbox selected item change event fire?...,
Plz any one help me...,
Magi
|
|
|
|
|
Give the dropdownlistbox "OnSelectedIndexChanged" event...,
Then call in ur cod place
Protected Sub ddlApp_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)
ur statements...
end sub
All sorrows will be forget...,When u think ur most lovable one...,
Mag,
|
|
|
|
|
I need help for speed up responcse time of asp.net pages,
My page includes Usercontrols-7,Images-60,
Is there any solution for quick download of images..?
Is Usercontrol can slow page speed?
Please give me some guidelins or help..
It's urgent.
Waiting for reply....
i learner
|
|
|
|
|
ilaxi wrote: Is there any solution for quick download of images..?
Make them smaller,
ilaxi wrote: Is Usercontrol can slow page speed?
Not particularly.
ilaxi wrote: Please give me some guidelins or help..
Try removing any viewstate you're not using, and try to work out what the problem is, is it the code running, or the code downloading to the client ?
ilaxi wrote: It's urgent.
Gee, we've never seen that before...
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi,
can anybody tell how to show the drop down in reverse direction like if the first value is selected in the first row drop down list now i want to show this text box in the last row
|
|
|
|
|
I don't follow, do yuo want to reverse the text, or do you have a text box, or what ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i mean to say i am having the grid view just like shopping cart having drop down for product name and having the corresponding text boxes for price and quantity now i want to add new row having no selected item
i am maintaining the value in data table now i want to add new row above the selected row
the problem is i am able to get the values in text boxes below the new row but my selected value of drop is showing in the row which is new means to see the drop down corresponding to rows are not reversed
|
|
|
|
|
Keyword not supported: 'unicode'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Keyword not supported: 'unicode'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
I downloaded the source code from the gridview girl.com site . If u are not aware of the article then i will provide the article too.
|
|
|
|
|
I suggest you buy a book and work through it so you know how to program instead of blindly copying code from various sites. Articles are great, but you should work through them so you understand the code.
We can't help you, except to say that you've used the keyword 'unicode' and it's not supported. For more info, we need to see the code.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
thanks for your suggestion. here is the code and try to help me.
using System;
using System.Data;
using System.Configuration;
using System.Collections;
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.OleDb;
using System.Data.OracleClient;
public partial class Default13 : System.Web.UI.Page
{
private void Createrow(Table childtable,int index)
{
GridViewRow row = new GridViewRow(-1, -1, DataControlRowType.DataRow, DataControlRowState.Normal);
row.Cells.Add(createcolumn());
childtable.Rows.AddAt(index + 2, row);
}
private TableCell createcolumn()
{
TableCell tc = new TableCell();
tc.ColumnSpan = GridView1.Columns.Count;
tc.Width = Unit.Percentage(100);
DataSourceControl ds = createdatasource();
tc.Controls.Add(ds);
tc.Controls.Add(createdetailsview(ds));
return tc;
}
private DataSourceControl createdatasource()
{
SqlDataSource ds = new SqlDataSource();
ds.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString2"].ConnectionString ;
ds.SelectCommand = "SELECT DEPTNO, DNAME FROM DEPT1 where deptno=@deptno";
Parameter pc = new Parameter("deptno", TypeCode.String, GridView1.SelectedValue.ToString());
ds.SelectParameters.Add(pc);
ds.ID = "SqlDataSource2";
return ds;
}
private static DetailsView createdetailsview(DataSourceControl ds)
{
DetailsView dv = new DetailsView();
dv.AutoGenerateRows = true;
dv.DataSourceID = ds.ID;
return dv;
}
protected void Page_Load(object sender, EventArgs e)
{
}
protected void GridView1_PreRender(object sender, EventArgs e)
{
if (GridView1.SelectedRow!= null)
{
Table childtable = GridView1.SelectedRow.Parent as Table;
if (childtable != null)
Createrow(childtable, GridView1.SelectedIndex);
}
}
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
}
}
|
|
|
|
|
and which line blows up ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I traced the page. Its giving error after the "Begin Pre render" event.
Keyword not supported: 'unicode'.
at System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey)
at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules)
at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(String connectionString, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
at System.Data.SqlClient.SqlConnection.ConnectionString_Set(String value)
at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
at System.Web.UI.WebControls.SqlDataSource.CreateConnection(String connectionString)
at System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
at System.Web.UI.WebControls.DetailsView.DataBind()
at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
at System.Web.UI.WebControls.DetailsView.EnsureDataBound()
at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 0.0112214646844372 0.010079
|
|
|
|
|
Have you thought to set a breakpoint, so you can see what *line* is blowing up ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i did that too but every line is executing very well. At the end of lasat curly brace its giving error. i thought there is no error in the program. but i think the error i am getting is general error due to some settings. if anyone aware of this type of error then they may solve.
|
|
|
|
|
Hi..
Can anyone tell me how to create Group Header in GridView (ASP.NET 2.0)
Please provide sample HTML code...
thanks
Regards,
Haseeb.
|
|
|
|
|
|
Do you mean platform independent as far as hosting or viewing? Hosting, yes there are third party programs to host ASP on any major platform. Now viewing and using, it depends on what you mean, when you make a page, some browsers will view it differently but thats the nature of programming in itself. If you better explain what you mean by independent then I may be able to better explain.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
Always great when they do that....
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Please don't spam the entire site. You've asked the same question in the last three forums I have looked at.
asp.net does not compile to an exe, you obviously have no idea what you're asking.
mnarayana3 wrote: Can i run this .exe in any os?
Of course not. No language offers that, not even C or C++.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Salam
Could i set out a master page in viewstate...Or Give me any suggession how to fix/static MasterPage....Because i don't want to postback Masterpage while loading child page....
I know whenever child page open its also compile masterpage...I handle menu right for using Session but not maitain Treeview state....
Means if user open tree 3rd level node and page is postback then again tree populated through Database but not maintain its state....not display 3 level node.
Thanks...
|
|
|
|
|
ha_haseebahmad wrote: Because i don't want to postback Masterpage while loading child page....
As I explained to you yesterday, that's not possible.
ha_haseebahmad wrote: then again tree populated through Database
This is probably your problem, if you load the data from the database, then the viewstate will be lost, and it will reset itself.
Did you check the infragistic site, or just wait 24 hours to post the same question again, in the hope that the answer would change ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hello
How to implement remember me next time feature for login control in asp.net 2.0. where user name and pwd stored in encrypted format for cookie. if anyone knows plz give some idea.
bye
|
|
|
|