|
hi
how can i define a big field in sql that could keep a text with for example 10,000 characters?
thank you.
nobody help you...
you have to help you yourself
and this is success way.
|
|
|
|
|
Use text or ntext data type for the field.
|
|
|
|
|
oh no my friend's
you can't define a ntext or text field with more 4000 bytes
nobody help you...
you have to help you yourself
and this is success way.
|
|
|
|
|
mr.mohsen wrote: you can't define a ntext or text field with more 4000 bytes
You are mistaken.
The limit for text is 2147483647 characters.
The limit for ntext is 1073741823 characters.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Yes you can. Check the documentation[^].
mr.mohsen wrote: nobody help you...
you have to help you yourself
and this is success way.
Kind of ironic, seeing as you didn't bother to check yourself before posting.
Paul Marfleet
|
|
|
|
|
How can we fully disable the autocomplete feature of browsers for our site ? I mean how to prevent browsers from remembering textbox values.
|
|
|
|
|
When a .net web site starts up, does it load the web.config into memory and just refer to/use that copy, or does it always reload it from disk to retrieve the desired setting?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I believe it uses a file watcher to notice when the file is changed, and thus reload it.
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 )
|
|
|
|
|
How does one setup an encrypted web.config in the IDE?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
|
Dear.....
i have a page in asp.net. there is a dropdownlist and there are many buttons for other other work like calander selection etc.
but there is a button for submition of selected item from the dropdownlist. problem is that, first i select one items from dropdownlist and when i press any button then page goes to postback and selected item of the dropdownlist goes to initial position. so what can i do for that???
Please help me...
Adv thanks....
yogesh
|
|
|
|
|
This gets asked at least once a week. Your drop down is data bound, and you're binding to it in your page load. When you data bind, your selection is lost, as the old data is lost, even if it was the same. Put the code in a !IsPostback block so it only populates the first time the page loads.
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 )
|
|
|
|
|
you have to move a part of your code that initial your dropdownlist in page_load event of the page to a if block
if(!IsPostBack)
{
//your code...for initial of dropdownlist
}
nobody help you...
you have to help you yourself
and this is success way.
|
|
|
|
|
hi
try by using autopostback= true in properties window for the dropdownlist box.
karthi
|
|
|
|
|
Hi,
I'm working on a project that would work like this:
A textbox would be on screen and once someone enters the name of a programmer in the textbox and hits the submit button, the jobs that they have to complete will display in a table. The table will have their job number, the description, and then would show the days of the week (monday, tuesday, etc.) and then the column after those would show the estimated hours for the project, then the number of hours they already completed and the last column would be the estimated hours minus the actual hours for the "hours left". Of course, any hours they added in the fields for the different days of the week would be added to the actual hours. So, for instance, the estimated hours for project was 120 hours but the actual number of hours they took to complete the project was 100 hours (total hours). Then the hours left would be 20 so that they finished the project 20 hours ahead of schedule.
I'm trying to use a Gridview control for the data but they would have to edit line by line and I would like to have them just enter the numbers in the fields for the days of the week and hit the submit button the update everything in their list of jobs. This sounds similar to a shopping cart although I've never built one of those either.
There is a table that has the programmer, jobs, estimated hours, actual hours. I don't have anything for the days of the week so I suppose I'll have to make a new table for that. My question is, is the Gridview control useful or is there another way?
I hope I was detailed enough in this.
|
|
|
|
|
hi,
I've created a login page and I added a link button on that page.
Due to authentication, I can't redirect to another page when I click on that link button until after I login.
here's what I wrote in the web.config file:
<authentication mode="Forms">
<forms loginurl="login.aspx" protection="All" defaulturl="login.aspx">
<authorization>
<deny users="?">
|
|
|
|
|
You have to set defaultUrl as the page that you redirect to.
Suppose that you redirect to index.aspx
<br />
<forms loginUrl="login.aspx" protection="All" defaultUrl="index.aspx"></forms><br />
|
|
|
|
|
Hi All,
I m working with fileupload server control.
and using this uploaded file(text in the fileupload) for further processing.
but this uploaded file gets cleared while postback occurs.
how can persist filename in the uploadfile server control when postback occurs?
Please HELP.
Thanks,
In Advance.
Tejesh Kamble.
|
|
|
|
|
Tejesh Kamble wrote: how can persist filename in the uploadfile server control when postback occurs?
It's not possible. It's the way FileUpload control has designed
|
|
|
|
|
Thanks for your valuable feedback and reply.
Tejesh Kamble.
|
|
|
|
|
Okay, so here's the progression of events...
1) I built an ASP.NET application last year in Visual Studio 2005 complete with a series of reports, all created in the built-in version of Crystal Reports.
2) Everything worked great for over a year. The reports functioned well and printed on demand.
3) I got a new development box with Vista on it, installed VS2005 and added SP1 (as well as the vista hotfix). That same day, I also applied Server 2003 Service Pack 2 to my production server - a sheer coincidence that complicates my troubleshooting of this problem significantly.
4) I made some changes and re-copied the majority of the site files to the production server using the "Copy Website" functionalty (I did this - like an idiot - to sync up my new VS2005 installation with the server so it would tell me when files needed to be updated).
5) Now, my reports don't print on any machines except mine and the server. As in, if I go to the website on IE from the server or my dev box, it works. Everywhere else you can open the report for viewing, but if you click the print button or try to export, one of two things happen.
a) On some machines, it thinks for a minute, then pops a message which reads:
Acrobat could not open ‘pdf9c9.tmp’ because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn’t correctly decoded).
In this scenario, the printable Adobe window never actually appears.
b) On other machines, the print window pops like it's going to work, but it just sits there - blank - and appears to keep trying to refresh. It will sit there all night if you let it (I have).
I've tried rebuilding the setup package and reinstalling it at the server. No matter what I do, I still can only print reports from my box and the server. At this point, I'm completely dead in the water, since I can't print any reports - which is the primary purpose for which my people asked me to create this stupid application. Can ANYONE help with this problem?
Thanks!
|
|
|
|
|
Hi,
There is the requirement like this:,
One Login page is there for User Name, Password. Here the LAN user can only Login. How we will validate for a LAN user using C#.
Thanks in Advance.
|
|
|
|
|
Hi,
I need to hide the first row in the datagrid(Not header).
|
|
|
|
|
Here is the code.....hope it will help you...
GridView1.Rows[0].Visible = false;
Regards,
Sandeep Kumar.V
|
|
|
|
|
Thanks sandeep. It works fine.
|
|
|
|