|
senthilsstil wrote: I m getting error
What is the error?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi Vasudevan Deepak Kumar,
When i select August 2008 7th,september,october and november in from date calandar popup,in to date calandar popup its getting selected December 2007 8th.
|
|
|
|
|
I guess this means your third party calendar control needs to be configured for non US data format ?
senthilsstil wrote: var d1=new Date(parseInt(d[2]), parseInt(d[0])-1, parseInt(d[1]));
Surely, swapping the numbers in this line will fix your problem ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
senthilsstil wrote: I m getting error in while i selecting from date as august 2008 7 that is 08/07/2008 the to date calandar popup showing
Try installing firebug and debug the error.
|
|
|
|
|
Hi..
I'm Using Asp.Net with C#..
I want to Generate HTML Reports in C# with XML Data..
This is my XML Data(xml_Data.xml)
<Page_Details>
<Log Page="show_Page.aspx" Time="07:05:07:32636" Type="Master" ID="1" />
<Log Page="show_Page.aspx" Time="08:10:20:32636" Type="Master" ID="2" />
<Log Page="show_Page.aspx" Time="09:15:20:32636" Type="Master" ID="1"/>
<Log Page="show_Page.aspx" Time="05:20:45:32636" Type="Master" ID="3"/>
</Page_Details>
Please give me the Suggestions in doing this..
Thank You..
|
|
|
|
|
You can have simple XSL to apply a transformation and draft out elegant reports, as required by the user. Isn't it?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Thank You Mr.Deepak Kumar for giving me the Reply..
What I want is to Generate the HTML REPORTS with the XML Data in C#.. the Data could be Changed(Either Some Data will be Added or Deleted or Edited--- Updated Data).. So with this I want to Generate the HTML Reports in C#..
How to Do this..
Thank You..
|
|
|
|
|
Hi,
I am trying to add dynamic Radio buttons to 4 panel controls in a aspx.
one panel control is on top adding dynamic radio buttons of recharge options. remaining panel controls is on below, containig payment options.am adding these options dynamically. but my problem is only one radio button is selected. but i want to select radion button in top panel control and select only one radion button in remainig 3 panels(payment options). pls see the code below.
// Recharge Options panel control. Have to select one radio button.
private void LoadRechargeOptions()
{
string strPath = Server.MapPath(CommonUIConstants.LANGUAGE_XML_FILE_FOLDER_NAME) + Path.DirectorySeparatorChar + CommonUIConstants.RECHARGE_OPTIONS;
DataSet dsRechargeOptions = UtilityUIFunctions.GetPaymentMethodList(strPath);
DataView dvForDisplay = dsRechargeOptions.Tables[0].DefaultView;
string strCountryName = GetCountryName();
dvForDisplay.RowFilter = CommonUIConstants.COUNTRYNAME + "='" + strCountryName + "'";
HtmlInputRadioButton rdb = null;
Label lbl = null;
if (dvForDisplay.Count > 0)
{
for (int i = 0; i < dvForDisplay.Count; i++)
{
rdb = new HtmlInputRadioButton();
lbl = new Label();
rdb.ID = dvForDisplay[i]["RadioButtonId"].ToString();
rdb.Value = dvForDisplay[i]["RadioButtonText"].ToString();
lbl.Text = dvForDisplay[i]["RadioButtonText"].ToString();
rdb.Style.Add("border", "0px");
rdb.Attributes.Add("onClick", "javascript:AmountToCharge('" + rdb.Value + "','" + strQuoteCurrency + "');");
panelRechargeOptions.Controls.Add(rdb);
panelRechargeOptions.Controls.Add(lbl);
}
}
// Payment options panel controls. here there are 3 panel controls. in these 3 panel controls have to select only one radio button.
private void LoadPaymentMethods()
{
string strPath = Server.MapPath(CommonUIConstants.LANGUAGE_XML_FILE_FOLDER_NAME) + Path.DirectorySeparatorChar + CommonUIConstants.PAYMENT_METHODS;
DataSet dsPaymentMethods = UtilityUIFunctions.GetPaymentMethodList(strPath);
DataView dvForDisplay = dsPaymentMethods.Tables[0].DefaultView;
string strCountryName = GetCountryName();
dvForDisplay.RowFilter = CommonUIConstants.COUNTRYNAME + "='" + strCountryName + "'";
HtmlInputRadioButton rdb = null;
System.Web.UI.WebControls.Image imgasp = null;
DropDownList ddlLocalCards = new DropDownList();
string CardType = null;
string CardName = null;
// System.Drawing.Image img = null;
if (dvForDisplay.Count > 0)
{
panelInternational.Visible = true;
double dblTax = 0.0;
for (int i = 0; i < dvForDisplay.Count; i++)
{
rdb = new HtmlInputRadioButton();
imgasp = new System.Web.UI.WebControls.Image();
CardName = dvForDisplay[i]["CardName"].ToString();
CardType = dvForDisplay[i]["CardType"].ToString();
rdb.ID = dvForDisplay[i]["RadioButtonId"].ToString();
dblTax = Convert.ToDouble(dvForDisplay[i]["LocalTax"].ToString());
rdb.Value = dvForDisplay[i]["PaymentGateway"].ToString() + ":" + i + "dblTax=" + dblTax;
// Javascript binding to fire click event for getting payment gateway and tax
// rdb.Attributes.Add("onClick", "javascript:CaleculateTax('" + rdb.ID + "','" + dblTax + "','" + strQuoteCurrency + "');");
rdb.Style.Add("border", "0px");
imgasp.ImageUrl = Server.MapPath("images" + Path.DirectorySeparatorChar + dvForDisplay[i]["ImageUrl"].ToString());
if (CardType.CompareTo(CommonUIConstants.INTERNATIONAL_CARD) == 0
&& CardName.CompareTo(CommonUIConstants.CLICKANDBUY) != 0
&& CardName.CompareTo(CommonUIConstants.ECHECK) != 0)
{
panelInternational.Controls.Add(rdb);
panelInternational.Controls.Add(imgasp);
}
else if (CardType.CompareTo(CommonUIConstants.LOCAL_CARD) == 0)
{
ddlLocalCards.Items.Add(CardName);
}
else
{
panelGateway.Controls.Add(rdb);
panelGateway.Controls.Add(imgasp);
}
}
if (strCountryName.CompareTo(CommonUIConstants.BRAZILCOUNTRY) == 0)
{
rdb = new HtmlInputRadioButton();
rdb.ID = "rdbLocal";
rdb.Style.Add("border", "0px");
panelLocal.Controls.Add(rdb);
panelLocal.Controls.Add(ddlLocalCards);
rdb.Attributes.Add("onClick", "javascript:DropDownVisibility('" + rdb.ID + "','" + dblTax + "','" + strQuoteCurrency + "');");
}
else
{
panelLocal.Visible = false;
}
}
}
please help me. totally I have to select two radio buttons. one is rechrge options and another in Payment options.
Thanks.
|
|
|
|
|
Hello...
I've a div that displays some information but whenever i click on my submit button then this div becomes disappear but i still want to display it. And also i've set runat="server" at my div and following code in my
.cs file but it is throwing an error oject required
HtmlControl myControl = (HtmlControl)this.FindControl("divIP1");
myControl.Style["display"] = "block";
|
|
|
|
|
Well, calling find control and assuming it doesn't return null, is always a bug.
You can just use divIP1.Style["display"] = "block"; if it's a server control.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I've put up this code in .CSfile..
Again throwing Same error...Object required
|
|
|
|
|
Then you must not have a server control of that name.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Html Code of DIV...
<div id="divIP1" runat="server" style="display:none;text-align:left;padding-left:0px;" > ........
Then Server Side Code here...
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
string id = GridView1.DataKeys[e.RowIndex].Value.ToString();
DataUtility dUT = new DataUtility();
string strsql = "Delete FeedBack Where Active=1 and ID='" + id.ToString() + "'";
int result = dUT.ExecuteSql(strsql);
bindDataGrid();
bindDataGrid1();
divIP1.Style["Display"] = "Visible";
}
|
|
|
|
|
Well, that is plain not going to work anyhow, because attributes are case sensitive.
But, I would expect it to work otherwise. Not that I ever do this, there is obviously a wrinkle I don't know about. Did you try using a Panel or PlaceHolder instead of your div ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Yes i've tried panel and placeholder instead of div..
i am sending complete code to u.....
JS code......
var openDiv='';
function divShowHide(myDiv,myTD)
{
if(openDiv=='')
{
document.getElementById(myDiv).style.display='block';
openDiv=myDiv;
}
else
{
document.getElementById(openDiv).style.display='none';
document.getElementById(myDiv).style.display='block';
openDiv=myDiv;
}
}
Html Code here..............I am calling on Span..
<table id="tableSearch1" cellpadding="0" cellspacing="0" style="width:100%">
<tr class="trClass" >
<td class="tdClass" align="center">
<span class="spanA" onclick="divShowHide('divIP1','TD1');">
Pending Record
</span>
...Div Html Code here...
<div id="divIP1" style="display:none;text-align:left;padding-left:0px;" runat=server >
<table class="tableSearch2" style="width:100%;" cellpadding="2" runat="server">
<tr>
<td align="center">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="ElearningDataGridBody"
DataKeyNames="ID" GridLines="Horizontal" OnRowDeleting="GridView1_RowDeleting"
OnRowEditing="GridView1_RowEditing" Width="1000px" OnRowDataBound="GridView1_RowDataBound">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox ID="CheckBox1" runat="server" />
</ItemTemplate>
<HeaderTemplate>
<asp:CheckBox ID="chkSelectAll" runat="server" />
</HeaderTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Name" HeaderText="Name" />
<asp:BoundField DataField="Email" HeaderText="Email" />
<asp:BoundField DataField="Date" HeaderText="Date" />
<asp:BoundField DataField="Comment" HeaderText="Comment" />
<asp:BoundField DataField="Status" HeaderText="Status" />
<asp:TemplateField HeaderText="Show Comment">
<ItemTemplate>
<asp:LinkButton ID="linkShow" runat="server" CommandName="Edit" OnClientClick="return confirm('Do You Really Want To Show This Record');">Show</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Delete">
<ItemTemplate>
<asp:LinkButton ID="linkDelete" runat="server" CommandName="Delete" OnClientClick="return confirm('Do You Really Want To Delete This Record');">Delete</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<HeaderStyle CssClass="ElearningDataGridHeaderFont" />
</asp:GridView>
</td></tr>
<tr>
<td height="5px"></td></tr>
<tr>
<td align="center">
<asp:Button ID="cmdShow" runat="server" TabIndex="9" Text="Show" OnClick="cmdShow_Click" /> <asp:Button
ID="cmdDelete" runat="server" TabIndex="8" Text="Delete" OnClick="cmdDelete_Click" />
</td>
</tr>
</table>
</div>
.cs code here
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
string id = GridView1.DataKeys[e.RowIndex].Value.ToString();
DataUtility dUT = new DataUtility();
string strsql = "Delete FeedBack Where Active=1 and ID='" + id.ToString() + "'";
int result = dUT.ExecuteSql(strsql);
bindDataGrid();
bindDataGrid1();
divIP1.Style["Display"] = "Visible";
}
Actually i want to do..when we dell the record hen show div..Because i have used 2Div in form..
and i want to show record on click event of button..
|
|
|
|
|
If you use a placeholder, you can set the visibility in your code behind. Tis code still won't work because you're using Display and Visible, when they are lower case. I doubt Visible is a correct value either.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
how should i display tool tip in asp.net
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!
|
|
|
|
|
Hi,
Use java script like this:
<br />
<script type="text/javascript"><br />
var horizontal_offset="9px"
<br />
var vertical_offset="0"
var ie=document.all<br />
var ns6=document.getElementById&&!document.all<br />
<br />
function getposOffset(what, offsettype){<br />
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;<br />
var parentEl=what.offsetParent;<br />
while (parentEl!=null){<br />
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;<br />
parentEl=parentEl.offsetParent;<br />
}<br />
return totaloffset;<br />
}<br />
<br />
function iecompattest(){<br />
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body<br />
}<br />
<br />
function clearbrowseredge(obj, whichedge){<br />
var edgeoffset=(whichedge=="rightedge")? parseInt(horizontal_offset)*-1 : parseInt(vertical_offset)*-1<br />
if (whichedge=="rightedge"){<br />
var windowedge=ie && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-30 : window.pageXOffset+window.innerWidth-40<br />
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth<br />
if (windowedge-dropmenuobj.x > dropmenuobj.contentmeasure)<br />
{<br />
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth+parseInt(horizontal_offset)<br />
}<br />
}<br />
else{<br />
var windowedge=ie && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18<br />
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight<br />
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)<br />
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight<br />
}<br />
return edgeoffset<br />
}<br />
<br />
function showhint(menucontents, obj, e, tipwidth){<br />
if ((ie||ns6) && document.getElementById("hintbox")){<br />
dropmenuobj=document.getElementById("hintbox")<br />
dropmenuobj.innerHTML=menucontents<br />
dropmenuobj.style.left=dropmenuobj.style.top=-500<br />
if (tipwidth!=""){<br />
dropmenuobj.widthobj=dropmenuobj.style<br />
dropmenuobj.widthobj.width=tipwidth<br />
}<br />
dropmenuobj.x=getposOffset(obj, "left")<br />
dropmenuobj.y=getposOffset(obj, "top")<br />
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+"px"<br />
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"<br />
dropmenuobj.style.visibility="visible"<br />
obj.onblur=hidetip<br />
}<br />
}<br />
<br />
function hidetip(e){<br />
dropmenuobj.style.visibility="hidden"<br />
dropmenuobj.style.left="-500px"<br />
}<br />
<br />
function createhintbox(){<br />
var divblock=document.createElement("div")<br />
divblock.setAttribute("id", "hintbox")<br />
document.body.appendChild(divblock)<br />
}<br />
<br />
if (window.addEventListener)<br />
window.addEventListener("load", createhintbox, false)<br />
else if (window.attachEvent)<br />
window.attachEvent("onload", createhintbox)<br />
else if (document.getElementById)<br />
window.onload=createhintbox<br />
<br />
</script><br />
<br />
<br />
<asp:textbox id="txtTest" runat="server" onfocus="showhint('This ia a test', this, event, '180px')"></asp:textbox><br />
<br />
|
|
|
|
|
Two ways:
1) The TITLE attribute of the HTML element itself shows a rudimentary tooltip.
2) Overlib library: www.bosrup.com/web/overlib/[^]
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi friends
I want my page to appear in Center for this in the body tag i have written
style = "left: 10%; position: absolute; top: 0%; height: 10%;
its coming in the Center but bottom scrollbar is appearing and with a wide are to navigate
I mean user can drag the bottom scrollbar to a wider distance
How to make page to appear in Center and Bottom scroll bar must not appear if appears then it must be not drag-able to much extent
Thank You
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
ALT + F4 wrote: If You win You need not Explain............
But If You Loose You Should not be there to Explain......
If you need some answer you have to explain the problem properly.
*jaans
|
|
|
|
|
in my application i have one textbox ,button and a drop down box.when i am clicking the button it will browse the database and will appear in the text box.i have done that.now what i want is,to fetch the database tables from the browsed database and to list in the dropdown box.
the query for that is
select table_name, column_name, data_type, character_maximum_length, is_nullable from information_schema.columns where table_name in (select name from sysobjects where xtype='U') order by table_name
but i want the c# code for that.where do i put this query?
|
|
|
|
|
hai,
currently i m using ASP.NET with C# (.net 2005, 2.0 framework).
DataColumnCollection t1 = row1.Tables[0].Columns;
the t1 consist of 5 values and i want to rename it (i.e, if t1 contains "Sample1", then i want to change it as "rename_sample1".
how to achieve it? - KARAN
|
|
|
|
|
I want to create a contact page using .Net? I tryed some code but the mail is coming in mailroot/queue folder. Is there any setting???
|
|
|
|
|
I have no idea what you're trying to do. If you send the mail using code, it will go where you send it. And, if you use a mailto: tag, it will go to the address you specify, via the client's mail program.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|