|
|
thank you problem solved
K.Gayathri
|
|
|
|
|
hi friends
i have a button on the click of which i get textboxes..
say at one time i want 2 textboxes and the next time i want 3 textboxes and may be next time i want 1 textbox ...
and then i choose anyoption from the dropdownlist
say the options in the dropdownlist is:
as checkboxes
as radiobuttons
as a select menu
dont display it
and i choose any one may be checkbox or may be radio buttons and click on another button(save button) now
on my new aspx page i need the options entered in the textboxes to be accompanied by the options from the dropdownlist say checkbox or radiobuttons hope you got my question now...
K.Gayathri
|
|
|
|
|
What is your question?
No comment
|
|
|
|
|
i have a button on the click of which textboxes will appear and i have a dropdownlist which has the options as:
as checkboxes
as radiobuttons
as a select menu
dont display it
if i click the button say 5 times 5 textboxes will appear and i type in one,two,three,four,five and choose radiobuttons from the dropdownlist and click save button in that page it should redirect to another aspx page where i will have one,two,three,four,five along with radiobuttons for each...
so how to do it...
K.Gayathri
|
|
|
|
|
You can create controls in your code and add them to the page dynamically
This assumes you are passing the number of controls to create and the type of control (as an int) to the page.
void CreateControls()
{
int numberOfControls = Request["numberOfCtrls"];
switch(Convert.ToInt32(Request["ctrlType"]))
{
case 1:
for(int x = 0; x < numberOfControls; x++)
{
RadioButton ctrl = new RadioButton();
... set any properties ...
Controls.Add(ctrl);
}
break;
case 2:
...
}
}
No comment
|
|
|
|
|
hi friends
i have created the controls
but dont know how to get the value from such controls can anyone help me plz...
//code to create the dynamic textboxes
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Session["Count"] = "0";
}
}
protected void lnkAddGroup_Click(object sender, EventArgs e)
{
int i = Convert.ToInt32(Session["Count"].ToString());
int k = 0;
for (k = 0; k <= i; k++)
{
TextBox txt = new TextBox();
txt.ID = "DynamiceTextbox" + Convert.ToString(k);
//txt.Text = "" ;
ImageButton img = new ImageButton();
img.ID = "DynamicDeletebutton" + Convert.ToString(k);
img.ImageUrl = "~Images/delete_icon.jpg";
HtmlGenericControl lineBreak = new HtmlGenericControl("br");
PHGroupName.Controls.Add(txt);
PHGroupName.Controls.Add(img);
PHGroupName.Controls.Add(lineBreak);
Session["Count"] = Convert.ToString(Convert.ToInt32(k + 1));
}
}
PHGroupName is the placeholder name....
K.Gayathri
|
|
|
|
|
hi friends
i am using the following code:
int i = Convert.ToInt32(Session["Count"].ToString());
int k = 0;
string[] strTextBoxValues = new string[] { };
for (k = 0; k <= i - 1; k++)
{
string textboxval = "DynamicTextbox" + Convert.ToString(k);
TextBox textval = (TextBox)this.Page.FindControl(textboxval);
textval.ID = textboxval;
Response.Write(textval.Text);
}
but the findcontrol method returns null....and any one to help me in this issue as i am stuck in my work...
K.Gayathri
|
|
|
|
|
I want to allow the users to generate a long running report to PDF on demand. Basically they will click a link and it will pop up a new window and let them know what the progress of their report is and allow a PDF download when they are done.
I am using the Telerik reporting module for reporting as the server is a hosted server that does not have SSRS. The whole thing is a big pain in the butt. Here are my hurdles.
1. I can pop up the new window, and have it generate the report and then return a view, but if the user closes that window before the report is done there is a problem.
2. The view doesn't get returned until the report is done, making it a useless blank window until the report is done where it would be nice to even have it say just something until the report is done.
The report is several thousand pages, and several hundred mb, so could take several hours. Anyone have methodology pointers here? As a hosted web app on GoDaddy, I am not sure what to do about calling an external reporting service, or even how to build one to begin with.
Thoughts? Cheers, --EA
|
|
|
|
|
Here are some possible solution you might consider it.
eddieangel wrote
1. I can pop up the new window, and have it generate the report and then return a view, but if the user closes that window before the report is done there is a problem.
You can use jQuery or javascript that prompts the user to confirm whether or not he/she wants to close the process.
$(window).unload( function () {
var result = comfirm("Are you sure you want close this window ?");
if(result) {
$.ajax({
type: "POST",
url: "ProcessReportPDF/GeneratePDF",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
alert("Process successfully halted!");
}
});
}
});
eddieangel wrote
2. The view doesn't get returned until the report is done, making it a useless blank window until the report is done where it would be nice to even have it say just something until the report is done.
You can use a jQuery UI progress bar[^] before showing the actual generated report.
Hope it will help you well.
Wonde Tadesse
MCTS
|
|
|
|
|
Has anyone ever developed an electronic health record system in .Net? Is this something one person could develop or does it require a team?
|
|
|
|
|
fresh1207 wrote: Has anyone ever developed an electronic health record system in .Net? Is this something one person could develop or does it require a team?
not sure this is the right forum for either of these questions. complexity of a project can only be measured by the size of the requirements behind it.
in my experience... I have seen two different EHRS systems built in ASP.Net and both were done with a team of engineers.
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
This is definitely NOT something to be done by a single person. I've been involved in projects for this, using .NET, that included teams of developers, business analysts and legal representatives.
No comment
|
|
|
|
|
I'm developping a demo HRS system and let me say it is very very complex, you can reuse the requirements from HL7, I have a huge quantity of documents about it from my Thesis.
|
|
|
|
|
|
Please don't post links to questions in other forums. Your original question has already received some responses. If you need more help then edit your question, or respond to the people who have offered advice.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Hi,
How to block the login of same user at different location in asp.net.
Thankyou,
ypki
|
|
|
|
|
Do you mean to allow users to login on one machine only such that they can't simultaneously login from another machine? Presumably you are tracking that users have logged in? If so, there are a number of ways to do this, the simplest being check to see if they are already logged in if. If they are, refuse the new login. You could also capture the IP address of the machine and refuse a login from another IP address if they are still logged in on the first machine. This also means handling logging out and dead sessions - leave you to figure out the nuts and bolts of all of this as appropriate to your application.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
hi friends
i need to know how to dynamically add textboxes on the click of a button
say:
if i click the button once 1 textbox should be added
if i click the button second time another textbox should be added and so on...
so how to do it...
any help
K.Gayathri
|
|
|
|
|
public partial class newTemplate : Form
{
int i = 0;
int x = 22;
int noofcontrols = 0;
TextBox[] t1 = new TextBox[25];
Label[] l1 = new Label[25];
private void button2_Click(object sender, EventArgs e)
{
t1[i] = new TextBox();
l1[i] = new Label();
t1[i].Size = new System.Drawing.Size(244, 22);
t1[i].Location = new System.Drawing.Point(85, x);
l1[i].Location = new System.Drawing.Point(60, x);
l1[i].Font =new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
l1[i].Text = i.ToString()+". ";
t1[i].TabIndex = i;
t1[i].Name = "txt"+i;
panel1.Controls.Add(t1[i]);
panel1.Controls.Add(l1[i]);
panel1.AutoSize = true;
panel1.Show();
panel1.Refresh();
t1[i].Focus();
i++;
x = x +30 ;
noofcontrols++;
}
}
|
|
|
|
|
Seeing that this is posted under asp.net i will give you a client side solution in "jQuery":
<div id="divWithTextBoxes">
<input class="text-boxes" runat="server" type="text" />
</div>
<input id="btnGenerateTxtBoxes" runat="server" type="button" onclick="GenerateTextBoxes( $('#divWithTextBoxes') );" />
function GenerateTextBoxes( sender )
{
var txtBoxHtml = '<input class="text-boxes" runat="server" type="text" />';
sender.append( txtBoxHtml );
}
To make it easier for you, i added a css class (text-boxes) that you can later use to retrieve the values of your textboxes if need be and below is how you can achieve that using "jQuery":
function GetTextBoxValues()
{
var arrayOfValues = [];
$( '.text-boxes' ).each( function(){
if( $(this).val() != '' )
{
arrayOfValues.push( $(this).val() );
}
});
}
Hope that helps,
Morgs
|
|
|
|
|
now I need to request one thing,
in my database table, there is date column as datatime value.
I want to generate using the year of this 'date' column.
for example , I want to do like below:
id | name | date | caseID
1 | Peter | 12/1/2011 12:00:00 AM | 201100001
2 | Willam | 12/2/2011 12:00:00 AM | 201100002
3 | Willam | 12/3/2011 12:00:00 AM | 201100003
4 | Alex | 1/1/2012 12:00:00 AM | 201200001
5 | Willam | 2/2/2013 12:00:00 AM | 201300001
in this table,
in 'caseID' column, I want to generate like above..
for year 2011,
201100001 // (2011(year) + 00001)
201100002 //(2011(year) + 00002)
....
201100010 //(2011(year) + 00010)
When reached year 2012, I want to auto start from 00001 like that:
201200001
201200002
...and so on.
please help me how I have to do for caseID column in my example table.
thanks all.
how I have to pass year parameter value & how I have to create user defined function. please
|
|
|
|
|
|
|