|
Add javascript to calculate total in onblur event of the textbox in EditTemplateColumn of Column2 in the GridView.
..Go Green..
The 30,000th post in Site Bugs / Suggestions[ ^] recently is my 3rd feat in posting the magical numbered post. I posted the 500th and 1000th post in GIT.
|
|
|
|
|
thanks. got an idea.
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
|
1) Of course not, Microsoft does not make software for Enterprise applications
2) Its up to you to decide what data and what modules. How the hell do we know?
3) You want more than the project template provided by Visual Studio?
4) See #3
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Is there any way we might get an idea of what kind of Enterprise level application? Perhaps we could ask Mr. Spock?
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
1. It is like Kellog's Special K, it can only help as part of your calorie controlled diet.
2. The architecture should fit the application needs
3. All open source projects are a possibility
4. The ones that fit your need best.
This reply was brought to you by Zen, and the word "sarcasm". You haven't really asked any concrete questions, so I haven't given any concrete answers. That is why I gave you a vote of 1.
|
|
|
|
|
HI
I am new in ap.net , i want to create an application in social networking site in asp.net.like facebook.
I search the tutorial regarding socialnetworking website that help me in making a website but I couldnot fint any good result.
Can some some boby help me
Regard
javaid
|
|
|
|
|
This is a ridiculous question: if you want to create a social networking site you're going to have to a) learn to program and b) figure out how to design an application that does what you want and c) dlearn how to research and use google. Just like the rest of us only you seem to want to cut out the years of hard work and learning that we all put in.
"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
|
|
|
|
|
Watch the movie "The Social Network" and do everything the main character does, but in C#.
|
|
|
|
|
I may just be mean-spirited, but I really want to ridicule this question. I appreciate that you are new to asp.net, but just think a little bit. Who on earth would post a tutorial on building a complete social networking site. Anyone who would take the time to do that would simply build the site and call it "facebook" or "myspace" or "mySuperDuperOverDoneIdeaSpace".
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
When I hover Menu control, it doesn't show sub nodes of sitemapDatasource.
Here is the code:
GENERAL FORM subnode is not popup.
|
|
|
|
|
And how is your menu control configured? What is the StaticDisplayLevel?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Here is the code for menu control:
<asp:Menu
ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" BackColor="#FFFBD6"
CssClass="genstyle" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em"
ForeColor="#990000" Orientation="Horizontal" StaticSubMenuIndent="10px">
<StaticSelectedStyle BackColor="#FFCC66" />
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicHoverStyle BackColor="#990000" ForeColor="White" />
<DynamicMenuStyle BackColor="#FFFBD6" />
<DynamicSelectedStyle BackColor="#FFCC66" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<StaticHoverStyle BackColor="#990000" ForeColor="White" />
</asp:Menu>
|
|
|
|
|
|
My StaticDisplayLevel="1"
When I take mouse over ("General Forms"). It pops empty white box. I want to menu to show subgroup items.
Thanks In Advance.
|
|
|
|
|
Hi All,
Here i have 3 rows in my table with the follwing data with 3colums(WatchUrl,SheduleType,Time)
http://www. xxx .com/ abc /Welcome.html Every Day 30
http://www.xxx.com/ abc /Captial.html Every Day 1
http://www.xxx.com/abc/Histroy.html Every week 2
What i have to do is to create a window service that call the webservice by pasing the url.the webservie will download the page content and compare it with previous content if it differs i have to notify it to the user,that new content is added.i did everyting and its working fine .But i dont know how to shedule the timing using timer to call the window service at regular interval.
Here for 1st row i have to call the window service everyday in 30 min interval
for 2nd row everyday in1 hour interval and for 3rd everyweek in 2 hour interval
here i dont know how to mange multiple timers and maitain there individulal states to call the service.
Please Any help or reference would be appreciated.
Thanks
Anand.R
|
|
|
|
|
One method would be to add a column to your table like, "Next Update DateTime".
Your service would do something like this:
1)Read a row from the table.
2)Call the webservice, do your compare, etc, take the current datetime and add the ScheduleType+Time and set the "Next Update DateTime" to that value.
3) Wait 5 min
4) Loop through the table to see if the "Next Update dateTime" has been reached, if so do your update thing.
That is a very basic idea. As you add rows to the table, you don't have to change your core logic. It may not be the best solution, but it is straight forward.
Good luck.
|
|
|
|
|
Hi,
Thanks for the reply i completed the task
|
|
|
|
|
hi
Is it possible to run a asp.net web application run without web.config file if i provide all setting in machine.confg file?
|
|
|
|
|
YES : Because all the configuration settings will be available under MACHINE.CONFIG file, by default these settings will be applied to all asp.net applications. The MACHINE.CONFIG file will be automitacally loaded when .net framework is installed.
Thanx and regards,
Tash
|
|
|
|
|
hi guys
i want to give a download in asp.net for mobile
this code is true for computer but in mobile not true
in computer show download form but in mobile show the content of file
such as a html page open page a txt file show content of file a zip file show binery code and such
whats problem
|
|
|
|
|
my code is
<br />
{<br />
string filepath = Server.MapPath("test.bhd");<br />
<br />
FileInfo file = new FileInfo(filepath);<br />
<br />
if (file.Exists)<br />
{<br />
Response.ClearContent();<br />
<br />
Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);<br />
<br />
Response.AddHeader("Content-Length", file.Length.ToString());<br />
<br />
Response.ContentType = ReturnExtension(file.Extension.ToLower());<br />
<br />
Response.TransmitFile(file.FullName);<br />
<br />
Response.End();<br />
}<br />
}<br />
private string ReturnExtension(string fileExtension)<br />
{<br />
switch (fileExtension)<br />
{<br />
case ".htm":<br />
case ".html":<br />
case ".log":<br />
return "text/HTML";<br />
case ".txt":<br />
return "text/plain";<br />
case ".doc":<br />
return "application/ms-word";<br />
case ".tiff":<br />
case ".tif":<br />
return "image/tiff";<br />
case ".asf":<br />
return "video/x-ms-asf";<br />
case ".avi":<br />
return "video/avi";<br />
case ".zip":<br />
return "application/zip";<br />
case ".xls":<br />
case ".csv":<br />
return "application/vnd.ms-excel";<br />
case ".gif":<br />
return "image/gif";<br />
case ".jpg":<br />
case "jpeg":<br />
return "image/jpeg";<br />
case ".bmp":<br />
return "image/bmp";<br />
case ".wav":<br />
return "audio/wav";<br />
case ".mp3":<br />
return "audio/mpeg3";<br />
case ".mpg":<br />
case "mpeg":<br />
return "video/mpeg";<br />
case ".rtf":<br />
return "application/rtf";<br />
case ".asp":<br />
return "text/asp";<br />
case ".pdf":<br />
return "application/pdf";<br />
case ".fdf":<br />
return "application/vnd.fdf";<br />
case ".ppt":<br />
return "application/mspowerpoint";<br />
case ".dwg":<br />
return "image/vnd.dwg";<br />
case ".msg":<br />
return "application/msoutlook";<br />
case ".xml":<br />
case ".sdxl":<br />
return "application/xml";<br />
case ".xdp":<br />
return "application/vnd.adobe.xdp+xml";<br />
default:<br />
return "application/octet-stream";<br />
}<br />
}<br />
|
|
|
|
|
Hi guyss.. Actually in my web page a person-X can assign a task to another person-Y and on the dash board of Y that task will be displayed on opening the task it will show him the details of the task. the task can be completed by a series if activity. Now i have a button called add activity on clicking the button it redirects to the activity page. Now here i need some help actually the activity page has a status dropdownlist which has two options which is open and closed.. a person can create an activity with status open and later when the activity is over he can edit the activity and change the status to close.. Now when a person changes the activity status to close i need a confirmation box to popup asking the user whether the TASK IS COMPLETED (Not the activity) if the user clicks ok then the task is closed otherwise wen he clicks cancel button it should just update the activity status. Now i have made the confirmation box to popup but the problem is i am using javascript for the confirmation box when user clicks ok it closes the task but wen i click cancel i cant make it to just update the activity status.. Im confused wher do i write the code when the user clicks cancel button.. please guide me.. My code is as follows:
When the status is changed to close:
private void ddlStatus_SelectedIndexChanged(object sender, System.EventArgs e)
{
if(ddlStatus.SelectedValue.ToString() == "Closed")
{
btnAdd.Attributes.Add("onClick","javascript:return(confirm('Are you sure you want to close the Activity?'));");
}
}
When user clicks ok the button click event gets fired:
private void btnAdd_Click(object sender, System.EventArgs e)
{
if(ds.Tables.Count > 0)
{
if(ds.Tables[0].Rows.Count > 0)
{
int id = Convert.ToInt32(ds.Tables[0].Rows[0].ItemArray[0]);
UpdateTextField(id,1,txtDesc.Text.Trim().Replace("'","''"));
UpdateTextField(id,2,txtIssues.Text.Trim().Replace("'","''"));
UpdateTextField(id,3,txtBusTechAdv.Text.Trim().Replace("'","''"));
}
}
}
but where do i place my code when the user clicks cancel button bcoz on clicking cancel idont think any event gets fired.. Please advise me..
Thanx in advance,
Tash.
|
|
|
|
|
Hi,
I have a huge page with around 10 custom controls which are shown/hidden depending on what the user chooses in certain drop-down lists. (Please don't ask why the design is like this).
Now each of these controls have ASP.Net validators such as RequiredFieldValidator , CompareValidator , etc.
Now I'm having a problem of tracing which validator failed if the parent control is hidden in the page (Visible = false; ).
Is there an easy way to test this? The only way I can think of is to change the code temporarily and show all the controls all the time just to actually see which one has the problem. But maybe there's a better way.
Thanks in advance.
Rafferty
Rafferty
|
|
|
|
|
You can have better approach on this. You can create several validation group based on the dropdownlist value. And validate only the groups that are visible. So the validators in different group, would not be fired.
Another way, you can enable and disable the validators based on the dropdown selection, as you must be what all validators you need to fire , according to dropdown value.
You can have a look one of my article on ASP.NET validators.
Exploring ASP.NET Validators
|
|
|
|