|
Try with ajaxResponse.firstChild to get the first child of ajaxResponse node.
--
http://ashakthi.blogspot.com
http://kids-articles.blogspot.com
|
|
|
|
|
not working
it's showing null value in alert message.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Anyone please suggest me a site where i can easily learn how to design the templates
|
|
|
|
|
"Templates" can mean a lot of things. What are you interested in designing?
|
|
|
|
|
|
Hi
when i use usercontrol in placeholder......
Event is not firing for the first time only second time it is firing in usercontrol
thanks in advance
Ramkumar
|
|
|
|
|
Are you dynamically adding the control in the Load event of the page?
If so, try adding it in the Init event instead.
|
|
|
|
|
Hello,
I'm building a site with asp.net (fw 3.5).
In my code behind I'm filling a literal with a "mailto" link which have a subject and a body parameters in hebrew.
When I run the site and click the link it open my outlook but the subject and body are in gibberish (scrambeled latters).
I tried saving the page as hebrew or UTF. Also tried adding meta of hebrew or UTF-8. nothing worked
Any ideas way is that or what I can do?
Thanks.
|
|
|
|
|
Actually it is totally related on how the data is sent to the Outlook from the browser. The process is invoked from the Browser and depends on the browser itself.
Rather than doing this, I think the better way would be to send email from your web interface, not using mailto in your case.
|
|
|
|
|
Hi guys,
I have one problem while using update panel.
i am loading usercontrols through placeholder.
In that usercontrols i have used update panel.
Consider i am having an linkbutton in the usercontrol,
the linkbutton event is not firing at first time....
any body knows the solution ....
its urgent plz reply...
Regards
Muniratnam
|
|
|
|
|
|
Default.aspx
----------
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<!-- Site Container -->
<asp:UpdatePanel ID="UpdatePanel" runat="server">
<ContentTemplate>
<div>
<asp:PlaceHolder ID="PlaceHolder_content" runat="server"></asp:PlaceHolder>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
<!-- /Site Container -->
</form>
</body>
Default.aspx.cs
---------------
public string page;
protected void Page_Load(object sender, EventArgs e)
{
PlaceHolder_content.Controls.Clear();
CompareScheme CompareScheme_Ctrl = (CompareScheme)LoadControl("CompareScheme.ascx");
PlaceHolder_content.Controls.Add(CompareScheme_Ctrl);
}
CompareScheme.ascx (user COntrol)
-------------------
<div class="find_fund" style="padding-left: 10px; padding-top: 10px;">
<div class="find_top">
<div class="topnews_label">
Compare Schemes</div>
</div>
<div class="find_middle1">
<div class="LH" style="margin-left: 1px; margin-right: 1px;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" >
<tr>
<td>
Select Category
</td>
<td>
<asp:DropDownList ID="ddl_category" style="width:250px; font-size: 12px; color: #828282; padding-left: 6px;" runat="server" AutoPostBack="True"
OnSelectedIndexChanged="ddl_category_SelectedIndexChanged">
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
Select Scheme1
</td>
<td>
<asp:DropDownList ID="ddl_scheme1" style="width:250px; font-size: 12px; color: #828282; padding-left: 6px;" Width="250px" runat="server">
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
Select Scheme2
</td>
<td>
<asp:DropDownList ID="ddl_scheme2" style="width:250px; font-size: 12px; color: #828282; padding-left: 6px;" runat="server">
</asp:DropDownList>
<span>
<asp:Button ID="btn_Go" runat="server" style="background-image:url(/images/btnbg.gif);color:#FFFFFF;border:none;background-repeat:no-repeat;width:86px;height:26px;font-family: Arial;font-size:11px;font-weight:bold;cursor:pointer;" Text="GO" OnClick="btn_Go_Click" /></span>
</td>
</tr>
<tr>
<td><asp:Label ID="lbl_warning" runat="server" Text=""></asp:Label></td>
</tr>
<tr>
<td style="height:10px;"></td>
</tr>
<tr>
<td id="tabs" runat="server" colspan="2">
</td>
</tr>
</table>
</div>
</div>
<div class="find_bottom">
</div>
</div>
CompareScheme.ascx.cs
---------------------
protected void Page_Load(object sender, EventArgs e)
{
if (clevent != "post")
fillcategory();
}
private void fillcategory()
{
MF.DS = MF.DAL_Mut_Category();
ddl_category.DataSource = MF.DS;
ddl_category.DataValueField = "SCHCLCODE";
ddl_category.DataTextField = "SCHCLASS";
ddl_category.DataBind();
ListItem li = new ListItem("Select a Category", "");
ddl_category.Items.Insert(0, li);
ListItem li1 = new ListItem("Select a Scheme", "");
ddl_scheme1.Items.Insert(0, li1);
ListItem li2 = new ListItem("Select a Scheme", "");
ddl_scheme2.Items.Insert(0, li2);
}
protected void ddl_category_SelectedIndexChanged(object sender, EventArgs e)
{
clevent = "post";
MF.Str_Category = ddl_category.SelectedValue;
MF.DAL_Mut_Schemes();
ddl_scheme1.DataSource = MF.DS;
ddl_scheme1.DataValueField = "mf_schcode";
ddl_scheme1.DataTextField = "SCH_name";
ddl_scheme1.DataBind();
ddl_scheme2.DataSource = MF.DS;
ddl_scheme2.DataValueField = "mf_schcode";
ddl_scheme2.DataTextField = "SCH_name";
ddl_scheme2.DataBind();
}
Here the problem is i am having an Default.aspx page
In that i am loading CompareScheme.ascx user coltrol into the place holder
here if i select first dropdownlist the other two dropdownlist are loaded based on the first one selection...
I am getting loadded the second two dropdownlists only if i select two times...
--------------------------------------------------------
second is consider i am having a gridview in the usercontrol,
like this
this is an usercontrol
------------------
<asp:UpdatePanel ID="Updatepan" runat="server" UpdateMode="Conditional" RenderMode="Inline">
<ContentTemplate>
<div class="top_funds">
<div class="funds_top">
<div class="topnews_label">
Top Funds
</div>
<div style="float: left;" class="topnews_label">
<span style="font-family: Arial; color: Navy; font-size: 13px; font-weight: bold;">
<asp:UpdateProgress ID="updateprogress" AssociatedUpdatePanelID="Updatepan" runat="server">
<ProgressTemplate>
Loading...
</ProgressTemplate>
</asp:UpdateProgress>
</span>
</div>
</div>
<div class="funds_middle" style="height: 100%">
<div style="width: 500px;">
<asp:GridView ID="GV_types" GridLines="None" Width="502px" CellPadding="5" PageSize="5"
AllowPaging="true" runat="server" AutoGenerateColumns="false">
<Columns>
<asp:TemplateField HeaderStyle-Width="200px" HeaderText="Scheme Name">
<ItemTemplate>
<asp:LinkButton ID="lnk" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "Mf_SchCode").ToString()%>'
OnCommand="lnkbtn_Click" runat="server"><%#DataBinder.Eval(Container.DataItem, "SCH_NAME").ToString()%></asp:LinkButton>
</ItemTemplate>
<ItemStyle Width="200px" CssClass="tbl_fontsize blue_Clr" />
</asp:TemplateField>
<asp:BoundField DataField="NavRs" DataFormatString="{0:N}" HeaderText="NAV(Rs)">
<ItemStyle Width="50px" />
<ItemStyle Width="50px" CssClass="tbl_fontsize" />
</asp:BoundField>
<asp:BoundField DataField="week1" DataFormatString="{0:N}" HeaderText="1wk">
<ItemStyle Width="35px" />
<ItemStyle Width="35px" CssClass="tbl_fontsize" />
</asp:BoundField>
<asp:BoundField DataField="month1" DataFormatString="{0:N}" HeaderText="1m">
<ItemStyle Width="35px" />
<ItemStyle Width="35px" CssClass="tbl_fontsize" />
</asp:BoundField>
<asp:BoundField DataField="month3" DataFormatString="{0:N}" HeaderText="3m">
<ItemStyle Width="35px" />
<ItemStyle Width="35px" CssClass="tbl_fontsize" />
</asp:BoundField>
<asp:BoundField DataField="month6" DataFormatString="{0:N}" HeaderText="6m">
<ItemStyle Width="35px" />
<ItemStyle Width="35px" CssClass="tbl_fontsize" />
</asp:BoundField>
<asp:BoundField DataField="year1" DataFormatString="{0:N}" HeaderText="1y">
<ItemStyle Width="35px" />
<ItemStyle Width="35px" CssClass="tbl_fontsize" />
</asp:BoundField>
</Columns>
<PagerSettings Mode="NextPrevious" NextPageText="Next" PreviousPageText="Prev" />
<HeaderStyle CssClass="gray_color" Height="10px" />
<RowStyle BackColor="#FFFFFF" ForeColor="#000000" Font-Names="Arial" Height="10px"
Font-Size="11px" />
<AlternatingRowStyle BackColor="#F8F8F8" ForeColor="#000000" Height="10px" Font-Names="Arial"
Font-Size="11px" />
</asp:GridView>
</div>
</div>
<div class="funds_bottom">
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
protected void Page_Load(object sender, EventArgs e)
{
//if(!IsPostBack)
loadschemes();
}
private void loadschemes()
{
MF.DS = MF.DAL_Mut_TopFun_Category();
GV_schemes.DataSource = MF.DS;
GV_schemes.DataBind();
}
protected void GV_schemes_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GV_schemes.PageIndex = e.NewPageIndex;
loadschemes();
}
------------------------
in the gridview the paging is woking only if i click two times...
|
|
|
|
|
I've got large images in DB and after GridView control is bound to DataSet the GridView.ImageField column becomes very large. How to restrict the max size of the GridView.ImageField column?
Чесноков
|
|
|
|
|
Have you considered storing and using a thumbnail of the image?
|
|
|
|
|
I can store the thumbnail of the image in addition.
But GridView.ImageField accepts only ImageUrl as a bound control. How can I pass to it say jpeg thumbnail saved in db?
I tried to bound to its url original jpeg stored in db, but it got the error while I called DataBind().
Чесноков
|
|
|
|
|
|
|
I setup Control style to certain width and height and it worked.
Can we set individual rows ImageField sizes so that they display images proportionally, not stretched to fixed NxM predefined size?
Чесноков
|
|
|
|
|
Chesnokov Yuriy wrote: Can we set individual rows ImageField sizes so that they display images proportionally, not stretched to fixed NxM predefined size?
You means each and every image field should have different size and Image size will be the same of image field ?
|
|
|
|
|
No, I meant images of different sizes and width/height ratios would be shrinked to ImageField fixed size retaining aspect ratio.
As currently all images resized without preservation of aspect ratio, just interpolated to NxM.
Чесноков
|
|
|
|
|
See this is my code:
I hope it will work fine.
<asp:gridview runat="server" id="gvImages" autogeneratecolumns="false" datasourceid="sqldataImages" cssclass="Gridview" headerstyle-backcolor="#61A6F8">
<columns>
<asp:boundfield datafield="ID" headertext="ID">
<asp:boundfield datafield="ImageName" headertext="Image Name">
<asp:imagefield headertext="Image" dataimageurlfield="ImagePath" controlstyle-width="20" controlstyle-height="20">
<HeaderStyle Width="50px" />
<itemstyle height="50px" width="50px">
|
|
|
|
|
How to update data table dynamically.......which is data source of a datalist......guide me a bit
|
|
|
|
|
What have you tried so far?
|
|
|
|
|
Just create a new DataTable, set it to DataSource and Call DataBind()
|
|
|
|
|
Hi
i am using placeholder in my page and with the help of usercontrol i am binding the control in the placeholder..
My issue is
I am using dropdown in one of my control ..and its onchange i am calling one function ...but in my control
if(!ispostback) is not working ... and I could not get the dropdown selected value
Plz help
Ramkumar
|
|
|
|