|
This is pretty obvious from the error message. Now how about giving some info that will actually help.
only two letters away from being an asset
|
|
|
|
|
Actually I dont know wot information you need.
Basically, Source File: /Lesson/Lessons.aspx suppose to show CustomerReports.rdlc report From the Server, Where Server got SQL SERVER DATABASE, When I will click SHOW button on that time report should be come but If I click .aspx file on that time Im getting error.
Thanks
Sarfarj Ahmed
|
|
|
|
|
Hi
Im Developing file upload /download process. i can upload 600 MB file when i run my application locally. i Can not achieve this on live sever. i updated my web.config file as
<httpRuntime executionTimeout="1800" appRequestQueueLimit="100" maxRequestLength="655600" useFullyQualifiedRedirectUrl="false" enableVersionHeader="true" minFreeThreads="8" minLocalRequestFreeThreads="4" />
r_palanivel83 10:01 4 Jan '06
|
|
|
|
|
I used this n its working fine for me ...pls check
<httpruntime
executiontimeout="90"
maxrequestlength="512000"
usefullyqualifiedredirecturl="false"
minfreethreads="8"
minlocalrequestfreethreads="4"
apprequestqueuelimit="100"
>
|
|
|
|
|
Hi actually i have done this on my web.config but its not working in my live server. is it working locally or online for u?
r_palanivel83 10:01 4 Jan '06
|
|
|
|
|
Its working for me locally as well as online too...
|
|
|
|
|
i m developing a web based application in c#. i just wanted to ask the most basic qn..
how to insert the current date in the database... how shud i provide the option on the webpage.. and wat all is required in the database.
till yet i have created a field named Dt and datatype datetime..
Kunal Piyush
|
|
|
|
|
Hi
You can insert Data in many ways . try to use stored procedures(for good programming).
here i give u some sample code
SqlConnection sqlCon=new SqlConnection("connection string");
sqlCon.Open();
SqlCommand insertCmd = new SqlCommand("stored procedure name", sqlCon);
insertCmd.CommandType = CommandType.StoredProcedure;
//Create parameter and Set values
insertCmd.Parameters.Add(<parameter name>, <DataType>,<size>);
insertCmd.Parameters[<parameter name>].Value = <Value>
insertCmd.ExecuteNonQuery();
sqlCon.Close();
r_palanivel83 10:01 4 Jan '06
|
|
|
|
|
hey
i m sorry if i cudnt clarify myself..
wanted a walthrough ragarding inserting a DATE...
thx..
Kunal Piyush
|
|
|
|
|
DateTime.Now is the .NET method of getting the current date object.
or if your using SQL Server you can use the GETDATE() SQL command directly in your query
|
|
|
|
|
HI
you just use this code
insertCmd.Parameters.Add("@DateVale", SqlDbType.DateTime,10);
insertCmd.Parameters["@DateVale"].Value = DateTime.Today.ToString("MM/dd/yyyy")
r_palanivel83 10:01 4 Jan '06
|
|
|
|
|
r_palanivel83 wrote: insertCmd.Parameters["@DateVale"].Value = DateTime.Today.ToString("MM/dd/yyyy")
Why on Earth would you convert the date to a string?! Just pass it the DateTime object.
|
|
|
|
|
i am now able to add the date to the database.. bu there is on problem.. when i retrive the date when the employee was added.. it will also the time along the date..
i dont want the time to at all get into the database... is it possible.
Kunal Piyush
|
|
|
|
|
A date field also includes the time - I see no reason why you wouldn't want this information available even if you don't want to display it. Use DateTime.ToString(format) to format the output without time.
|
|
|
|
|
a lil bit of problem..
the date would be retrieved from the database... now how shud i fomat it without the time.. and in DD/MM/YYYY format..
to retrieve i m using this line of code
Label1.Text = "" + dread["dt"].ToString();
where dt is the datetime field in the database.
Kunal Piyush
|
|
|
|
|
Kunal P wrote: Label1.Text = "" + dread["dt"].ToString();
If you look in the documentation you'll see the ToString method is overloaded (has several different methods with different parameters). You can feed is a string format like this: (and you don't need the initial blank string - that just creates another object to be cleaned up by the GC)
Label1.Text = dread["dt"].ToString("dd/MM/yyyy");
You'll probably find you need to cast it to a DateTime object first:
Label1.Text = ((DateTime)dread["dt"]).ToString("dd/MM/yyyy");
This documents the possible formating strings:
Custom DateTime Format Strings
|
|
|
|
|
hi
thanks a lot for all the help.. and i am sorry if i am asking way too basic questions.. just started programming..;P
Kunal Piyush
|
|
|
|
|
I am trying to create a base MasterPage class that all the other MasterPages will inherit from. This base class will have some controls so the inheriting MasterPages get those controls automatically.
My problem is that whenever I add controls to my base class it doesnt get added withing the "FORM" tag and I get errors like "Calendar control must be within FORM tag". What am I doing wrong?
this is how I am doing it:
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
string Header = "<div>some text</div>";
this.Controls.Add(new LiteralControl(Header));
}
but when I look at the page it is something like this:
...
<form>
...
...
...
</form>
<div>some text</div>
Any help would be appreicated. Thanks.
|
|
|
|
|
Find the form tag on the master page and add the controls to its collection, not to the master pages' controls collection
only two letters away from being an asset
|
|
|
|
|
Thanks a lot
|
|
|
|
|
our application would need:
1.import data(stock prices) from websites into a database(excel sheets)
2.interfacing excel sheets with the asp application
3.performing manipulations on the data and draw corresponding graphs(line,bar,..)
4.make the application accessible on a network
are asp.net and C# apt for the application?
can someone please help us with relevant code?
regards
ps:please reply asap
besides our email add are:
funwithsiddartha@gmail.com
lovelyritesh_in@yahoo.com
shobhit.samaria@gmail.com
abhinavsharma0507@gmail.com
|
|
|
|
|
I have a formview. When I cancel insert command with e.cancel in OnItemInserting envent, all inputted values in the fromview are gone. Any help is appreciated.
|
|
|
|
|
hi
i am devloping a c# web based appl. i wanted to ask as to how to retreieve data to drop down boxes.
i wanted to update details of employees.. for eg. their state of residence.
though the addition was done by way of drop down box. but now how shud i retrieve the field so that the drop down box shows the state of the employee.
to retrieve to textfields i m using this
fname.Text = "" + dread["FirstName"].ToString();
Kunal Piyush
|
|
|
|
|
fname.Text = dropdownlist.SelectedValue
Not difficult if you read the documentation
only two letters away from being an asset
|
|
|
|
|
i guess this piece of code wud assign the text box the value of the selecte item in the drop down box..
my problem was a bit different, i wanted the value from the database to be reflected in the drop down box..
sorry if i was not able to clarify myself..
Kunal
|
|
|
|