|
sorry.... i forgot to copy that line in my code...
but i have already do that...
Regards...
Vijay Jain
"One thing you can't recycle is wasted time."
|
|
|
|
|
First of all, How is your dropdown list added in the UI? Please make sure you are adding the same dropdown returned from the function in a panel or a table.
Secondly do check if your dropdown is filled while debugging in your function scope (Bind_DdlBranch in this case).
Hope that helps...
When you fail to plan, you are planning to fail.
|
|
|
|
|
I want to insert one value to sql database table.
when inserted, I want to check if this value is already stored in database table.
if the present value is already in database,
I want to show message box or something notification to user.
if the present value is new one, it will be inserted to database.
So, how to check for this condition?
I want to check the present inserting value against all inserted value in database.
|
|
|
|
|
If Not Existes(Select fieldname From tablename Where fieldname=yourvale)
Begin
End
Else
Begin
End
hope this will help
Regards...
Vijay Jain
"One thing you can't recycle is wasted time."
|
|
|
|
|
Hello there.
I have a web service which I know in working condition. I just modify it and want to test out. I run it in debug mode. IE appears and the address is http://localhost:2962/xmlService/Service1.asmx.
I am accessing the web service from a PDA. (I connect the PDA to my PC using ActiveSync.) However it cannot connect to the web service. I have searched the web and find out better to use the computer name. I change the address to http://mypc:2962/xmlService/Service1.asmx as my computer name is mypc.
And again, it fails. Error message: The remote name could not be resolved.
I even changed to IP address. Error: Unable to connect to the remote server.
I even use IE in the PDA to access both address. Both fails.
Please help.
modified 7-Dec-11 7:25am.
|
|
|
|
|
It may be that your pda cannot resolve the name localhost.
Try 127.0.0.1:2962
Explanation:
Your computer gets a ip address, dns resolvers from a dhcp server, or is hard coded. I don't know where your pda gets it's ip numbers. Most cellphones get it from the cellphone network for single radio device, so a cellphone won't recognize names in your network. If your pda is using wireless in your office, then it should get it's numbers from your wireless router, but if your wireless router's dhcp has it's dns set to the router address, then the names won't resolve, because it's pointed to an external dns server.
I really can't imagine the webdev (F5) supporting anything outside of windows or your box, and beyond the computer itself because the webdev has no security features, and cannot protect the Windows OS, from being modified from an outside source. It may be restricted to just your desktop. The built-in IIS server is restricted to your subnet only, so you can't use it as a commercial web server.
modified 7-Dec-11 15:12pm.
|
|
|
|
|
I tried that. I tried the 127.0.0.1. No it does not work.
|
|
|
|
|
Well I already had a test environment setup for other testing, but it didn't work for me. And my firewall is turned off.
|
|
|
|
|
Hi,
I want to place print option as user control.
How to pass gridview control id,some label and texbox id etc to user control.
Guhananth.S
|
|
|
|
|
Hello All,
There is a form when user fill all the details and click on the save button and data shall be saved in the respective table in database as well there should be a screen shot of that form and save in the folder at server side in the form of image .
Please update
|
|
|
|
|
yrishi wrote: Please update
Please make your question clear.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
There is a form when user fill all the details and click on the save button and data shall be saved in the respective table in database as well there should be a screen shot of that form and save in the folder at server side in the form of image .
|
|
|
|
|
You can easily save the data from your form, there are many resources that cover ASP.NET and ADO.NET.
You will not be able to have a screen shot. Code-behind is executed on the server not the client, so there would be no screen. The only way would be to use JavaScript or have an ActiveX control. The latter could easily be disabled by the user, if they allowed it to be installed at all. With the former there is no functionality available that I know of to allow a screen shot to be taken. Would you want some web page you visit to be able to take shots of your screen?
No comment
|
|
|
|
|
You can create a PDF file of that form instead on image.
You know the format of page, so create a string with proper formatting and from this string create PDF file using iTextSharp or any other PDF library.
regards

|
|
|
|
|
hi friends
i have a gridview and a link button on each row of the gridview on the click of the link button i need to get the datakey value of that row so how to do it.....
anyone to help me plz...
K.Gayathri
|
|
|
|
|
|
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
|
|
|
|