15,891,423 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by ali_heidari_ (Top 166 by date)
ali_heidari_
30-May-17 20:03pm
View
What are errors?
ali_heidari_
13-Feb-17 18:47pm
View
Correct!
ali_heidari_
18-May-15 8:13am
View
is it possible to access funtctions of a prototype in a webworker? I made a server ajax control , a part of it, is javascript prototype, and in this prototype i need an animation , What you suggest for such this animation that needs, performance in memory,cpu, show smoothly, and there is about hundereds objects to animate asynchronously! thank you
ali_heidari_
8-May-15 5:21am
View
i tried this, but problem is it wouldnt access to functions, example this.doSomething();
ali_heidari_
1-Apr-15 17:09pm
View
I should use server side codes, like Click event, i can access to properties then. yup?!
ali_heidari_
1-Apr-15 11:52am
View
I read something about $get(),$find(),$create(). But did not work. also somewhere mention these are not compatible with all browsers, So yeah, I guess you are right, it is not efficient way.
ali_heidari_
25-Mar-15 9:48am
View
Hello.
I installed windows server 2008 r2 on vmware workstation. Made a domain correctly. Now can you help me how can i join my Win7 to WinServer (on wmware workstation) ? I need to set IP,and dns. but what should i enter as dns,ip? i should set ip,dns on vmware network adapters, right?
Than you
ali_heidari_
23-Mar-15 6:09am
View
Thank you for clear answer. I install it with Vmware virtual machine, right? and i define a domain on windows server, then i connect my windows 7 to it, with vmware network adapter installed, correct?
Thank you, again!
ali_heidari_
25-Feb-15 11:39am
View
Well i tried to say, it is modem driver problem! It should support callerID. It worked for me btw.
ali_heidari_
11-Feb-15 8:01am
View
I didnt find any tip to get my solution there, but i think it is because of my Modem, modem driver or tsp on my machine. The goal of my application is avoiding to use expensive PBX or VOIP machines, its going to use a simple cheap external usb modem.
ali_heidari_
12-May-14 4:53am
View
in this line: string s=rm.GetString(FieldName);
for first time everything is ok and it loads the string, but for second time to next, it returns null exception!
ali_heidari_
11-May-14 3:38am
View
I read it befor but didnt get my answer, anyway i read it again and again! i ment if my answer is there realy i read it again, if there is not my answer, is not wasting time to read it again? maybe problem is my visualstudio, maybe problem is my hardware , maybe it is a bad component! i dnt know, after searching whole of the day, i posted a question here maybe someone had my problem before!
ali_heidari_
10-May-14 17:34pm
View
Did you read it? do you know my answer? are you sure reading it, is not wasting time ?
anyway i do!
ali_heidari_
10-May-14 17:01pm
View
I read it before, but didnt get my answer!
ali_heidari_
19-Feb-14 5:38am
View
ok... i know that, but how say to IIS that use my custom membership provider ( that use my own Database) with windows authentication?
ali_heidari_
18-Feb-14 8:46am
View
Internet, in Active Directory should i make accounts manually? what is its addvantage, can you explain please!? (ofcaurse i search about it on intenrnet) thank you
ali_heidari_
18-Feb-14 8:43am
View
i want use a custom database to store username and password, with this, users can register somewhere by a webpage for example. i dnt want create user account manualy, if users count become 1000, then i have hard time to create users accounts.
ali_heidari_
6-Sep-13 4:37am
View
do you want to generate html code with vb.net into your webbrowser content?
ali_heidari_
21-Aug-13 8:08am
View
catch(exception ex){
// show exception detail
}
here you can find more exception class to get more details
http://msdn.microsoft.com/en-us/library/swas0fwc.aspx
ali_heidari_
20-Aug-13 3:43am
View
you missed {4}... and your first place ({0}) is for tablename variable ,but you used in where statement! remove _tableName ...
ali_heidari_
19-Aug-13 13:40pm
View
use button performclick method in your timer tick event! and a if statement will check if is it time to invoke performclick ...
ali_heidari_
19-Aug-13 13:25pm
View
do you have problem with your store procedure?
ali_heidari_
10-Aug-13 16:57pm
View
Great!
ali_heidari_
9-Aug-13 17:31pm
View
do you have checkbox on your gridview? what you tried for this before? do you use sqldatasource? give us more information
ali_heidari_
6-Aug-13 17:34pm
View
add a button with relative position ! or add just one button to close current open tab!
ali_heidari_
30-Apr-13 1:38am
View
yeah! you said you need user enter a number between 1 to 99! not? if you no need this,just remove second if and else! and code will be these :
while (true)// a while loop will get data from user until user enter correct data
{
sizeOfArray = Console.ReadLine();//get the user input
if (char.IsDigit(sizeOfArray.ToString(), 0))//user entered a digit?
{
//DO ANYTHING YOU WANT WITH DIGITS HERE.
break;//so break the while loop if you get correct data
}
else
Console.WriteLine("Enter a digit between 1 to 99");//a message to user
}
ali_heidari_
29-Apr-13 14:43pm
View
put them instead of these codes :
sizeOfArray = Console.ReadLine();
convertedSizeArray = Int32.Parse(sizeOfArray);
ali_heidari_
29-Apr-13 13:53pm
View
ok so its a message! i think my solution help you!
ali_heidari_
29-Apr-13 13:31pm
View
wanna throw an exception or a message to user ?
ali_heidari_
26-Apr-13 10:34am
View
thank you very much! its working ! but it was verry better if you keep some comments on your codes! and an important notice about your code is, the key must be 16 charecter!
ali_heidari_
26-Apr-13 10:19am
View
when i dnt set these, i recieve this error : Specified initialization vector (IV) does not match the block size for this algorithm.
ali_heidari_
26-Apr-13 10:06am
View
maybe i should not but when i try to leave them as default, my encrypted data is some freespaces, empty! when i decrypt resault is empty string! well whats your solution?
ali_heidari_
26-Apr-13 9:59am
View
this algorthm will make the data to some smaller blocks! blocksize will set lenght of this small blocks. Keysize sets size of encrypted data key value! right?
ali_heidari_
26-Apr-13 9:48am
View
you mean, i leave Blocksize and Keysize in default value?
ali_heidari_
26-Apr-13 9:46am
View
i did... but its give me encrypted data null, freespaces! encrypted text doesnt have any charecter! and when i decrypt ,resault is empty string!
ali_heidari_
24-Apr-13 16:14pm
View
thank you! some trivial mistakes were on my codes and i solved with your help! thanks alot
ali_heidari_
24-Apr-13 11:48am
View
english is not my first language, i have these problems ! but really important things here is solving my problem, it wastes my time for more than 24 hours!
ali_heidari_
24-Apr-13 11:42am
View
thank you very much for your clarification!
ali_heidari_
24-Apr-13 11:30am
View
very thanks ... i used resgen to convert my .resx to .resources but with wich one of this classes in the System.CodeDom.Compiler.CompilerParameters i should add it? ReferencedAssemblies,EmbeddedResources,LinkedResources,Win32Resources
i try all of them but always same error shown! can you tell me i should use wich one? (how use) very thanks for spending time for me!
ali_heidari_
22-Apr-13 18:53pm
View
you are right! it was about platforms! well i changed target platform to AnyCPU ! know i have this error : Property set of 'UserName' cannot be invoked at this time. UserName is one of the Interop.MSTSCLib.dll properties! so whats problem now? very thanks
ali_heidari_
22-Apr-13 18:52pm
View
Deleted
you are right! it was about platforms! well i changed target platform to AnyCPU ! know i have this error : Property set of 'UserName' cannot be invoked at this time. UserName is one of the Interop.MSTSCLib.dll properties! so whats problem now? very thanks
ali_heidari_
22-Apr-13 15:58pm
View
very useful ... thanks a lot!
ali_heidari_
22-Apr-13 15:23pm
View
thanks.. im using COM ... but it work good on my windows program! when wanna make a console program in runtime which need this com and when i add this reference to my childprogram! it gives me this error ... i dnt think this error caused by platform ! can you help me?
ali_heidari_
21-Apr-13 9:38am
View
thanks! i had bad mind about it! i thought install wizard must add it as a reference to my program !
ali_heidari_
21-Apr-13 8:07am
View
so i just publish it without that comonent? so how i add it to my software references after instal on my customer pc?
ali_heidari_
21-Apr-13 6:37am
View
so if i deploy, when my software installed on another computer, how add this reference to my software?
ali_heidari_
20-Apr-13 17:25pm
View
i need this compnent, give me a solution to keep it please! do not shout at me please!
ali_heidari_
20-Apr-13 12:36pm
View
i know it... so wats solution to solve this issue?
ali_heidari_
7-Apr-13 14:09pm
View
can you give more details about your issue?
ali_heidari_
28-Mar-13 13:28pm
View
thanks!
ali_heidari_
28-Mar-13 12:59pm
View
i didnt know a simple friendly comment, make you angry! i am so sorry!
ali_heidari_
28-Mar-13 12:28pm
View
a control inherited from textbox , can do some addition work!?
ali_heidari_
28-Mar-13 11:58am
View
maybe its better make own usercontrol !
ali_heidari_
28-Mar-13 10:50am
View
vary thanks ... for my wishes , customs are well . so i used normal FormsAuthentication and made a custom Profile ! everything seems good and my problem is how use URL authorization!? i mean how can i use Roles with my custom profile! i should make my own role provider? or its better to make a column named Role in my custom profile table?! and with this i should authorize programmatically and cant use URL authorize ! can i?
ali_heidari_
27-Mar-13 11:39am
View
well maybe its better use clomn in prfile table! but another problem is about setting profile items! can anyone help?
ali_heidari_
27-Mar-13 7:35am
View
i know... but my question is i should use Role provider for authorization or can i choose a role column for profile table ?
and if i choose a column named Role, can i use url authorization?
<deny role="Normal">
ali_heidari_
22-Mar-13 19:26pm
View
its not wrong way... its simple way to prevent many complex sql queries
ali_heidari_
22-Mar-13 18:10pm
View
yea ... but its amateur way
ali_heidari_
22-Mar-13 17:32pm
View
but i suppose its not neithier of website or a network based application!
ali_heidari_
22-Mar-13 16:42pm
View
you are right but the questin is a custom increment! so do you have any better way to generate custom increment?
i just gave a sugestion to give idea... for multiuser application can first get last ID value of the database and increase it then add new record into database ...
ali_heidari_
22-Mar-13 16:29pm
View
wana know a specified user didnt login from when?
wana record all of the pages that user visit?
ali_heidari_
22-Mar-13 15:54pm
View
questin is about sessions!
ali_heidari_
22-Mar-13 15:52pm
View
good suggest! FormsAuthentication is more safe than sessions!
ali_heidari_
20-Mar-13 16:16pm
View
THANKS MY problem solved ... problem was with my browsers ! i unistall the google chrome and reinstal it ... but with anonymous reason problem solved on all of my browsers!
ali_heidari_
19-Mar-13 7:13am
View
problem is not provier... sitemapdatasource will use web.sitemap file as default .... this provider you suggest is default.
anyway i used your advice but resault was as same before. items listed not like a menu with floating submenu .
ali_heidari_
10-Mar-13 10:28am
View
:| ...
ali_heidari_
9-Mar-13 6:02am
View
i hope !
ali_heidari_
9-Mar-13 3:43am
View
so you want the controls initializing be in a seperate thread ,yea? and maybe you want show initializig operation with a progressbar! right?
ali_heidari_
8-Mar-13 13:26pm
View
actually your answer is last line!
ali_heidari_
8-Mar-13 13:20pm
View
see solution again, i improved it! (last line)
ali_heidari_
8-Mar-13 10:26am
View
what you mean exactly? draging a window not smooth? have you some noise or blinking in dragging?
ali_heidari_
8-Mar-13 10:19am
View
do you want to check if backspace pressed?
ali_heidari_
8-Mar-13 10:08am
View
give more details to know which part of your application is reason of this issue .
ali_heidari_
4-Mar-13 5:54am
View
textChanged ... ! keypress ! ... give more details from your aproach!
ali_heidari_
3-Mar-13 16:20pm
View
Reason for my vote of 5 \n nice job body! continue strongly!
ali_heidari_
3-Mar-13 5:08am
View
you have 2 forms, with the first wanna connect with database, and show resault in second form?
ali_heidari_
20-Feb-13 6:39am
View
when you use updatepanel and ajax, your dropdownlist will reload with any event!and when you click on dropdownlist ,page will reload and dropdownlist closed! so i suggest you keep dropdownlist out of updatepanel and make a trigger for it if you want any event raise(like OnSelectedIndexChanged!
ali_heidari_
20-Feb-13 6:10am
View
you cant put it into it directly! updatepanel has a member named ContentTemplate! you should put dropdownlist on ContentTemplate
ali_heidari_
20-Feb-13 5:42am
View
your dropdown list not in update panel ! and and set updatemode of update panel to always ! UpdateMode="Always" ... hope help you
ali_heidari_
19-Feb-13 10:44am
View
cant you set SkipValues attribute programmatically?
ali_heidari_
18-Feb-13 19:35pm
View
i always respect to you!
ali_heidari_
18-Feb-13 19:22pm
View
i was novice in codeproject! i never forgot your guidance!
ali_heidari_
18-Feb-13 19:17pm
View
very thanks for your guidance! but really keeping 10 richtextbox was not my solution, i know it wastes time! i just thought "arvindnitin7" have 10 richtextbox in his form, so i wrote something fit with that!
ali_heidari_
18-Feb-13 19:00pm
View
thanks ! it was my fault sorry !
ali_heidari_
18-Feb-13 18:57pm
View
but really for my messy ,i am candidate for revocation my codeproject account? really why? why you think i am cheating with answers?
ali_heidari_
18-Feb-13 18:54pm
View
you are right, i have a mistake in my sample!
i am not trying to make readers confusing! and try to post answers in best way!
ali_heidari_
18-Feb-13 18:37pm
View
dude , this is just a sample to show how it works! i know its so messy! anyway its not good reason to downvote!
ali_heidari_
18-Feb-13 12:46pm
View
this.Dispose();
ali_heidari_
18-Feb-13 12:43pm
View
try statusbar! i dnt think it is difficult! after getting data from database to check and login, show nickname in a control!
ali_heidari_
18-Feb-13 1:47am
View
did you use wizard to make crystalreport file?
ali_heidari_
17-Feb-13 19:05pm
View
just use System.Text.Encoding.UTF8.GetString
ali_heidari_
17-Feb-13 18:49pm
View
if i understand correctly, you want access to your database for crystalreport!yea?
ali_heidari_
17-Feb-13 15:47pm
View
is it winapp? or web?
ali_heidari_
16-Feb-13 22:08pm
View
i download it and all of the components installed... but i have new problem, i add a datasource, then when i add crystalreport my visualstudio exit, actually its stopped working then windows kill its process ... whats this problem?
i download and install succsefully the SAP_Crystal_Report_CRforVS_13_0_5
is it problem?
and for more details , in Add Item Window in VS2010 ,the crystalreport item icon changed, and dnt show its summary which show before !
ali_heidari_
16-Feb-13 21:19pm
View
well you can use querystring for showing any user profile,then use Server.Transfer,this permit you to transfer user to any page without showing its adress and querystrings !
ali_heidari_
16-Feb-13 9:10am
View
instead of send file itself, send its url to client then with this download it :
DownloadFile(url,SaveAdresInLocal);
ali_heidari_
16-Feb-13 8:34am
View
simple way is send the adress of video as string stream to client and client download it with some high level classes in System.Net as Weblient which is include DownloadFile method !
ali_heidari_
16-Feb-13 8:29am
View
thanks ! i visited these links before , and maybe solution is download that version you suggested in previous comment ! thanks again ...
ali_heidari_
16-Feb-13 8:25am
View
thanks !
why Crystal Report for visual Studio Runtime (32bit)&(64bit) doesnt work? what is difference of it and your suggestion?
ali_heidari_
12-Feb-13 4:12am
View
can give a link to user with email and the link take user to a page ! and page operate any operation, then before page load(for example all of codes come in InitComplete event) transfer user to another page ?! with this user cant see operating page!
ali_heidari_
12-Feb-13 3:56am
View
good idea !
ali_heidari_
12-Feb-13 3:40am
View
you can before delete any record in the table, save that record into a datatable !
before inserting any new record, save it on same datatable !
before updating , after operation, save that record into same datatable !
so you have a datatable include operated records! show it with new gridview!
ali_heidari_
12-Feb-13 3:32am
View
its really good question! i wanna know its answer too
ali_heidari_
12-Feb-13 3:25am
View
so you want another datagridview show those records which updated or inserted or deleted before?
ali_heidari_
12-Feb-13 3:14am
View
you want share some data between two form?
ali_heidari_
12-Feb-13 3:13am
View
i dnt understand it ! you want after any insert , delete, update operation, your gridview show the changes?
ali_heidari_
12-Feb-13 0:58am
View
Reason for my vote of 5 \n good!
ali_heidari_
30-Jan-13 7:03am
View
its not a relevant article to my question ! but it was good article !
ali_heidari_
29-Jan-13 9:53am
View
you used redirect or transfer? and whats its exception details
ali_heidari_
29-Jan-13 9:35am
View
you want delete a file that ProductImage has its adress?
you can do it with system.io.file.delete then clear the productimage with a ado.net connecting!
ali_heidari_
10-Dec-12 14:00pm
View
very thnx dear!
ali_heidari_
10-Dec-12 12:14pm
View
after many testing actions , i think my visual studio got failed ! it never act to any syntax error,
ali_heidari_
10-Dec-12 12:11pm
View
visual studio just save my codes ,even i enter some wrong codes to make syntax errors but it doesnt act to them ,it just save them !
ali_heidari_
10-Dec-12 12:09pm
View
it doesnt action about syntax errors ; and it just show me that program wich i had it before editing codes and always just show me that when i click run ! i think visual studio saved some my old .cs files in somewhere and always compile them , im trying to find any .cs file reletive to my project! but can you explain me about stamped files with later date of the project?
ali_heidari_
30-Nov-12 13:14pm
View
i think when your dying because of hunger, a piece of cake can be useful!
and after that look for another piece of cake !
are not you agree?
ali_heidari_
30-Nov-12 13:04pm
View
it has 14 days free for trial version ... !
ali_heidari_
28-Nov-12 16:05pm
View
i know whats oop, i know how i can code, and im programmer but i want to know exactly whats going on in a .net class (as socket programming classes) and i wanna know what the code microsoft team uses for that class !? i dnt mean i want know whats class ,im not professional also im not begginer
ali_heidari_
28-Nov-12 15:57pm
View
very very thanks for recommending google to me...
ali_heidari_
11-Oct-12 12:24pm
View
ues its in my site place ... can you explain about second solution?
ali_heidari_
2-Oct-12 16:08pm
View
i dnt know why , but it didnt work at all, if i define a string value it works but when i use a variable it doesnt work at all ... its problem is with variables :S
ali_heidari_
2-Oct-12 15:51pm
View
i dont get error... just my codes dnt work
ali_heidari_
2-Oct-12 5:18am
View
well i did your solution but it didnt work at all ... in my application i cant use variable for update my column :s , dnt you know why i cant use variable?
ali_heidari_
26-Sep-12 9:10am
View
you want administrator see that folder in a time range?
ali_heidari_
26-Sep-12 9:08am
View
so whats your problem? wana its code?
ali_heidari_
23-Sep-12 5:04am
View
do you mean your textbox dnt show continiue of text if text is longer than textbox?
ali_heidari_
22-Sep-12 7:03am
View
yes ... its working , thanks dude ... should review css again :s
ali_heidari_
22-Sep-12 6:43am
View
no check it out my friend ... so thanks
ali_heidari_
22-Sep-12 6:36am
View
i said you everything ... i just set width:100% and i dnt know should set height to what for achieve my purpose ... and i just have width and height in my css file for every 3 div ... now i need to know what should i add in my css file to achieve my purpose (why my footer div wana be upper than body and header , it will go top of all however my div footer is after 2 other div)
ali_heidari_
15-Sep-12 16:15pm
View
can you explain more?
ali_heidari_
15-Sep-12 16:06pm
View
i dont think he mean a normal image with 3d design, he need a touchable 3d image ... i think flash files is better for him
ali_heidari_
14-Sep-12 14:24pm
View
wana someone give you all of the application code? so whats your role? then you are a programmer ?
ali_heidari_
13-Sep-12 12:56pm
View
you are right , but many sites have captcha for login too
ali_heidari_
13-Sep-12 12:14pm
View
do you have any idea about how you can pass from captcha? 90% of sites have a captcha ... as you know captcha is for knowing visitor as a human !
ali_heidari_
13-Sep-12 9:25am
View
does your mobile support persian?
ali_heidari_
13-Sep-12 3:11am
View
you want it show just alternate text? you dont want see any picture even default browser images at all? so why you dnt use something else like label?
ali_heidari_
13-Sep-12 3:03am
View
i think when you clicked on a button , your application will change your basic file then when you click on second button ,your application code dont work cause it is for orginal file that its changed before
ali_heidari_
13-Sep-12 2:51am
View
i think you removed them but you forget to remove code that is reletive to your removed pictures , thats why your app think you need work with unexist pictures ...
ali_heidari_
13-Sep-12 2:28am
View
well you said you need to remove your pictures then how you hope to find them there?
ali_heidari_
11-Sep-12 13:04pm
View
it came in hijri or gregorian? can you explain whats your problem exactly?
ali_heidari_
10-Sep-12 16:07pm
View
is this programming question or is IQ test?
ali_heidari_
10-Sep-12 16:02pm
View
you dont have any url! how this image can redirect user?
ali_heidari_
7-Sep-12 11:15am
View
did you try with another browser?
ali_heidari_
6-Sep-12 16:02pm
View
whats your browser?
ali_heidari_
6-Sep-12 13:59pm
View
i think you didnt care about your width menu ... then if monitor width is wide it will show horizentally but if monitor width is low then it forced to show itself vertically ...
ali_heidari_
6-Sep-12 0:55am
View
System.IO.File.Delete(startupPath+"\\"+listBox1.SelectedItem.ToString());
ali_heidari_
6-Sep-12 0:46am
View
maybe it needs to run with administrator ... because startup folder is a protected folder
ali_heidari_
12-Aug-12 2:12am
View
i'd tried but it shows the tags too ... for example it shows <b> test </b> .... but i want it shows
test
in bold style.... do you understand?
ali_heidari_
11-Aug-12 23:44pm
View
label or textbox... not diffrent any control just solve my problem
ali_heidari_
6-Aug-12 12:50pm
View
well, how can i connect my database to login control?
ali_heidari_
5-Aug-12 5:55am
View
i used this way by myself ... thank you for spending time!
ali_heidari_
4-Aug-12 21:33pm
View
wich scope dont run? the function?
ali_heidari_
4-Aug-12 19:57pm
View
you are right... but as you see on my codes, i didnt choose id for my imagebuttons, they initialized by a foreach! they dont have ID...
ali_heidari_
4-Aug-12 19:53pm
View
what is this link?
ali_heidari_
1-Aug-12 15:18pm
View
explain more!
ali_heidari_
28-Jul-12 0:30am
View
as you see 'sandeep' solution can reply you! we can set it ON and after our operates can Set it OFF again!
ali_heidari_
28-Jul-12 0:16am
View
Deleted
as you see 'sandeep' solution can reply you! we can set it ON and after our operates can Set it OFF again!
ali_heidari_
27-Jul-12 23:50pm
View
you are right ! i saw this solution many times in many sites!
but i need a solution that solve my problem programmatically (in .cs file)!
i am using a class to enter data in database!
this is a example of my way:
<pre lang="c#">
[System.Data.Linq.Mapping.Table(Name="GeneralNewsTable")]
public class GettingTable
{
private int _NewsID;
[System.Data.Linq.Mapping.Column(Name="NewsID",IsPrimaryKey=true,IsDbGenerated=true)]
public int newsid
{
get
{
return _NewsID;
}
set
{
_NewsID = value;
}
}
private String _NewsTitle;
[System.Data.Linq.Mapping.Column(Name = "NewsTitle")]
public String newstitle
{
get
{
return _NewsTitle;
}
set
{
_NewsTitle = value;
}
}
}
in my aspx.cs for example button1_click
System.Data.Linq.DataContext db = new System.Data.Linq.DataContext(@"D:\DSource\DSource\Site\FirstPattern\Dios\Dios\App_Data\PublicNewsDB.mdf");
NewsTableNameSpace.GettingTable gt = new NewsTableNameSpace.GettingTable
{
newstitle = TXTNewsTitle.Text,
};
db.GetTable<newstablenamespace.gettingtable>().InsertOnSubmit(gt);
db.SubmitChanges();
</pre>
i hope that you understand my mean!
tnx all
ali_heidari_
27-Jul-12 22:32pm
View
cause my asp.net page Raises this error :
Cannot insert explicit value for identity column in table 'ProductDesign' when IDENTITY_INSERT is set to OFF.
have any solution?
ali_heidari_
26-Jul-12 13:38pm
View
i said
"my problem is what should enter on .asmx.cs file (web service file) to achieve my wish output ?"
ali_heidari_
25-Jul-12 20:37pm
View
tell us what is your reason that you vote this question 1?
ali_heidari_
25-Jul-12 1:25am
View
well ! can you tell me how can i speed up a page that has many big pictures?
ali_heidari_
24-Jul-12 21:21pm
View
no my purpose is high resolution images ! i dnt want increase my images resolution...
also i dnt want to define limitation for my images! it should work on any image extension ...
ali_heidari_
23-Jul-12 23:54pm
View
Reason for my vote of 4
thats realy gud! its better if mark explain more
ali_heidari_
23-Jul-12 2:33am
View
you are right! but my problems is position and Display properties ! they dnt work ! for example <asp:label> dnt locate on my choosen place !
ali_heidari_
20-Jul-12 19:34pm
View
i think this link can solve your problem !
THIS LINK
good luck !
ali_heidari_
17-Jul-12 18:05pm
View
Deleted
stack trace
Show More