|
If I have an absolute path to a file, e.g.: C:\website.com\assets\images\lumpydog.jpg
How can I translate the address to it's absolute web form? e.g.: http://localhost/website.com/assets/images/lumpydog.jpg
Can asp.net somehow resolve this path for me?
/\ |_ E X E GG
|
|
|
|
|
Request.Path + "/assets/images/lumpydog.jpg"
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Thank you for reading this..
Today i got a task to enable submit button form. But the problems is
computer = oracle
|
|
|
|
|
Why not just write a page, which takes the email details, does a normal postback, and sends the email using the .NET email classes ?
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 )
|
|
|
|
|
the class you mention about...
I not really clear about that.
Furthermore, is sharepoint contribute to the error.
When i click submit button i can get the "confirmation" page
but i did receive the email
How to write better feedback form handler can give example
computer = oracle
|
|
|
|
|
hi friends
i have one crystal report on aspx
page
but the width and height of that report is small
i tried to increase height and width and setting differet printers
how can i solve this
thanking you
manisha
|
|
|
|
|
Hi,
I'm using Drop down list. List of Quesitons stored in a database. I'm collecting the questions and load it to the drop down list in Page load event.
When I select the Drop down list, the selected question and answer will display in the text boxes name txtquestion, txtanswer.
But I got this error when I select the Drop Down list
"A potentially dangerous Request.Form value was detected from the client"
The Questions and Answer having HTML tags. will it cause the Error? If so How can I Split the tags and load the Questions alone in the drop down list?
Thanks in Advance
|
|
|
|
|
Muthunagai.A wrote: will it cause the Error?
Yes. You can turn it off with ValidateRequest="false" in your page definition.
Muthunagai.A wrote: If so How can I Split the tags and load the Questions alone in the drop down list?
You can just use the HTMLEncode method ( not sure from memory what object it's on ), to change the text to not be HTML.
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 )
|
|
|
|
|
Hi,
I set the ValidateRequest as false. Include the System.Web.HttpUtility also. But Still having the same error
|
|
|
|
|
U'r question is already in dropdwonlist so you can get question on your question textbox and in the event of dropdwonlist_selectindexchanged you get your answer from database and assign it to answer textbox
event dropdwonlist_selectindexchanged
txtquest.text=dropdwonlist.selecteditem
Nand
Nand
|
|
|
|
|
I've set up an activex object (sample.cab), when i try to install this i get the error message:
Windows has blocked this software because it can't verify the publisher.
I know I can change the settings in my browser to continue with the download/installation, but I don't want to tell all users to do that. Instead I would like to find out how to sign the software so that the browsers know that it comes from a trusted source.
How do I do this?
Thanks in advance
sebastian
|
|
|
|
|
if some one can tell how to block pages.
i have small website and have abought 10 pages but when i copy
and put it in browser they open i want block that want to redirect them to login page .
thank you
|
|
|
|
|
Each page should check whatever mechanism you use to store who is logged in ( probably the Session ), and if a user is not logged in, redirect to the login page. A base class for all pages is the easiest way to do this.
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 )
|
|
|
|
|
heres my problem, i have a database that has many fields on it, i binded it with a gridview but since it takes too much space, i wonder if it is posible on mouseover event to view another grid?
|
|
|
|
|
|
im sorry.. im new to asp.net, how will i know if the project is in 2.0?
|
|
|
|
|
In what tools u develop u'r ASP.NET application?VS2003 or VS2005?
VS2005 use the .Net Framework 2.0
Regards,
Tomi
|
|
|
|
|
i use VS2005.. do you have simple codes, i mean easy to understand codes to answer the problem i said?
how can i bind a detailsView to a database? coz i bind a GridView programmatically.. could it be posible to a DetailsView? how can i do this?
Thanks!
|
|
|
|
|
If you are using VS 2005 then it's ASP.NET 2.0 and above. the link that I gave you in previous post has sample code attached. You can download and test it... it may not be what you exactly want. but you may get some ideas and you can customize it as you need.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
I think its a lot more easier if u read or listen a tutorial..
can u give me u'r e-mail address?i will send u a tutorial so u can learn easily
Or U can try this link
Kind Regards,
Tomi
|
|
|
|
|
Thank you! i will figure this out... thanks for the help!
|
|
|
|
|
if u need my tutorial about gridview or details view, just post me u'r email address
i think this is a very good tutorial for ASP.NET
Kind Regards,
Tomi
|
|
|
|
|
simplyjc007@yahoo.com here is my email address...
again thanks!
|
|
|
|
|
Hi, Comet
I was trying to send you an email with an attachement,I'm sorry it took a long times to scan the file..btw i still keep trying send u an email, but plz look at the link that i gave to u,coz i got a very good tutorial about ASP.NET from there
Kind Regards,
Tomi
|
|
|
|
|
I usually roll my own 'admin' type grids, where users can add new rooms, add new departments etc to an app. No problem. I've been looking at the DataGrid (a tad late in the day maybe) and have a few questions...
Basic Database Table For Room:-
ID DESCRIPTION
1 Room 1
2 Room 2
3 Room 3
Obviously, ideal for a datagrid to add, update, delete etc. All fine up to now.
Table for Subject
ID DESCRIPTION
1 Subject 1
2 Subject 2
3 Subject 3
Again, no problem, users happily adding subjects.
Now....Teachers. (This is all hypothetical by the way....)
ID DESCRIPTION ROOMID SUBJECTID
1 Mr Big 1 2
2 Mr Large 2 3
The RoomID and SUbjectID are constrained in MS SQL so only rooms and subjects that exist can be used. When displayed on the front end, this would show Mr Big, Room 1, Subject 2. But...how would I get the user to populate this sort of table using the built in datagrid (or other controls)? Rolling my own, I usually have a label showing the word 'room' and when clicked, it magically turns into a dropdown with the available rooms, the same for subjects. But does ASP.NET have some magic stuff that allows me to do similar?
All the samples of the datagrid I see are for flat tables, not relational like this, or if they are relational, they are 'select' only. Happy to be made to look stupid and have a google link posted in all it's glory that i missed...
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|