|
|
What question are you answering? Your answer has absolutely nothing to do with the question, and is merely spamming the site to link to an external site. Consequently, I have voted to remove your answer and your account.
|
|
|
|
|
Just a quick question.
Is this test logical or possible in ASP.NET? If so, under what scenario(s) would you
expect to see such a positive result of the test.
Thanks
if (Request.HttpMethod == "POST" && !IsPostBack)
{...}
Just because we can; does not mean we should.
|
|
|
|
|
I ain't no web-programmer, but sounds like homework, and I know where the documentation is, so shouldn't be too hard to come up with something. Let's try.
HttpRequest.HttpMethod[^]Gets the HTTP data transfer method (such as GET, POST, or HEAD) used by the client. Docs also state it's a String , so the first part of the evaluation looks correct. The English implies that the Request was a POST action on the server.
IsPostBack looks like a property, not a method. Guess it must be part of the Page[^]. Gets a value that indicates whether the page is being rendered for the first time or is being loaded in response to a postback. Ah, interesting. So, the block would be executed if:
- It's being POST-ed
- It's not a postback (meaning, the page is being rendered the first time)
The action is determined in the Form ;
<form name="input" action="html_form_action.asp" method="post"> ..and that is why I kinda like MSDN. Hope this helps a bit
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Thanks for the reply, not quite the answer I was hoping for, but thanks anyway.
p.s. its not "homework" in the traditional sense but rather me attempting to expand my knowledge on my own time.
Just because we can; does not mean we should.
|
|
|
|
|
KaptinKrunch wrote: me attempting to expand my knowledge
Good to hear that there are still people learning voluntarily
KaptinKrunch wrote: not quite the answer I was hoping for, but thanks anyway.
'twas a bit rude, but it seemed like a good idea to explain how I reached the conclusion on what the code "theoretically" would do. If you have suggestions on how my answers would be improved, by all means, hit me
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
|
The base class includes the field 'CrystalReportViewer1', but its type (CrystalDecisions.Web.CrystalReportViewer) is not compatible with the type of control (CrystalDecisions.Web.CrystalReportViewer).
I am getting this error.What is the problem please sort it out?
|
|
|
|
|
This generally happens when the viewer might be of the older version. Customize the toolbox and add the viewer of version you need.
Look at the possible reasons discussed here: Crystal Reports Problem in VS 2010[^]
|
|
|
|
|
how to show data in gridview
actually i want to show datain table view where show like this
img1 img2 img3
price price price
des des des
img4 img5 img6
price price price
des des des
so on...
thanks
Regards
Umesh Daiya
|
|
|
|
|
I would look at template fields in the GridView to achieve your desired view.
Just because we can; does not mean we should.
|
|
|
|
|
how add tab contron in my web application?
imp
|
|
|
|
|
Try this[^].
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
|
i want to add you on skype
could you please give me yours skype id
|
|
|
|
|
Firstly, create new class name'myconstant'
public static string Format_ decimal= "0.00";
now you will create new class name 'myUtility'
public static string Format_ThousandSeparator(Decimal Val)
if (Val == 0) return myconstant.Format_decimal;
string l_val = Val.ToString(myconstant.Format_decimal);
if (l_val.Length < 5) return l_val;
return Val != 0 ? string.Format("{0:0,0.00}", Val) : myconstant.Format_decimal;
now you can this method
string mydec = myUtility.Format_ThousandSeparator(Convert.toDecimal(Textbox.Text));
|
|
|
|
|
This is a question answer forum and not the right location to place coding tricks.
Create a Tip / Trick instead[^].
|
|
|
|
|
Hi,
I am trying to connect with analysis services (SSAS) using VS2005 code behind with Microsoft.AnalysisServices.Xmla.XmlaClient.Connect(server name/IP) and its working if both web server and SSAS server are in same machine, but when I am trying to access remote server to connect with SSAS its giving me "A connection cannot be made. Ensure that the server is running.".
I think its because SSAS only works with windows authentication.
My requirement is to connect with SSAS with VS2005 code behind and after that create new SSAS DB using XMLA script, also I have to process the ASDB.
Does anyone have any thoughts on this??
Thanks,
Krishna
|
|
|
|
|
Hi,
I have three tables, Retro, Employer and Employer_Address, Retro is having employer id as foreign key. And for one retro id (345) there are 11 different Employers associated.
When I wrote the following query it is retieving 11 employer objects but every object is same (means all 11 objects are filled with employer 0 only, actually they should be eomployer0 to employer10).
Please help me with resolving this please.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
You missed out the query.
|
|
|
|
|
Sorry I wrote the query now
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
As Pete mentioned, you left out the query. If you could provide the query that you are using, it can help people help you out
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Hey sorry guys, I was going for team lunch I was in hurry sorry for that here is my query I want to get all the references as they are in database, I dont know why am I getting it like that.
Dim rts As List(Of retro) = (From rt In context.retroes.Include("employer") Where rt.retro_id.Equals(retro_id)).ToList()
Here how they are referenced in database
Retro Id Employer Account No
----------------------------------
345 12345000
345 12345001
345 12345002
345 12345003
345 12345004
345 12345005
345 12345006
345 12345007
345 12345008
345 12345009
345 12345010
But it is giving all 11 references filled with only 12345000
Please help me in resolving it.
Thanks in advance.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
indian143 wrote: Where rt.retro_id.Equals(retro_id)).ToList()
Wouldn't this just point back to the first record? This is just my first glance at the problem. Shouldn't there be some join between the retro table and the employer table, specifically with the retro_id field?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
I have page that displays the content either in english or french. Every thing works fine with english, but when the french text is displayed I am getting script errors (expected ')'...).
I have tried the following, which did not work
CodePage="65001" (in the page directive) and
<% Response.Charset = "utf-8"; %>
Cheers
CNU
|
|
|
|