|
Sorry, I'm not overly familiar with the UpdatePanel . You might be better off posting this new issue in its own thread.
NB: It would be better to post the question in the ASP.NET forum[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
modified 14-Aug-13 14:30pm.
|
|
|
|
|
Hi Rich,
Its ok, I manged to figure it out..
I wanted to add the solution to the post too so other may do the same.
Right after your add your control, and then your event via the init...
If you want to put your control inside a update panel and stop a full page post back then you must register your control with the parent page and do it inside the actually control code itself... outside dont seem to work via the main page containing the control.
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
ScriptManager script = ScriptManager.GetCurrent(Page);
TxtParamValue = new TextBox();
TxtParamValue.TextChanged += new EventHandler(TxtParamValue_TextChanged);
if (script != null) { script.RegisterAsyncPostBackControl(TxtParamValue);}
base.Controls.Add(TxtParamValue);
}
Thanks, and enjoy all!
=)
|
|
|
|
|
Hi All,
First time posting here, long time programmer..
So, I have a need for custom controls that I am using to dynamically render a list with call backs..
So, far I had no problem doing simple inherited based controls and hooking their callbacks...
IE CusControl : TextBox...
Then its fairly easy to hook the TextChanged event and add the controls a dynamic list and catch the post backs.
Now, the hard part is
=)
|
|
|
|
|
Hi, you might want to edit your post. Your post finishes at "Now, the hard part is" - and we can't guess what the hard part is.
|
|
|
|
|
For future reference. If you need to update a post, don't create a new one, simply hit the edit button and fix your original post.
|
|
|
|
|
|
|
what are the object oriented system concept used in c#....??
|
|
|
|
|
|
Get a book on OOPS concepts and read.
|
|
|
|
|
C++, Java, C# - All good Oops based programming languages. Are looking for something specific on C#? You will get only funny replies when you post such a generic questions...
|
|
|
|
|
Hi,
I have created a project with a third party control which has a distributable license.When I create a set up to this project and when I implement in other place it works fine.
At the same time when I add the dll files to another existing project and try to integrate both the project I get license issue. The message I receive is control expired error.
Though the license file is embedded with the dll.
Regards,
N.ShanthaKumar.
|
|
|
|
|
You need to go back to the people who provide the third party control.
Use the best guess
|
|
|
|
|
Hi,
I have installed a windows service in any of the work station in my network.
It sends emails periodically.
I want to remove the service, But I forgot the Node where i installed it.
Now every morning I m getting emails as result of that windows service.
Can you tell me how to trace, where this service is installed, so that I can remove it.
Thanks
By:
Hemant Thaker
|
|
|
|
|
I have no idea what type of mail server you are using, but looking into the log files and mail storage you should be able to work out where from the email was sent.
Regards,
— Manfred
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
|
|
|
|
|
Short the Installed program in Add/Remove section of Control panel with date.
|
|
|
|
|
I am developing a project(ASP.NET & C#) containing Digital Signature. I can sign a document using PFX file. Is it possible to digitally sign a PDF file using USB token through C# program? If yes, please give me sample code ..
Thanks in advance
Shiny
|
|
|
|
|
dsshiny wrote: Is it possible to digitally sign a PDF file using USB token through C# program? It's possible to sign a PDF using a certificate, and yes, that can be built with C#. What USB-token? If that's what contains the certificate, then you'd be writing some additional code to read from it.
dsshiny wrote: If yes, please give me sample code .. There's quite some examples on digitally signing a PDF. I suggest you start there
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
hi Eddy Vluggen,
thank u for your quick reply..
In my question, i mentioned 'USB Token' for the USB device/Smart card in which the certificate contains..
i tried many sample code . But i didnt get the output..
please help me to find the solution
|
|
|
|
|
Hello again Code Project!
Here is the deal, I have two separate functions called InputData and DisplayPlayerData. Each of these functions have loops inside of them. The loop in InputData is supposed to get player's name and player's score, breaking the loop with a sentinel and not to exceed 100 players. No problem.
The other function, DisplayPlayerData, has a loop to display the name and score of each player.
I am thinking that I could use a state controlled while loop. What I really need to know is how to bring the input data from the first function into the second function. Would this function look like public static void DisplayPlayerData(){} or do I need to declare a few variable in the ()?
|
|
|
|
|
Are you working in WinForms, or WPF here, or ... ?
Is there a strong organic reason you want to separate out the entry process for players' names and score from the task of displaying them (in a list ? a grid ? a textbox ?) ?
A little more detail about your goals here, please.
~
“This isn't right; this isn't even wrong." Wolfgang Pauli, commenting on a physics paper submitted for a journal
|
|
|
|
|
Do it using Lambda expressions. You dont have to create two separate functions for that.
Everything you want will be done in just two or three lines of code.
Even you can do it without any "for" or "while" loop
Regards,
CodeBlack
|
|
|
|
|
Hi ,
when page load I am downloading the report pdf from ssrs and storing it in my local successfully , question is when I load the page I need to attach the same file into the textbox.text.
ex : same like it shows in the outlook attachment. Please help me , it should be in C#/Jquery/Ajax .
Note : we are not using the upload control
please reply answer to this or send to my mail id rpaulvincent@gmail.com
thanks
R.V.Paul
|
|
|
|
|
when page load I am downloading the report pdf from ssrs and storing it in my local successfully , question is when I load the page I need to attach the same file into the textbox.text.
You want to attach file or you want to display path of the file in textbox ?
Get the path of the file when you create report. and set it as a textbox's text.
simple.
when you need to upload it or attach it with email use the same path.
Hope this will help.
Regards,
CodeBlack
|
|
|
|
|
Does Application.Run((new Form1()); in Program.cs load on the Stack or Heap? I am asking to see if all methods inside the Form1 code are methods that go on the Stack or Heap.
Also, if I create a new Form object from Form1 - does it load on the Stack or Heap?
What about methods processed inside of new objects. Example:
public partial class Form1 : Form
{
public Form1()
{
Doofus d = new Doofus();
}
}
public class Doofus
{
Doofus()
{
createsomething();
}
void createsomething()
{
string a = "whiskey";
}
}
In this, does d's createsomething() method go on the stack or the heap?
I have read several articles on this, and I have "googled it myself". I'd just like a straightforward answer if anyone knows.
Thank you
modified 13-Aug-13 11:06am.
|
|
|
|