|
i have a master page n a content page..in content page i have a datalist and two button....while running this it trows an exception "Control 'ctl00_ContentPlaceHolder1_btnPrev' of type 'Button' must be placed inside a form tag with runat=server." so i add the code in content page's load event
System.IO.StringWriter stringwriter = new System.IO.StringWriter();<br />
System.Web.UI.HtmlTextWriter htmlwriter = new System.Web.UI.HtmlTextWriter(stringwriter);<br />
this.pnl1.RenderControl(htmlwriter);<br />
string s = stringwriter.ToString();<br />
public override void VerifyRenderingInServerForm(Control control)<br />
{<br />
return;<br />
}<br />
EnableEventValidation="false"....now its working but the problem is this..the click-event of the buttons of content page are not working...please someone help
|
|
|
|
|
You lose viewstate when you add dynamic controls, unless you do it before page_load. You'd do better to fix your tag so that it works when placed in the content page. Your content was obviously broken or you would not have got an error
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
but i have done...<%@ Page Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" EnableViewState="true" CodeFile="Default2.aspx.cs" Inherits="Default2" Title="Untitled Page" EnableEventValidation="false" %> ..still my button click event is not working...please help
|
|
|
|
|
hi,
I want to display a datagrid sub columns in each column as follows...
example
---------------------------------------------------------------
date | 1 | 2 | 3 | 4 | 5 |
---------------------------------------------------------------
|in | out| in |out | in |out | in| out| |
---------------------------------------------------------------
Name | | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
Please help me thanks in advance
|
|
|
|
|
To display first row use simple html table having span of two columns of Datagrid...
Thanks & Regards...
Amit
|
|
|
|
|
??
do you think this can solve the purpose ?
Ashish Sehajpal
|
|
|
|
|
Can you give solution in detail.?
regards
sam asir
|
|
|
|
|
Hi all,
please let me know any one knows the rgular expresstion to ristrict the string format of Url type:
1)http:\\www,goog.com.......
2)wwww.google.com..........
3http://www.codeproject.com/script/Forums/Edit.aspx.............
the expresstion which does not accept the Any specal charectes at last continously.
Thanks And Regards,
Guru
|
|
|
|
|
There's this helpful website regexplib.com[^] which i'm sure contains loads of examples to help you out.
|
|
|
|
|
hi everyone ..
i hve a small requiremnt inmy application. i need to enalarge images that are retrieved from the database dynamically(i am working on matrimaonal kind of site) when the image is pointed upon by the mouse..
would be really happy for ur reply..
thank u
regards
rack.
rack
|
|
|
|
|
Check this out
Its not dynamic code but as long as the code displaying the image from the database is you cna just use this get around it:
http://www.dynamicdrive.com/style/csslibrary/item/css-popup-image-viewer/
|
|
|
|
|
hi thank u very much for ur reply..
i want tu retreive the images from database so what sould i write in
"
thank u!!
rack
|
|
|
|
|
hi
i think my mail has just got distrbed ..
wat should write in "Src=...." if at all i want to display the images present in a database..
thank u
rack
|
|
|
|
|
can u please tel me wat should be written in " Src=..." if i have to display images from database..
thank u
|
|
|
|
|
Why did you ask this over and over ?
You need to write a HTTP Handler that pushes out the bytes of the bitmap from the DB. It would typically take the id of the image in the DB on the URL, read it and then do a BinaryWRite of the data. Your src tag would contain the URL that loads the image from the DB
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello everyone.
I have a little application in which there are some main pages, and some detail pages for each main page.
in the detail page there is a button which gets you back to one of the main pages.
the main page, in the OnLoad method, there is a method which saves the page thet led you there (using HttpRequest.UrlReferrer).
I need the main page not to store the urlreferrer of the detail page, passing null as urlreferrer value.
I know javascript does this, but for some reason i cannot use it - and i am forced to do everything server-side.
Is there some method which sends you to one page, without passing its own url?
I googled about it and found lots of pages about people complaining that Response.redirect has this behaviour. I tried, and to my dismay, found that in my application works flawlessly - that is NOT what i want. I need Response.redirect NOT to work, thus passing null as the HttpRequest.UrlReferrer value.
I know this is at least confusing, but please try and see if you can give me an hand.
Thanks in advance.
Rey9999
~~~ From Milano to The Hague, easy as it goes ~~~
|
|
|
|
|
This looks odd. Changing the value sent on referrer can't be done AFAIK. BTW, why you need such a solution ?
|
|
|
|
|
N a v a n e e t h wrote: BTW, why you need such a solution ?
It is a long story....
Anyway, i do not need to change it. I just need it to be null, and i know there are some situation in which HttpRequest.UrlReferrer is null.
Example:
typing a new url in the address bar
using browser history
using javascript...
I need something like that, just server-side. I read around that Response.Redirect has sometimes this behaviour, but not in my case.
Any ideas?
~~~ From Milano to The Hague, easy as it goes ~~~
|
|
|
|
|
I think you cannot do it in server.
Whether Main and Detail page url has any pattern.
If it has then use it to check whether its detail or mail page and work with that.
Else, i think HttpRequest.UrlReferrer cannot be set null from Server.
Also have you tried using
Response.Headers referrer property to null
Check My other Asp.net Posts
|
|
|
|
|
Hellooo Friends
i am using Webservicees and i got error(The request failed with HTTP status 401: Unauthorized.)how i solved it Please Help me.
The request failed with HTTP status 401: Unauthorized.
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
I suggest reading the article I link to in my sig. Esp the bit on error messages.
2nd google hit[^]
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Its not work
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Check this post out:
http://forums.aspfree.com/net-development-11/the-request-failed-with-http-status-401-unauthorized-11744.html
|
|
|
|
|
ANSWER:-
discoveryService.Credentials = New System.Net.NetworkCredential("Administrator", "", "CRM")
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
well done, did the link help?
|
|
|
|