|
i didn't understand where u got held up..
Is the input button is on the server side? if so then in the post back check the drop down value .. if it is Credit Card then redirect it to payment gateway..
.....
|
|
|
|
|
Two ways
1 - can you access the form tag and change it's action via javascript ?
2 - why not just redirect in your code behind if the dropdown has that value ?
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 )
|
|
|
|
|
If possible just put an onselectedchange event for your dd in your code behind and the redirect in there
|
|
|
|
|
can we enter text into list box as like we enter into text box ?
|
|
|
|
|
No. This is basic HTML, they don't support that.
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 use the Login control a sign-in.
Now I need to sign-out.
But I do not want to use the LoginStatus control.
I have a button named ButtonExit and Text is sign-out.
protected void ButtonExit_Click(object sender, EventArgs e)
{
HttpContext.Current.Response.Cookies.Clear();
FormsAuthentication.SignOut();
Session.Clear();
Session.Abandon();
}
this event handler must implement two will be out.
why?
thanks.
|
|
|
|
|
jason_mf wrote: his event handler must implement two will be out.
What does tis mean ?
I found the login control to be next to useless.
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 am using -->
i am using textEditor.but i donot know how to get text string within
tag .if you know the answer replay to me......(.net with c#)
|
|
|
|
|
If you put runat="server" then it will be a server control and accessible in your code behind by it's Id. However the client side ID may change as a result.
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 )
|
|
|
|
|
|
Hiii...
I am receiving this error :--->
Server encountered an internal error. For more information, turn on customErrors in the server's .config file.
Server stack trace:
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
1) After googling, I found that customErrors mode="off can help.
Presently its True on Server side. Like this
RemotingConfiguration.CustomErrorsEnabled(true);
2) I am using .Net 1.1 on the server side and .Net 2.0 on client side.
3) Not getting this problem frequently. It has only 5% chances.
4) When I debugging found some interesting stuff:
class One
{
public string m_sResult = null;
public string GetInfo(string sID)
{
try
{
if(OnRequested != null)
OnRequested(sID);
return m_sResult;
}
catch(Exception ex)
{
WriteLog(“ “);
}
}
}
class Two{
void OnRequestedHandler(string sID)
{
try
{
One.m_sReult = "Done";
}
catch(Exception ex)
{
One.m_sReult = ex.message;
}
}
}
From the client side, I am calling One.GetInfo() method.
a) Event OnRequested(sID) raised and handled by class Two and One.m_sReult is set as "Done".
b) But on client side it returns NULL and also writes Log "Server encountered and internal....." on Server side.
So suggest me, what I should do to solve this problem.
I should use customErrors mode="off for better understanding?
I would appreciate any help or suggestions that anyone can provide.
Thank you.
Sidh
|
|
|
|
|
I have three buttons in updatepanel. on mouseover of buttons i want to make different webusercontrols visible and change back colors. for this i need to execute code behind method. how to do that.
plz help
|
|
|
|
|
What i want is: i have three collapsiblepanels, when mouse is over one of them that
1. shall expand and other two shall collapse.
2. when mouse is out of all the three then only the collapsiblepanel on which mouse was over last time shall remain expanded.
3. expanding and collapsing shall be slow.
Thanx a lot
|
|
|
|
|
Hi,
I want to pass client sid value to server side. when I click radio button it calls javascript function where am getting radio button value and displaying in label. now when I click on Next button I wanted that radion button value. am adding radion buttons dynamically..
Can any one guide me.. am using asp.net 2.0 and c#.
Thanks
|
|
|
|
|
If the radio button is c# then just get the value as so
else if (RadioButtonList_update_type.SelectedValue == "something")
|
|
|
|
|
Hi,
am adding radio button dynamically. so on serverside Radiobuttonlist.selecteditem.value is not working. it is showing null ...
Can you tell me how to pass values from client side to server side.
Thanks
|
|
|
|
|
If yuo're adding them dynamically, the ids of the checked ones will be in the form object on postback. There will be no viewstate probably unless they are being added pruior to pageload.
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 )
|
|
|
|
|
If radio button is added dynamically, probably you can retrieve it from the Request.Params[]..the other way is that have a server side hidden field at first and in the javascript push the value into the hidden field and retrieve it in the post back..
.....
|
|
|
|
|
Hello all
I am working on a application in which user takes a survey.Each survey contain some element and element contain question. When user taking the survey then first i want to display Element name and below that question in that element like as follow.
Element 1
- Question 1
- Question 2
- Question 3
Element 3
- Question 1
- Question 2
Each survey can contain number of element and each element contain number of question. I want to display 10 question on each page next question on next page.
How could i do that. Each survey contain 1 to 100 element 1 and each element can contain 1 to 100 question.How could i do that?
My Element (Subcategory structure is as follow)
<br />
subcatid subcatname catid addeddate and editeddate<br />
<br />
and structure of question table is as follow<br />
<br />
qid catid question subcatid addeddate editeddate<br />
Thanks
Rahul
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
I find a repeater is the best way to render two levels of data, but you can use any data bound control you like, just bind to the inner data in the row bound event of the outer one.
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 )
|
|
|
|
|
Can you just tell me little bit logic so that i can start. I am retrieving all the question, element id from database using survey id.I want to use datalist control?
Thanks
Rahul
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
I would return a dictionary, with the keys being the questions and the values being the list of answers. I'd store it as a member variable. Then I'd bind to the keys collection, and for each key, I'd find an inner bound control that renders the answers, and bind to the matching list of answers.
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 )
|
|
|
|
|
Ok thanks i will try this..
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
I am using membershipprovider for login.When i tried to get the password of a user password retrival is not set error occurs .How can i get the password of a selected user so that i can change the password of the user using membership.changepassword method.Please help me to solve this error.
|
|
|
|