|
You're asking the wrong questions. If all you've done is create a page with a button then you need to spend time learning stuff like the page lifecycle, and how to use viewstate, etc. You don't need to worry about if a hidden field you read about is there or not, who cares ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I find this response very curious.
I have read many, many articles about viewstate and page lifecycle. About init phase, page load phase etc. I am writing a fairly involved application in which I am creating some dynamic controls. It works well to a point and then some simple OnClicks just stop working.
I have struggled for quite a while trying to explain this. At this point, I was wondering why I see no _EVENTTARGET and __EVENTARGUMENT fields, like some many articles tell me to expect. Maybe this is a symptom of a large problem??
It amazes me how so many times respondees on this forum must point out how little the poster knows.
Sorry to imply I know so little about ASP.NET. I guess I actually know more than I implied.
Could somebody be kind enough to address my original question?
Thanks,
Mark
|
|
|
|
|
MarkMokris wrote: It amazes me how so many times respondees on this forum must point out how little the poster knows.
As you say, you told me you were new to ASP.NET. I just believed you.
MarkMokris wrote: . I am writing a fairly involved application in which I am creating some dynamic controls. It works well to a point and then some simple OnClicks just stop working.
OK, so THIS is the real question ? Your original post said 'I made a page with a button and cannot see a field in the page that I read about online'. Your original post and this one, are basically unrelated.
How are you creating dynamic controls ? The reason for an event to not work, is that your controls are created too late OR your control tree changes, both of which will mean that viewstate is not restored because the control tree is not identical before page_load.
FWIW CP uses ASP.NET and I just searched the source of this page for the fields you mention. Instead of looking for random things based on your online reading, you should focus on your actual problem, which is viewstate not being restored, from the sound of it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I really appreciate your help Christian. To avoid more confusion, let me restate my question.
I have a fairly involved ASP.NET application in VS2005 which creates dynamic controls. I have a problem in which after a while some OnClicks stop working. I have tried everything and believe I have read every article I can find about viewstate and the ASP.NET page lifecycle. I still don't know what is wrong.
I did notice that there are no __EVENTTARGET and __EVENTARGUMENT hidden fields are being created, yet every funamental article on ASP.NET says they will be created. So, I created the SIMPLEST application I could as a test. Even in the SIMPLEST website with one Button server control and an OnClick event, still no __EVENTTARGET and __EVENTARGUMENT hidden fields are created.
Is there an explanation?
Thanks,
Mark
|
|
|
|
|
I have looked at several pages, including several on CP and several on my own site, and cannot find ANY with __EVENTTARGET in them. I think you're barking up the wrong tree there.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Okay Christian. Thanks!
Mark
|
|
|
|
|
Hey friends, I started using ASP.NET today to develop a website. But when I run(press start button ) this error comes "Disable Debugging mode."
How can i disable that ...................... and one question .... I want to place some control on my site and when it is clicked I want the that control to play some music(already set music) ..... please help me
|
|
|
|
|
CoderForEver wrote: Hey friends, I started using ASP.NET today to develop a website. But when I run(press start button ) this error comes "Disable Debugging mode."
How can i disable that ......................
HOW TO: Disable Debugging for ASP.NET Applications[^]
|
|
|
|
|
hello,
i have a webservice in my appplication containing a method Upload(byte[],fileName) with two parameters one byte and other string.
what i need is to call this function from javascript.
After some search i get some response calling web service from javaScript, but the problem is when reading the file on client using ADODB.STREAM and path it through the function call, th web service generate an error "object does not contain a length" ...
Any idea or any other similar solution is appreciated.
regards,Elie.
dghdfghdfghdfghdgh
|
|
|
|
|
ellllllllie wrote: but the problem is when reading the file on client using ADODB.STREAM
How are you doing this with javascript ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I am using smtp client for sending emails through my application. I have to track all emails whether they are delivered, bounce or move to spam.
Thanks
modified on Sunday, October 11, 2009 9:46 AM
|
|
|
|
|
aliasgar01 wrote: I have an application where i have to check bounce email and delivered emails.
You need to provide some more infomration regarding this. how you are doing this ? Are you sending mail using SMTP Server or what ?
|
|
|
|
|
i am using smtp server for sending emails
|
|
|
|
|
Simply put you can't. Unless you send each message with a delivery receipt request, and the user actually responds to it, there is no way to tell if an email has actually been delivered. Spam filters don't send a response either. Think about it, why would you want it to?
"Dear Mr. Spammer, I received your message but moved it to my spam folder"
"Dear Emailer, Thank you for the information. I'll resend with a different signature until you stop moving my messages to your Spam folder"
only two letters away from being an asset
modified on Sunday, October 11, 2009 2:42 PM
|
|
|
|
|
I try to do this
<asp:linkbutton id="lnb" runat="server" text="Link" forecolor="<%=textColor%>">
textColor is a server variable of type Color(Color textColor=Color.Red), I tried to make it a string variable, it didn't help...
|
|
|
|
|
benams wrote: I try to do this
<asp:linkbutton id="lnb" runat="server" text="Link" forecolor="<%=textColor%>">
textColor is a server variable of type Color(Color textColor=Color.Red), I tried to make it a string variable, it didn't
so why you are not setting it at codebehind itself ?
just try this,
lnb.ForeColor = Color.Red
|
|
|
|
|
it's not possible because it's in a repeater...
|
|
|
|
|
You didn't mentioned it earlier. Please show us your code that you have written to show records in repeater. that may help you.
|
|
|
|
|
first of all, thanks for your responses,
the code:
<asp:Repeater ID="rpt1" runat="server" DataSource="<%#airplanes %>">
<ItemTemplate>
<asp:LinkButton ID="lnb1" runat="server"
Text='<%#Eval("Type")' %> %>'
ForeColor='<%=textColor %>' />
</ItemTemplate>
</asp:Repeater>
|
|
|
|
|
i think still u can do it with the help of ItemDataBound Event. Just handle the ItemDataBound Event. In that handler, find out the control via e.Item.FindControl("lnb1") and then set the color as u wish.
|
|
|
|
|
Respected,
I Am Showing Details Of GridView Row in Repeater Control on PopUp when My Mouse Entering on GridView Row
Thanks....
|
|
|
|
|
lrsalunkhe wrote: I Am Showing Details Of GridView Row in Repeater Control on PopUp when My Mouse Entering on GridView Row
what is your problem ?
|
|
|
|
|
Respected
Show Repeater Control On PopUp When Mouse Enter on Gride Row
.The Pop Up Repeater Control Shows Whole Row Records of Grid
Thanks
|
|
|
|
|
Hi,
I need to create a autocomplete dropdownlist in ASP.NET 2.0 using VB.NET 2005 platform for web application. I have 6000 customers. I need to filter records depnding on the intitial characters typed by user.
For example, if user types ",Cha", the dropdownlist should show all records starting with "Cha".
Can anybody giv me a clue how to do tis ???
|
|
|
|
|