|
i got it..
int iNoDay=System.DateTime.DaysInMonth(EntTransactionDate.Year, EntTransactionDate.Month);
thank u
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
Hi..
I want to clear the Text of a label Control Before Redericting the page to another page.How should i do it in .Net 2003
I am clearing the Text of the Label in a Button Click event and then I am Redericting the Page
But it is not working. I am Expecting a reply
Thanks
Mahesh.J
|
|
|
|
|
Mahesh.J wrote: I am Expecting a reply
I bet you are...
What do you want to do ? Your button click event will fire on the server side, and the page with the label cleared will not be rendered, because you will redirect before that can happen. Why do you need to clear it first ? It's lost anyhow.... To do this so the user sees it clear, you'd need to use javascript.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hai all,
i would like to know how to use web services..can any one help with
good example or goos link... thanks in advance
with Regards,
Imthiyas Ahamed.A
|
|
|
|
|
www.google.com ?
Seriously, there's a lot of reading on offer, and your question is far too vague for a decent response. Do you know what a web service is, or did you just hear the terminology somewhere ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hai,
i know the concept of webservice.. but still i have not applied in projects..
with Regards,
Imthiyas Ahamed.A
|
|
|
|
|
Get it[^]
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
Well, if you know how it works, then there's no need for you to use it, until it meets the needs of a project.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I've had a random request from one of our techs - basically he wants a web page that will check to see if a webpage on a particular server is available; if it is then redirect the user to that server, otherwise redirect to a different server.
Does anyone have any suggestions about where I might start on this - how can I check for a server timeout?
Cheers
Dave
|
|
|
|
|
the problem is, to wait for a timeout on the server, means your own page will time out. I don't think it can be done, if you redirect to a page, your page has lost control, so it can't then redirect if the first page fails, unless it uses frames or something.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Dear Experts,
I am integrate Payment of Authorize.net into my shopping cart.
I have a code lines:
string url = "https://certification.authorize.net/gateway/transact.dll";
StringBuilder strBuilder = new StringBuilder();
strBuilder.Append("x_login=" + login_ID + "&");//I have already login_ID
strBuilder.Append("x_tran_key=Tran_Key&"); //I don't know
strBuilder.Append("x_method=CC&");
strBuilder.Append("x_type=AUTH_CAPTURE&");
strBuilder.Append("x_amount=1.00&");
strBuilder.Append("x_delim_data=true&");
strBuilder.Append("x_delim_char=|&");
strBuilder.Append("x_relay_response=false&");
strBuilder.Append("x_card_num=" + card_num +"&");
strBuilder.Append("x_exp_date=092008&");
strBuilder.Append("x_test_request=true&");
strBuilder.Append("x_version=3.1");
string strPost = strBuilder.ToString();
StreamWriter myWriter = null;
HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create(url);
objRequest.Method = "POST";
objRequest.ContentLength = strPost.Length;
objRequest.ContentType = "application/x-www-form-urlencoded";
try
{
myWriter = new StreamWriter(objRequest.GetRequestStream());
myWriter.Write(strPost);
}
catch (Exception e)
{
return e.Message;
}
finally
{
myWriter.Close();
}
HttpWebResponse objResponse = (HttpWebResponse)objRequest.GetResponse();
using (StreamReader sr = new StreamReader(objResponse.GetResponseStream()))
{
result = sr.ReadToEnd();
// Close and clean up the StreamReader
sr.Close();
}
return result;
All requests are failed because i have not know x_tran_key (Transaction Key).
How can i get the Transaction Key?
Thank in advance,
Kiet
vtkiet05
|
|
|
|
|
Why don't you look into the authorize.net website. I think it is well documented there
|
|
|
|
|
Yes, i have already looked. But i have not find any the way
vtkiet05
|
|
|
|
|
As someone else said, their website is far more likely to help, I doubt most of us have ever used authorize.net, so how can we help you ?
I would guess that the transaction key is the thing you need to get to be authorised to use the site, but I really have no idea.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Im filling dataview on page load event, if there's too much data say around 2500 + rows all the buttons on the page doesn't seem to be working. The give message;
"Internet Explorer cannot display the webpage"
any idea
|
|
|
|
|
Can anybody let me know how to include the flash file in a project except the <object> and <embed /> tag or one can say through c# code on button click
Thnx in advance
|
|
|
|
|
The Knowledge wrote: can say through c# code on button click
I suggest you to generate those tags dynamically on button click event.
|
|
|
|
|
Hai friends,
I am new to ASP.NET and i need coding for individual chat using c#...
velmurugan
|
|
|
|
|
|
Tell you what. While I'm knocking that up for you, would you mind popping round and tiling the bathroom, redoing the electricals and digging the garden.
|
|
|
|
|
LOL
I think Rex has taken that site down, BTW.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: I think Rex has taken that site down, BTW.
No, the site's still there.
|
|
|
|
|
Well, assuming we had it, and gave it to you, that would not be coding, now would it ? Why don't you buy a book, work through it, and ask specific questions as you work through this task.
Or try google, and find some source code to work with.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have a user control built with a checkbox list as part of it. It was built by someoneelse and i am just attempting to use it. I want to be able to handle the checkboxlist selectedindexchanged event when using the control as part of another webpage. Can someone help me as to how I should do this please? Its got me a little confused. I have set up a property to return the checkboxlist as an object but don't know how to set it up to get the event.
i have snipped and edited down the whole control and it is detailed below. Sorry if its a lot of code but better that you have all the info.
<%@ Control Language="VB" ClassName="ctlDropDownCheckBox" %>
<script runat="server">
Protected Width As Long = 150
Public ReadOnly Property List() As CheckBoxList
Get
List = chkResults
End Get
End Property
</script>
<div style="width:<%= Width %>px;">
<div id="<%= Me.ClientID %>" style="position:relative;">
<div class="uiSelectTopBox"><span id="<%= Me.ClientID & Me.ClientIDSeparator & "Count" %>"></span><input type="button" onclick="javascript:<%= Me.ClientID %>_Focus();" onfocus="javascript:<%= Me.ClientID %>_Update();" onblur="javascript:<%= Me.ClientID %>_Update();" style="position:absolute;right:0px;top:0px;bottom:0px;border:1px solid WindowFrame;" value=" ... " /></div>
<div id="<%= Me.ClientID & Me.ClientIDSeparator & "Box" %>" class="uiSelectBox" style="display:none;" onclick="javascript:<%= Me.ClientID %>_Update();" ondatabinding="javascript:alert('100');" >
<asp:CheckBoxList ID="chkResults" runat="server" BorderStyle="none" OnSelectedIndexChanged="chkResults_SelectedIndexChanged">
</asp:CheckBoxList>
</div>
</div>
</div>
Cheers
Ian
|
|
|
|
|
You don't want to return the checkbox as a property. Use a delegate to define an event when the check changes, that you can then subscribe to in the containing page, and that gets called when the check changed gets called inside the control.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|