|
Hi,
I am using .net 2.0. I created a class file "condb.cs" in my website. I declared a variable in Globale.asax. I can access that value in first.aspx.cs page and i can't access that value in condb.cs file. Please help me to retrieve the global value in .cs file.
Thanks.
|
|
|
|
|
Why not to use application variables? like:
Application[key] = value;
Intelligence is almost useless for those who have nothing else!
Email: caiokf@gmail.com
|
|
|
|
|
Hi,
Application variables can be used in aspx.cs files only. I have to access it in a separate .cs file. So, now I used HttpContext to access that global variable. If you know some other methods for that please refer me.
Thanks.
|
|
|
|
|
Application variables can be accessed in separate .cs files using:
HttpContext.Current.Application[key]
Intelligence is almost useless for those who have nothing else!
Email: caiokf@gmail.com
|
|
|
|
|
Hi,
Thanks for your quick reply. I tried the method you have given. I got it right. Thanks.
|
|
|
|
|
Hallo,
I have a ajax modalpopupextender which pops up a panel for a button click. Every thing works fine
The popupcontrol panel has some controls, one of them is a label which is DynamicControlID for the popupextender.
I am rendering a radiobuttonlist dynamically. I am creating ListItems and adding them to Radiobuttonlist, and it is rendered.
Problem:
The text of some of the radiobuttons exceeds the panel width (i do not want to increase the width of panel). How to wrap the text of radiobutton, so that it can appear in a multiline.
For example after rendering the text is as below:
<table id="Table1" border=\"0\" style=\"font-size:Medium;width:40%;padding-top:24px;\">\r\n\t<tr>\r\n\t\t<td><input id=\"RadioButtonListCCList_0\" type=\"radio\" name=\"RadioButtonListCCList\" value=\"1316\" checked=\"checked\" /><label for=\"RadioButtonListCCList_0\">AR,AT,AU,BA,BG,BO,BR,BX,CA,CH,CL,CN,CO,CR,CU,CZ,DE,DK,DO,DZ,EC,EG,EM,ES,ET,FI,FR,GB,GR,GT,HN,HR,HU,ID,IE,IL,IN,IS,JP,KE,KR,MA,MX,MY,NO,NZ,PA,PE,PH,PL,PT,RO,RS,SE,SI,SK,TH,TN,TR,TW,US,VE,VN,ZA</label></td>\r\n\t</tr>\r\n</table>
Thanks for the help
|
|
|
|
|
Hi,
I am using vb.net and db2 database for my application. When I open attachments in my local webserver, the attachments are opening properly. But I am facing problem when I try to open same attachments in Test envoirnment, I am getting error message because datareader is not reading BLOB data from database.Its giving the BLOB of length zero.
It seems there is some problem with IIS settings. Please help me to solve this problem.
Note: Attachment data is saved in database.
Thanks in Advance
|
|
|
|
|
BLOB is binary data. I guess either IIS or Firewall puts restrictions on transferring data like that. You might wanna test it by disabling the firewall.
|
|
|
|
|
Hello guys
I have following function to get the list of email address from the database. When i pass this list to mail message BCC function in gives me the error which i have mentioned in subject. Please help me out
public void getEmailtoUsers()
{
DataTable getemailList = news.getEmailList();
foreach (DataRow objDr in getemailList.Rows)
{
emails += objDr["Email"].ToString() + ";";
}
emails = emails.Substring(0, (emails.Length - 1));
}
// email sending function
applicant.From = new MailAddress("support@supportimrankhan.org", "Support Imran Khan");
applicant.To.Add(new MailAddress("imran.hamid@supportimrankhan.org", "Imran Hamid"));
applicant.Bcc.Add(new MailAddress(emails));
|
|
|
|
|
<b>Hi dear friends,
I am using VS2005,i would like to know about that how to display the datagrid details in on page to an another page lable.
Thanks & With Regards,
M.S.Amirtharaj Vijay</b><b></b>
|
|
|
|
|
Can you explain again in English please.
Deliver yesterday, code today, think tomorrow.
"http://www.heuse.com/cphumor.htm"
|
|
|
|
|
Please use proper subject.Describe your problem little bit more
Cheers!!
Brij
|
|
|
|
|
Better subject line and more clear inquiry may allow people to help you better.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi ,
I need to implement nested collapsible panels.
each collapsible panel from main , will hold few more collapsible panels
Will Ajax toolkit collapsible panels slow down the performance.
DO anyone have any feedback for a new bee.
regards
vijay
|
|
|
|
|
I am opening a .aspx page on button click event. can any one tell me how to hide the title,minimise and close button of the .aspx page. i want that the page looks like a popup window.
thanks
|
|
|
|
|
|
The problem is that a user should be able to see these buttons. Its difficult to change the browser display to customize for a user.
Deliver yesterday, code today, think tomorrow.
"http://www.heuse.com/cphumor.htm"
|
|
|
|
|
how to give search facility to user
how do i use google api
|
|
|
|
|
nikhil1234 wrote: how to give search facility to user
Microsoft Indexing Service
nikhil1234 wrote: how do i use google api
what?
Deliver yesterday, code today, think tomorrow.
"http://www.heuse.com/cphumor.htm"
|
|
|
|
|
hey i have used this but not working properly for excel files
|
|
|
|
|
Hi,
I have an aspx page in which i'm using a popup(The popup is a dynamically created iframe - we will assign the url to it when we need the popup). In the aspx page there is agridview inside an update panel. The popup will accept some data and on closing , the gridview should refresh and show the updated values. I'm using 'window.location.reload()' to refresh the parent window. It is possible to popup the window, add new data, close the popup and the parent window gets updated now both in Firefox and in IE7. But when i'm using IE7 the whole window (parent) gets refreshed and i lose the selection made on checkboxes. But it works fine in Firefox, ie the checkbox selections remain same when its coming back from popup)
can anybody help me to figure out the problem?
|
|
|
|
|
hi friends,
i am getting trouble to access more then two class files with the concept of inheritence(drived class)......means.... i having one base class... i have developed one more class want to include drive for the previous class......
and also... kindly give me idea to include..values objects... to acces the diffent page controls...
bye,
forever friend,
sarala.s
|
|
|
|
|
are both classes in the same namespace?
You can group classes into namespaces and include in other classes.
|
|
|
|
|
yes.. exactly i tried as u said...but getting probs....
can u suggest to include .. namespace and include the class??
or any gud website to refer???
|
|
|
|
|
I'm not sure whether you are looking for this, but i'm giving you an example
first.cs
--------
using System;
using System.Data;
using System.Configuration;
using System.Linq;
.
.
.
namespace Test
{
public class Images
{
public memberFunction();
{
//do something
}
}
}
----------
second.cs
---------
using System;
using System.Data;
using System.Configuration;
using System.Linq;
using Test; // including the namespace
.
public class DB
{
private method1()
{
Images images=new Images();
images.memberFunction();
}
}
Does it make sense?
|
|
|
|
|