|
how to validate textbox in datagrid if i didn't enter the value in textbox.i dont want to use requiredfeild validator.if press button it sholud show that value should be entered.plzz send me it is very urgent if any body knows it.
|
|
|
|
|
I think u can use javascript for this...
|
|
|
|
|
Dear all
i am making web application using asp.net ,C# (visual studio 2005) with sql2000.
In a web page there is listbox with multiple seelct option. i want to save all selected option of listbox
along with other web page infomation on Save button. What i am trying is first i save all selected item to array list
and then inserting it to the table.
i am assaigning to arraylist as
int count = 0;
string[] names = new string[10];
for (int i = 0; i < Listbox1.Items.Count; i++)
{
if (Listbox1.Items[i].Selected == true)
{
count++;
for (int j = 0; j < 7; j++)
{
names[count] = Listbox1.Items[i].Text;
//Response.Write(@names[j]);
break;
}
}
}
Is it a better approach. or any other way is there so that multiple selecting item can be fetched on save button .
please guide me
thank
regards
imran khan
|
|
|
|
|
Unfortunately the server is down, but here's what I know. I received an error when the page tried to access an Application[variable] that I believe was set earlier in the application.
This application worked in my dev environment, but doesn't work on the production server. One thread I had read mentioned that the background thread is ran as ASP_NET account. If that's the case, wouldn't this account still have access to Application[variable]???
I'm at my wits end. I wish the server wasn't down so I could do some more troubleshooting. Any ideas would be great...
|
|
|
|
|
Hi,
We have a folder on our LAN which is about 11GB in size.
I need to build a web interface to it which will allow users
to search the repository.
This is going to be an indexed based search, which means that
results will be dependent on the content of the files. This in
turn implies that we will need to index the contents first.
The filetypes are: office docs, pdf's and zips.
Any tools? frameworks? or suggestions regarding this?
I've heard of dotLucene, but when I tried it, the stupid tool
did nothing other than delete every file in the folder to be
indexed. Thank god I didn't try it on the actual LAN folder.
Please help. This is really urgent.
ASP - AJAX is SEXY. PERIOD.
|
|
|
|
|
i wana do "Changing Master Pages Dynamically in asp.net". one of my masters page code is
public partial class MasterPage : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
public partial class MasterPage2_master
}
}
but in linkbuttons control code error comes .and i m doing this from the tutorial
"http://www.exforsys.com/content/view/1627/354/1/0/"
can anyone check this tutorial and tel me the problem.
Chohan
|
|
|
|
|
The tutorial is bugged in some places, especially when writing the LinkButton_Click event handler. So here's what you have to do:
1. Add two master pages to your website, for example MasterPage1.master and MasterPage2.master. Edit them a you like, but make sure they contain the same number of ContentPlaceHolders.
2. Add a webform, for example Default.aspx, and make sure "Select master page" chechkbox is clicked.
3. When asked for the master page, select one from the earlier created ones.
4. Add two LinkButtons (or regular Buttons) to Default.aspx. Set the Text property as you like, and hook them up with Click event handlers.
5. In one of the Click event handlers write the following:
Session["Master"] = "~/MasterPage1.master";
Response.Redirect(Request.Url.ToString());
while in the other change "~/MasterPage1.master" to "~/MasterPage2.master".
6. Add the following to the page:
protected void Page_PreInit(object sender, EventArgs e)
{
if (Session["Master"] != null)
this.MasterPageFile = (string)Session["Master"];
}
Now run the web site, and test the functionality by clicking the LinkButtons.
|
|
|
|
|
Please can you tell me the path of Global Assembly Cache(GAC).
hi, can you please help me to clarify this doubt.
|
|
|
|
|
GAC path will be like this
C:\[windows root path]\assembly
In my case its
C:\WINDOWS\assembly
|
|
|
|
|
i used crystal report in vs2005. i work wirh c#and web application. count of my columns in repord are deffrent its count depended to database .how can i set the columns in crystal report?
can anybody help me???
|
|
|
|
|
Hi,
I have dynamicaly created a template Column at runtime. It works fine but
during postback it vanishes.
I have to retain the dyanamicaly added column during postback so what to do.....?
Thanks in Advance.............
Yuva
|
|
|
|
|
hi
i want to make a web application which can do some thing like send some emails on the specific time automatically without calling the application by any one means at specific time server automatically call that file and that sends the email
i didn't got any idea that how to do so can some guide me that how to do this
thanks in advance
regards
shezi
|
|
|
|
|
You are describing a "Windows Service[^]". This has nothing to do with Web Application and therefore ASP.NET is not relevant.
led mike
|
|
|
|
|
Actually i want my application to send birthday cards on the birth date of the member so i actually don't know what to call it exactly if u can explain some...... i m using asp.net (c#)
shezi
|
|
|
|
|
why we will give connection srting in web.config and please mention the code or syntax.
I Mohammed Abdul Nasar,my qualification is Msc(computer science),working in top mnc.
|
|
|
|
|
Hello all
I have a one doubt regarding the asp.net
1)when i try to open my asp.net project i am getting this error
visual studio .NET has detected that the specified web server is not
running ASP.NETversion 1.1. you will unable to run ASP.NET web
applications or services.
So kindly suggest to avoid this and open my project
hai all please clarify my doubts
|
|
|
|
|
You may have two versions of .NET framework.
|
|
|
|
|
my .net farme work is 1.1 version only
could tell me clearly
hai all please clarify mny doubts
|
|
|
|
|
Go to IIS and browser to Default Website.
Then open the Properties of Default Website.
In the Properties Dialog go to the ASP.NET tab.
There you can see a Drop-down box for ASP.NET version.
Check whether it is set or not or check whether it has more than one version.
|
|
|
|
|
Go to IIS and browser to Default Website.
Then open the Properties of Default Website.
In the Properties Dialog go to the ASP.NET tab.
There you can see a Drop-down box for ASP.NET version.
Check whether it is set or not or check whether it has more than one version.
hello sir...
i open the Properties of Default Website.
but i didn't get the asp.net tab so please tell me
if i check the default website is in stop mode
Many Thanks!!!!!!!!
hai all please clarify mny doubts
|
|
|
|
|
sir
how to register the aspnet_regiis-i
in command prompt
Many Thanks
hai all please clarify mny doubts
|
|
|
|
|
Ok so I have a site which is made up of several pages. All pages use one single masterpage file and this is great because I only have one file to make global changes. I need to put a Google Map on one of my pages but the thing is this means adding a chunk of Javascript into the head of the page and a OnLoad function in the Body tag. Now obviously all other pages produce an error because they dont have the map div required to put the map in.
How can I avoid creating a seperate master page and dynamically produce the Javascript when needed. I can managae the Javascript in the head of the page using; ClientScript.RegisterStartupScript. but what about the Onload function. How can I add that in to the body tag dynamically??
This is the second time I have had this problem and was unable to find an answer the last time. Would greatly appreciate any feedback on this one. Thanks
|
|
|
|
|
Sam Heller wrote: but what about the Onload function. How can I add that in to the body tag dynamically??
There are two ways that come to mind:
+ You can use javascript to register the client side function for the onload function of the body element.
+ You can mark the body element with the runat="server" and then you can define a body property (with the HtmlGenericControl) in either the Master Page or a base Page class. Now that you dynamically add your own script to the body element using the Attributes collection.
|
|
|
|
|
Ok thanks that seems to work great. For those interested i used a select statement like this to add the onload and onunload events.
case "/prototype/map.aspx":
//Add in Google Maps code
BodyTag.Attributes["onload"] = "load()";
BodyTag.Attributes["onunload"] = "GUnload()";
break;
The google maps code was then added using
Page.ClientScript.RegisterStartupScript(this.GetType(), "MyScript", myScript, true);
|
|
|
|
|
Hello,
I have a DataGrid (bound to a table) which outputs like this:
JobName - FullTime - PartTime<br />
=============================<br />
Dentist - 1 - 0<br />
Doctor - 1 - 0<br />
Baker - 0 - 1
I use 3 BoundColumns, as such:
asp:BoundColumn DataField="job_name" /<br />
asp:BoundColumn DataField="full_time" /<br />
asp:BoundColumn DataField="part_time" /
My question is this: How can I replace the 'FullTime' and 'PartTime' columns with a single column, which contains a string, either 'Full Time' or 'Part Time'?
I cannot make any changes to the database here.
Thank you!
|
|
|
|