|
sugunavathysubramanian wrote: but i want to redirect "Default.aspx" page is it possible? it is possible send code to me....
Is this in ASP.NET ? To redirect that button click to other page, put that inside another form with action as your required page.
|
|
|
|
|
You can do a cross page postback to redirect with a post.
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 donot know about this .send code to me..
Thanks to You.
|
|
|
|
|
sugunavathysubramanian wrote: send code to me..
I doubt. Why don't you do a search with the hints he given ? Or get a beginer book and work with that.
|
|
|
|
|
Hi,
I have added radion buttons dynamically using RadionButtonList control. am facing small problem. Radio buttons appears with line border. How to remove the border? below is the code I tried but no result.
ListItem li = null;
if (dvForDisplay.Count > 0)
{
rdb = new RadioButton();
rdl = new RadioButtonList();
panelRechargeOptions.Controls.Clear();
for (int i = 0; i < dvForDisplay.Count; i++)
{
li =new ListItem();
li.Value = dvForDisplay[i]["RadioButtonId"].ToString()+i.ToString();
li.Text = dvForDisplay[i]["RadioButtonText"].ToString();
li.Attributes.Add("onClick", "javascript:AmountToCharge('" + li.Text + "','" + strQuoteCurrency + "');");
li.Attributes.CssStyle.Value = BorderStyle.None.ToString();
rdl.Items.Add(li);
rdl.RepeatDirection = RepeatDirection.Horizontal;
rdl.Style.Add(HtmlTextWriterStyle.BorderWidth, "0px");
panelRechargeOptions.Controls.Add(rdl);
}
}
|
|
|
|
|
hi
check this , i hope this will work
li.Attributes.CssStyle.Add("border", "0");
Rajeev Kr. Sharma
VRI Software Pvt.Ltd.
New Delhi India
HumOnline.com
Stay Connected
|
|
|
|
|
hi Rajeev,
its not working.
Thanks,
Chakri.
|
|
|
|
|
Hi All,
In client server application, normally the client talks to the server and gets results.
I want to know how the server can talk back to the client - i know msmq
is one solution - but is there any other solution - how can my server application
can send its latest update to all its client that are connected to it.
say, update the client's user interface from time to time..is there any workaround related code that will keep track of the clients?
Thanks
Rahul Joshi
|
|
|
|
|
You can't do this in web applications. It uses disconnected architecture. A server can only responds to requests it gets. So in web applications, your best bet is to use AJAX. Your page should give periodic requests to server to get the latest updates.
|
|
|
|
|
Hi Navaneeth,
Thanks for the reply.
Then according to you ,either one has to use a kind of timer ,so that a request can be ping to server after a certian peroid of time.But in gmail for any other chat based web application,how do server send a response to a client ?
Example:
"A" want to chat to "B",then it "A" send a request to server and then server send response to "B" means server is broadcasting a response to "B" without "B" making a request to server?
Any Idea for that ?
|
|
|
|
|
HI
guys i am facing a problem, my session time out is set to 2 hours in web.config, my session mode is out of process, but on live users session becomes null before that, i have been monitoring that throuigh the log, i know that in web.config you have to specify the session time out in minutes, kindly reply ASAP, thankx in advance.
|
|
|
|
|
Session gets killed on a number of reasons. Was there a timestamp change on web.config?
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
|
|
|
|
|
no there was no time stamp change in web.config,and no change was made in web.config wither if the change would have been made then it should not kill the session as session mode is out of process, what do you say about it ?
|
|
|
|
|
Hi Friends,
In Javascript i m selecting from date in calendar pop up ,after selecting from date the to date calandar pop up should be increment by 1 day.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
December 7th 2007.Please help me here the code is
if(document.getElementById('txt_from_date').value!='')
{var d=document.getElementById('txt_from_date').value.split('/');
alert(d);
var d1=new Date(parseInt(d[2]), parseInt(d[0])-1, parseInt(d[1]));
var dat=new Date(parseInt(d[2]), parseInt(d[0])-1, parseInt(d[1]));
alert('dat:'+ dat);dat.setDate(d1.getDate()+1);
var m=(dat.getMonth()+1).toString().length==1?'0'+(dat.getMonth()+1).toString():(dat.getMonth()+1).toString();alert('m:'+ m);
var d=dat.getDate().toString().length==1?'0'+dat.getDate().toString():dat.getDate().toString();
alert('d:' +d);
var dt=m+'/'+d+'/'+dat.getYear().toString();
cal19.select(document.forms[0].txt_to_date,'anchor19','MM/dd/yyyy', dt);
return false;
}
|
|
|
|
|
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
|
|
|
|