|
Navaneeth. wrote: Thanks, But I won't be able to do this, because I can't predefine the number of columns that I have on the grid
Why? I've got to be honest and say I can't really see where you're trying to go with this, as a developer surely you know have some awareness of the base objects you're dealing with. It just appears you're trying to be too generic in your approach and it'll probably mean more work and far less re-usability in the long run. Can you explain why you need an almost entirely dynamic DataGrid/GridView?
I'd assume that as per dynamic controls on a page what you need to do is recreate your dynamic columns and their controls on every postback and if that doesn't work, what you're attempting probably isn't supported.
Rhys
"The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it"
They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance."
Terry Pratchett
|
|
|
|
|
Hi,
i know the month .
From this how i find the number of days in that month
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
DateTime.DaysInMonth ?
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 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.
|
|
|
|