|
Hi Navaneeth,
Yes, thats what I see. In order to test, I need to add many layers of complexity. Maybe we need to switch to ASP.NET MVC. But, so far I found in MVC, I will have to forget the Designer, rather I will have to use a bunch of HtmlHelper static methods to generate my page. What a yakeee idea. To my point of view, a Website is really UI driven. I like to use ASP.NET Controls in Design time, add property values and handle Events from the VS designer. Anyway, my brain is getting cluttered with so many technology clumsiness I think, within next few years, ASP.NET MVC will have much designer support and I am jealous with those developers who will start learning ASP.NET at that time and get readymade stuffs
|
|
|
|
|
Emran Hussain wrote: I found another library named, NUnitASP which could allow me to do test driven development where I can set the url dynamically. but unfortunately, the library is so old, it does not work anymore
Try WatiN[^]instead.
If you want to get going quickly I would also download WatiN Test Recorder. The latter is a bit buggy but it's good for giving you a rough starting point. Plus you should combine with IE dev tools. to get control IDs.
Although Watin 1.0 has been out for ages and Watin 2 has been in beta for ages the mailing list is very active and very responsive. WatiN is a solid library.
Selenium[^]is another possibility but I've not tried it.
Kevin
|
|
|
|
|
Emran Hussain wrote: As you can see, the port number 49161 after the localhost, it changes every time I build the application
Have a look at the ASP.NET project properties. There's a setting for fixing the port number.
Kevin
|
|
|
|
|
Hi.
How can I create virtual subdomain with asp.net 1.1?
for exmaple I want convert : http://www.dirtourist.com/User/index.aspx?Uid=1004 To http://www.Hakhamanesh.dirtourist.com
|
|
|
|
|
HI i have successfully created a connection string
and the rest of the commands are as follows
Dim cmd As New SqlCommand(sql, SQLConn)
cmd.Connection.Open()
Repeater1.DataSource = cmd.ExecuteReader()
Repeater1.DataBind()
cmd.Connection.Close()
The above code works fine..
My doubt is that how to i get to store all rows of a column returned by a Repeater in a session variable....
Can do tht using a SQldatareader as:
Session("SessionName")=readerobj("uid")
|
|
|
|
|
lionelcyril wrote: My doubt is that how to i get to store all rows of a column returned by a Repeater
Repeater doesn't have rows or columns.
lionelcyril wrote: Can do tht using a SQldatareader as:
Session("SessionName")=readerobj("uid")
What are you trying to achieve? Why do you want to keep the repeater generated code in session? Are you trying to do some sort of caching?
Best wishes,
Navaneeth
|
|
|
|
|
I figured out another way...
i wanted to store a particular value from a database column into a session variable..
Anyways thanks..
|
|
|
|
|
Hi... im trying to emulate a simple captcha control. I wanted to distort a text generated by Graphics.DrawText() method. Or is there a better way to make this? Thanks a lot.
|
|
|
|
|
Rue Leonheart wrote: is there a better way to make this?
Without using GDI+? I don't think so.
Best wishes,
Navaneeth
|
|
|
|
|
|
Can you post me a link for a tutorial on how to use scripts in an ASP.NET page? Thanks for the help.
|
|
|
|
|
I have not used that specific captcha technique I mentioned, but I do use ImageMagick (IM) with ASP.NET. I have a pretty basic article on COde Project about generating previews from uploaded images with IM, Using ImageMagick to Create Previews and Thumbnails from Uploaded Images[^]. This is similar to what you are trying to do by creating a dynamic image and return it to the browser. The key method is CallImageMagick(string fileArgs) . You pass your argument, such as the captcha command, which defines the distortions and the output path of the file. The random string used to create the captcha using IM would be stored and used to verify the user response to the captcha challenge.
IM is easy to download and install. The latest update which I just installed on our server was "ImageMagick-6.6.0-7-Q16-windows-dll.exe". Make sure to check the last install option - "Install ImageMagickObject OLE Control...", so that MagickCMD.exe will be installed. You will need to provide the path to this file in your code; see my article.
There are several other good articles on CodeProject about using IM with ASP.NET. That is where I learned about it.
Regards,
Gary
|
|
|
|
|
i've databound a gridview through configure datasource wizard....but i'm unable to re-bind it through that wizard only.....can anyone tell me how can we rebind gridview using configure datasource wizard or using any other method except writing code in .cs file???
|
|
|
|
|
Please help me with this assignment.
Use ASP.NET to write a web page with a form for ordering pizza. When loaded, the page should appear as shown in appendix 1. To avoid clutter, use only 3 options for each select element (for example, use only months 07, 08, and 09 for the expiry date). Be sure to preserve alignment of items. The Submit button sends all the user inputs to URL http://www.pizzapronto.com/orders. The Reset button resets the form.
Appendix 1
Your browser may not support display of this image.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<!— Put your code here ………… -->
</html>
|
|
|
|
|
We're not here to do your homework for you. If you can't even manage this then you've picked the wrong course/degree/career.
me, me, me
"The dinosaurs became extinct because they didn't have a space program. And if we become extinct because we don't have a space program, it'll serve us right!"
Larry Niven
|
|
|
|
|
www.rentacoder.com, this is what you want
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
hi all......
i've created a page and want user to select some buttons....now i want that if one user selects some of the buttons that those buttons should be disabled for rest of the users till the person clicks on submit buuton on the next page.....if he cancels his selection from there than those buttons should become enabled for other users.
can anyone guide me what to do???
|
|
|
|
|
hi iam using asp.net with c#
in my gridview 1st column is checkbox control
select productname price quantity total
() rose 124 6 124*6
() biscuits 345 89 345*89
() choclate 670 45 670*45
=======
when user click next button then which ever row is checked then data is transfer to other page and displayed in gridview
please can you give some example for this ...
|
|
|
|
|
Hi, you can create a temp table to insert the Selected Rows and when you redirect to the other page
select thoses rows for Db and put them in the datatable to be a datasource for the GridView.
Good luck
|
|
|
|
|
You can maintain the data in DataTable or Collection. Assign the values to the Session object and retrieve it in the next page.
|
|
|
|
|
hi iam using asp.net with c#
in my gridview 1st column is checkbox
select productname price quantity total
() rose 124 6 124*6
() biscuits 345 89 345*89
() choclate 670 45 670*45
=======
67000
========
when user enters quantity automatically in total colum total is displayed
please can you give some example for this ...
|
|
|
|
|
Uhm.. maybe you can calculate the Total in advanced before you databind to the Grid View.
Or you can use a nested foreach loop for each row and cell and extract the value then do the calculations and assign that in the Total Column.
|
|
|
|
|
You could do it on the client-side with jQuery and save a lot of server-side processing and roundtrips. It would be easy to attach an event listener to the checkbox and total all the item's subtotals, etc. Here is a link to an example that updates the total the items in the order table as you add and remove items. It doesn't use Web Forms, but just as easily could: Interactive Form Functionality on the Client-Side Using jQuery[^]. There is a working example at http://altweb.lazerinc.com/jquery/order_dev.htm[^].
Regards,
Gary
modified on Monday, April 5, 2010 9:09 AM
|
|
|
|
|
I'm using Forms Authentication in my website and i have denied access to anonymous users to a certain folder in the website. I'm using a File Upload in the restricted area and after the user logs in and tries to upload any file to the server, he user is always automatically redirected to the login page instead of uploading the file!!!!
Any ideas how i can avoid this and allow logged in users to upload files directly??!!! Any idea why this happens in the first place?!
|
|
|
|
|
Just noticed another surprise!! i added login status and login name controls to the login page and i found out that the user is still logged in while the page is redirected to the login!!!
Also noted that the return URl points to the fileupload page. so anybody knows what could possibly be going wrong?!!
|
|
|
|