|
thanks for reply, You are asking me to use asp.net ajax and I am saying, I am in an envoirnment where no ajax should be used. every thing should be done through javascript and c#.
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
|
I'm using FCKEditor in one of my pages....it was working fine....recently when i load that page in the place of the editor it shows "page cannot be found"....but when i run application in my local system it is working fine...
i even tested with live data in my local application everything is fine...there is no problem with the data, it is the editor that is not loading in my live application...any suggestions??
|
|
|
|
|
There might be the problem with path.
The path/relative path w.r.t root folder might have been changed on deploying to the live server.
Also check whether all the files and folders required for FCK editor has been copied to the server.
|
|
|
|
|
yea it is problem with the path, now its working...thanx yaar...
previously it was like folder/subfolder/../fckeditor, i changed it too ~/fckeditor
|
|
|
|
|
Hi! my english is bad,sorry.
I work on a project management examen marks with C#.
i have Table semester (id_semestre, libel_semestre )
table module (id_module,libel_module)
matière(id_matière,libel_matière)
module and matière are dynamic the user can delete or add data
I'm looking for a way to :if I click on a semester display modules and if I click on module i display materieres of the module.
Thanks
|
|
|
|
|
.Net Remoting y it is used
|
|
|
|
|
It is used to connect to www.google.com[^] so you can look up the answer yourself.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
To remote, using .Net.
Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.
|
|
|
|
|
|
I have a problem with a checkbox. CheckedChanged event is triggered each time I update my result set.mi page is as follows:
Image Example
1.i show the records of the team 1 and team 2.
2.uncheck the firts row of the team1 fire the event and all is ok .
3.when i show the team 2 the event fire again and change te status of the checkbox.
I have an UpdatePanel->GridView->Columns->TemplateField
aspx code:
<asp:TemplateField HeaderText="Alineable">
<ItemTemplate>
<asp:CheckBox ID="chkEstatus" Checked=' <%# ((string)Eval("Estatus"))=="Alineable"?true:false%>'
runat="server" AutoPostBack="True" OnCheckedChanged="chkEstatus_CheckedChanged" />
</ItemTemplate>
</asp:TemplateField>
C# code OnLoad event. in each posback i call the Filter Method and Fill the gridview
protected override void OnLoad(EventArgs e)
{
if (Utileria.ValidarSesion(Session["Usuario"], 0))
{
if (!Page.IsPostBack)
ObtenerEquipos();
usuario = (Usuario)Session["Usuario"];
Filtrar();
}
}
C# code of the event:
protected void chkEstatus_CheckedChanged(object sender, EventArgs e)
{
int jugadorId;
try
{
CheckBox chkAlineable = (CheckBox)sender;
int rowIndex = ((GridViewRow)chkAlineable.Parent.Parent).RowIndex;
jugadorId = (int)gvJugadores.DataKeys[rowIndex].Value;
Roster roster = new Roster();
roster.EquipoId = int.Parse(ddlEquipos.SelectedValue);
roster.JugadorId = jugadorId;
roster.Estatus = chkAlineable.Checked ? "Alineable" : "Inalineable";
roster.ActualizarEstatus(null);
Filtrar();
upJugadores.Update();
}
catch { throw; }
}
C# code of the to fill the gridview
private void Filtrar()
{
gvJugadores.DataSource = JugadoresColeccion.FiltrarRoster(ddlOpcionesBusqueda.SelectedValue, txtBusqueda.Text, int.Parse(ddlEquipos.SelectedValue));
gvJugadores.DataBind();
}
I need to avoid this behavior becouse the checkbox state change my data.
I conclude that the status of the checkbox to be different in the other resultset automatically fires the event that are in the same row.
but I don´t know how to solve it. please help.
|
|
|
|
|
Then just don't fill the grid on postback
if (!Page.IsPostBack)
{
ObtenerEquipos();
Filtrar();
}
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
It worked fine, but I had to put EnableViewState = true in my gridview and UpdatePanel because the event is not fired.
Know of any way to make it work with EnableViewState = false
|
|
|
|
|
EnableViewState causes the grid to maintain its data without having to rebind, which would wipe out any of the changes that were made, the original problem you were having. There are ways to do it without viewstate, but they are much more complicated.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hy,
In inorder to check wether my SP(containing select query) has returned table or not i use
dataset.tables[0]!=null and dataset.tables[0].rows.count >0
can any one tell me under what circumstances my select query will not return the name of the columns ?
Thanks nad regards,
raghvendra Panda
|
|
|
|
|
raghvendrapanda wrote: can any one tell me under what circumstances my select query will not return the name of the columns ?
I didn't get this.
and whether your sp has returned tables or not? To check this, do like this
dataset.tables!=null and dataset.tables.count >0
dataset.tables[0].rows
your code will through an exception if no table is returned
|
|
|
|
|
Hello
thanks for your reply,Its working fine,all i want to know is under what circumstance my select query in the stored proceure will not return even the name of the columns(for which i am using ds.tables[0]!null)
|
|
|
|
|
There would be no case that I can think of were this would occur. If your proc returns a resultset then you will have columns and names.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
raghvendrapanda wrote: can any one tell me under what circumstances my select query will not return the name of the columns ?
If there is some exception occured in your stored procedure while query execution then it may not return the columns also. The probability is high for a long SP or complex queries.
|
|
|
|
|
Hi people, maybe somebody knows to help me out. I have 2 problems:
1. How i can pass value from Page to a User Control maybe with a Event Delegate?
2. In the code below i have a user control, but I can not access it in the code behind and in the designer it is not registered.
But as soon as I remove my update panel and repater it is visible or can be accessed on it. Why?
<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
<ContentTemplate>
<div>
<asp:Repeater ID="RepeaterSkillGroup" runat="Server">
<ItemTemplate>
<div class="Box">
<div >
<MuM:SkillGroupControl ID="SkillGroup" runat="Server">
</MuM:SkillGroupControl>
</div>
</div>
</ItemTemplate>
</asp:Repeater>
<asp:HiddenField ID="HiddenField1" runat="Server" />
</div>
</ContentTemplate>
</asp:UpdatePanel>
thx a lot!
|
|
|
|
|
-Muc_ wrote: 1. How i can pass value from Page to a User Control maybe with a Event Delegate?
- One simple way you can do it, Have a public property in usercontrol which takes the value that you want and pass it from the page.
-Muc_ wrote: 2. In the code below i have a user control, but I can not access it in the code behind and in the designer it is not registered.
We cannot access directly any item that is in repeater.If you want to access it then you have to find it dynamically from codebehind using findcontrol.You can find it in itemdatabound of repeater.
Actually when we bind a datasource to repeater, the number of rows is created based on data and for every row sepearte control is created, so to access these controls you can access using find control in itemadatabound.
for details Have a look
|
|
|
|
|
Butt how should i add a EventHandler from usercontrol in my aspx page in the Repeater if I can not find it?
|
|
|
|
|
You add a event itemdatabound in the repeater,which is on your page.And in this function, find out your usercontrol as
SkillGroupControl ctrl= (SkillGroupControl)e.Item.FindControl("SkillGroup");
|
|
|
|
|
I had this event already knew that but not if I set a property of the control is static that the value is also reingespeichert.
I had this event already knew that but not if I set a property of Control that the value is static stores even.
protected virtual void RepeaterGroup_ItemdataBound(object sender, RepeaterItemEventArgs e)
{
MuMSkillGroup group = (MuMSkillGroup)e.Item.DataItem;
SkillGroupControl currentGoup = (SkillGroupControl)e.Item.FindControl("Skillgroup");
}
But thx a Lot!
|
|
|
|