|
Hi,
I could able to hit the break point, I was not hitting break point becuase System.Diagnostics.DebuggerStepThroughAttribute() attribute was set on my class. But still I am getting the same exception.
And as you said its returning immediately.
I am not finding the reason please help me its an urgent.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
hello
urgently i am fresher plz............
my question is that how can see different different content in div on same page after click on menu.
example ---
we take a tab(service) on menu bar in dropdown form such as service----
|---security device
|--- event management
|--- property dealing
when i click on secutiy device then it only open the detail of secutiy detail on same page(service).similarly in case of event management, property dealing. on particular id.
|
|
|
|
|
Just read some tutorials about MVC. You obviously don't understand principles of this framework.
No more Mister Nice Guy... >: |
|
|
|
|
|
Hi!
I am mostly focused on DB and desktop development, all of my "good" web stuff was done with WebForms. As my spare time allows I am slowly learning ASP.Net MVC, I agree with philosophy behind it, but learning process is much slower than expected and from time to time I look across the fence for possible shortcuts, alternatives etc.
So, should Web Pages be considered as an alternative (of any sort) to ASP.Net MVC?
Do you consider it better than WebForms (and why)?
Are there any important gotchas which usually aren't listed among first N Google results?
Can someone share their experience?
Thanks,
Deka
|
|
|
|
|
I have worked on Webforms previously and now MVC. In my opinion MVC is better in performance, speed and flexible for test-driven development. Here is the interesting part.... No postbacks, No viewstates, No server controls, No page life-cycle. All done with HTTP RESTful services and HTML controls. And it's completely stateless. Controller controls all user interactions. each user request is served by raising an action method in the controller. Bundling, routing and Web API's are some of the interesting areas in ASP.NET MVC
Check this MSDN articel[^]
- Regards - J O N
|
|
|
|
|
Ok, I agree, but you haven't answered my question. Web Pages, are they worth it?
|
|
|
|
|
Hope, you got your question answered from Dylan's response.
- Regards - J O N
|
|
|
|
|
Have a look at a response I posted to a similar question
Asp.net MVC VS Asp.Net[^]
In my opinion, MVC is a far better pattern to use for web development - once you get your head around the initial learning curve, it all becomes pretty simple 
|
|
|
|
|
Yeah. To bad about legacy apps you cannot have time and resources to port to MVC
No more Mister Nice Guy... >: |
|
|
|
|
|
how to convert the nvarchar datatype to datetime
|
|
|
|
|
|
thank you friend but i want to convert the varchar dataype to datetime format (ie.)if i enter 22.3.2004 in date of birth text box it should to stored on the database as 22/3/2004 how it possible please reply me and also if the user enter like 22.3.2004 error msg has to display pls reply both
|
|
|
|
|
suriyakaqnnan wrote: i want to convert the varchar dataype to datetime format
I replied/shared the exact same question.
suriyakaqnnan wrote: f the user enter like 22.3.2004 error msg has to display
Why? If needed, put your logic on frontend or UI layer. Validate and then pass on to DB.
Try!
|
|
|
|
|
|
use below SQL function to convert DD/MM/YYYY string to Datetime..
Make sure every time u pass "DD/MM/YYYY" format only.
CREATE FUNCTION ChangeDateFormat
(
@STRING NVARCHAR(40),
@DELIMITER NVARCHAR(40)
)
RETURNS DateTime
AS
BEGIN
DECLARE @MM as varchar(5)
DECLARE @DD as varchar(5)
DECLARE @YY as varchar(5)
DECLARE @POS INT
DECLARE @NEXTPOS INT
DECLARE @INT INT
DECLARE @TEMP as varchar(50)
SET @STRING = @STRING + @DELIMITER
SET @POS = charindex(@Delimiter,@String)
SET @INT = 1
WHILE (@POS <> 0)
BEGIN
if @INT = 1
Begin
SET @DD = substring(@String,1,@Pos - 1)
End
if @INT = 2
Begin
SET @MM = substring(@String,1,@Pos - 1)
End
if @INT = 3
Begin
SET @YY = substring(@String,1,@Pos - 1)
End
SET @STRING = substring(@String,@pos+1,len(@String))
SET @POS = charindex(@Delimiter,@String)
SET @INT = @int + 1
END
SET @TEMP = @MM+'/'+ @DD + '/' + @YY
Return convert(datetime, @TEMP)
END
KiranKumar Roy
|
|
|
|
|
You can use Convert.to... in C#
or
CAST('09/25/2004'AS DATETIME)... in SQL Server
|
|
|
|
|
how to check the username and password in login using hasrows in web applications
|
|
|
|
|
suriyakaqnnan wrote: using hasrows
Can you elaborate a little more on it?
suriyakaqnnan wrote: how to check the username and password in login<layer>
For checking username existence, you pass on the username to DB and run a query like:
SELECT COUNT(ID) from MyUserNameTable WHERE UserName = @userName
You check for number of rows returned for the query. If it 'has rows' then it means username already exists.
|
|
|
|
|
Select from database table if the username and password exists. Check for the no of results returned. If is 1 , user is authanticated if 0 , not. 
|
|
|
|
|
Is there a cleaner way to pull a lot of data from a form for calculations?
I feel like I have a lotta ugly tryparse stuff going on. Do people just pull it in one go?
I have like 40 controls a user can change (trust me, it can't be helped) and on recalc its a lot of pull, calculate, put back. Seems horribly messy.
|
|
|
|
|
So I guess you don't want to put Javascript in your form to do the calculations ?
I have a fairly complex form with the same problem. I have 2 routines, one to map the screen to internal values and another to map the internal values to the screen. Ugly. Yes; but it works and it is straight forward.
|
|
|
|
|
Not especially no... for one Javascript still isn't as 'native' to me as a language. I imagine I'd have to learn some jquery to handle any of the database pulled information?
using javascript would at least get away from the parsing due to the weak typing though eh?
|
|
|
|
|
I have a huge product editor, with over 80 fields.
I'm on my 8th generation of it now.
The last update I made was to create a huge Javascript object of the entire thing, and small saves just update the object in the DOM, Full saves use $ajax to update the database.
Validation is on the fly using blur
When clicking through the tabs, the data is loaded from the object.
It took me a 2 week to write, over 10K lines of Javascript, but so far so good, no complaints after 3 months of running it.
It's a combination of Javascript and JQuery, but mostly Javascript.
|
|
|
|
|
Hi,
Can u Please take a look at my Question..
Help : Much Needed !![^]
Can u please suggest me a logic which can be used to involve BackGroundWorker Class in ASP.NET App?
A code snippet will be great..
Please it's very urgent.
|
|
|
|
|
sameerbhag wrote: Can u Please take a look at my Question.. Why? You have already received some suggestions there. If you don't understand, then post a reply to the people who responded, and ask for more information.
sameerbhag wrote: it's very urgent. Not to anyone here.
One of these days I'm going to think of a really clever signature.
|
|
|
|