Click here to Skip to main content
       

ASP.NET

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
GeneralRe: advertising platform...?memberjkirkerx30-Dec-12 13:38 
What do you mean by platform?
 
a long time ago, maybe 7 years I saw a ad system written in PHP, but it was pretty complex, and difficult to setup, and required a dedicated website on your web server to operate it.
QuestionFile Upload Component...?memberJassim Rahma28-Dec-12 9:44 
Hi,
 
I have a website and I want to include a file upload feature there to upload video and images..
 
Which file upload component you recommend to have something similar to the file upload in facebook feature wise and speed wise?

 
Technology News @ www.JassimRahma.com

AnswerRe: File Upload Component...?mvpSandeep Mewara28-Dec-12 21:14 
Jassim Rahma wrote:
file upload in facebook feature wise and speed wise

You need to decide what kind of file upload you need to have - single or multiple upload at once? Further, the type of UI. Kind of file with size will help you decide on it - once done, use the fileupload controls available that can achieve the same. You can use standard ASP.NET file upload control or various jQuery file upload controls.
 
You can also try to make your own (or look at few made and shared here at CP) or third party control for the same.
 
Feature is something that you have to decide based on your need. Speed is only important if you plan to upload large file. If so, get the control accordingly such that the request-response cycle is not too high.
Sandeep Mewara
Microsoft ASP.NET MVP 2012
 

[My Latest Article(s)]:
How to extend a WPF Textbox to Custom Picker
Server side Delimiters in ASP.NET

QuestionCan we make a application to update FB status?memberanubhaw.gupta28-Dec-12 6:18 
I am kinda new to fb related programming but am really keen to learn.
I was wondering that how to make a application to update Status on FACEBOOK. I want it like it says, "updated by postcorn" or "updated by xyx".
I know its possible as i have seen a lot of applications like that. Say somewhat automated updates of status?
 
Please help me out. And yeah i tried google. Maybe my method was wrong o anything but i didn't got the desired result.
AnswerRe: Can we make a application to update FB status?mvpSandeep Mewara28-Dec-12 21:10 
Have a look at these to get started:
Facebook Send Status for ASP.NET [^]
Getting Started with the Facebook C# SDK for ASP.NET[^]
Developing Facebook applications in C# with ASP.NET[^]
How to publish a post on a Facebook user's wall with C#[^]
Posting to Facebook Wall in ASP.NET/C# using Graph API[^]
Sandeep Mewara
Microsoft ASP.NET MVP 2012
 

[My Latest Article(s)]:
How to extend a WPF Textbox to Custom Picker
Server side Delimiters in ASP.NET

QuestionLive Streaming BroadcastingmemberAhmedYehiaK28-Dec-12 3:19 
Hi everyone,
 
I want to build a website that using live stream broadcasting as E-Learning in which the teacher's webcam broadcasted to all students and students could asking the teacher and he/she answer student's questions
Eng.Ahmed Yehia
Software Developer
Shura Solutions

AnswerRe: Live Streaming BroadcastingmvpSandeep Mewara28-Dec-12 21:05 
Following should help you get started:
Streaming over HTTP with JavaScript: AJAX video player[^]
How can I stream webcam video with C#?[^]
Sandeep Mewara
Microsoft ASP.NET MVP 2012
 

[My Latest Article(s)]:
How to extend a WPF Textbox to Custom Picker
Server side Delimiters in ASP.NET

GeneralRe: Live Streaming BroadcastingmemberAhmedYehiaK29-Dec-12 0:03 
Thanks Sandeep, it's helpful Smile | :)
QuestionHow to show the previous selected checked box in previous page in asp.netmemberArun kumar Gautam28-Dec-12 0:18 
I m making an online examination page on this page i created a gridview with paging when i go on next page thn aftr selecting options of answer of any question i m going on to another page. but when i come back on this previous page i cant see the previously selected answers the gridview page is refreshed thn, Please help me in it.
<body>
    <div id="timer" style="float:right;">
    <label id="tim" style="font-size:15px;"></label>
    </div>
    <div>
    </body>
    <asp:ScriptManager ID="scrpt1" runat="server"></asp:ScriptManager>
    <asp:UpdatePanel ID="updt" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    <asp:GridView ID="examgrid" runat="server" AllowPaging="true" 
            AutoGenerateColumns="false" onrowdatabound="examgrid_RowDataBound" 
            PageSize="2" onpageindexchanging="examgrid_PageIndexChanging" 
            PageIndex="10" Width="528px" EnableViewState="false" 
            onrowcommand="examgrid_RowCommand" 
            onpageindexchanged="examgrid_PageIndexChanged" onload="examgrid_Load">
    <Columns>
    <asp:TemplateField HeaderText="Question">
    <ItemTemplate>
    <asp:Label ID="ques" runat="server" Text='<%#Eval("Ques_Name") %>'></asp:Label>
    <asp:HiddenField ID="Question_Id" runat="server" Value='<%#Eval("Ques_Id") %>' /><br /><br />
    <asp:RadioButton ID="opt1" runat="server" GroupName="Radio" Text='<%#Eval("Option1") %>'/>
    <br />
    <asp:RadioButton ID="opt2" runat="server" GroupName="Radio" Text='<%#Eval("Option2") %>'/>
    <br />
    <asp:RadioButton ID="opt3" runat="server" GroupName="Radio" Text='<%#Eval("Option3") %>' />
    <br />
    <asp:RadioButton ID="opt4" runat="server" GroupName="Radio" Text='<%#Eval("Option4") %>'/>
    <br />
    </ItemTemplate>
    </asp:TemplateField>
    </Columns>
    </asp:GridView>
    </ContentTemplate>
    </asp:UpdatePanel>
    <asp:HiddenField ID="hidvalue" runat="server" EnableViewState="true" />
    <asp:Button ID="Submitbtn" runat="server" Text="Submit" style="float:right;" 
            onclick="Submitbtn_Click"/>
    </div>
    
and here is my c# code in gridview paging
 
protected void examgrid_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        DBClass db = new DBClass();
      
        //hidvalue.Value = Convert.ToString(x);
        for (int i = 0; i < examgrid.Rows.Count; i++)
        {
            Label question = (Label)examgrid.Rows[i].Cells[0].FindControl("ques");
            HiddenField quesid = (HiddenField)examgrid.Rows[i].Cells[0].FindControl("Question_Id");
            RadioButton rd1 = (RadioButton)examgrid.Rows[i].Cells[0].FindControl("opt1");
            RadioButton rd2 = (RadioButton)examgrid.Rows[i].Cells[0].FindControl("opt2");
            RadioButton rd3 = (RadioButton)examgrid.Rows[i].Cells[0].FindControl("opt3");
            RadioButton rd4 = (RadioButton)examgrid.Rows[i].Cells[0].FindControl("opt4");
            string user = "Arun";
            if (rd1.Checked == true || rd2.Checked == true || rd3.Checked == true || rd4.Checked == true)
            {
                if (rd1.Checked == true)
                {
                    db.InsAnswer(user, question.Text, rd1.Text);
                    Session["selectedOption_"+quesid+"_Answer"]=rd1.Text;
                }
                else
                    if (rd2.Checked == true)
                    {
                        db.InsAnswer(user, question.Text, rd2.Text);
                        Session["selectedOption_"+quesid+"_Answer"]=rd2.Text;
                    }
                    else if (rd3.Checked == true)
                    {
                        db.InsAnswer(user, question.Text, rd3.Text);
                        Session["selectedOption_"+quesid+"_Answer"]=rd3.Text;
                    }
                    else if (rd4.Checked == true)
                    {
                        db.InsAnswer(user, question.Text, rd4.Text);
                        Session["selectedOption_"+quesid+"_Answer"]=rd4.Text;
                    }
                
            }
            else
            {
                for (int j = 0; j < examgrid.Rows.Count; j++)
                {
                    Label ques = (Label)examgrid.Rows[j].Cells[0].FindControl("ques");
                    int y = db.select_QuestionId(ques.Text);
                    string selected_option = db.Select_Ansqwer(question.Text, user);
 
                    if (Session["selectedOption_"+y+"_Answer"]==selected_option )
                    {
                        if (selected_option == rd1.Text)
                        {
                            rd1.Checked = true;
                        }
                        else if (selected_option == rd2.Text)
                        {
                            rd2.Checked = true;
                        }
                        else if (selected_option == rd3.Text)
                        {
                            rd3.Checked = true;
                        }
                        else if (selected_option == rd4.Text)
                        {
                            rd4.Checked = true;
                        }
 
                    }
                }
            }
        }
    }

AnswerRe: How to show the previous selected checked box in previous page in asp.netmvpSandeep Mewara28-Dec-12 21:17 
Generally the implementation is to rebind the grid on page change that leads to loss of any selection made.
 
If you want to persist selection across various pages, you need to maintain the selection somewhere or use client side pagination avoiding rebind on page change. Following article demonstrates one of the ways to handle it: Maintaining States of Selected CheckBoxes in Different Pages inside the GridView[^]
Sandeep Mewara
Microsoft ASP.NET MVP 2012
 

[My Latest Article(s)]:
How to extend a WPF Textbox to Custom Picker
Server side Delimiters in ASP.NET

GeneralRe: How to show the previous selected checked box in previous page in asp.netmemberArun kumar Gautam29-Dec-12 1:16 
thnks bro
GeneralRe: How to show the previous selected checked box in previous page in asp.netmemberanubhaw.gupta29-Dec-12 7:04 
If i have to give an opinion,i'll say that use javascript to store the value corresponding to the question no and show that everytime. By default keep nothing in the radiobutton.
 
Hope this helps.
QuestionMicrosoft Sync Framework for File (Client) and SQL Server Database (Server) synchronizationmemberAjeet mittal27-Dec-12 17:27 
I'm trying to implement the sync solution using Microsoft Sync Framework. The server will be SQL server database contains the documents in FileStream and client will be the File system (Windows OS).Do anybody have any idea on this. My application scenario is :The database server contains the File/Documents in the form of byte array by the FileStream mechanism from SQL server. And the Sync activity will syncronize the documents from SQL server to any given file system. Please help me out.
 

Regards
QuestionWhat is the web.config for the <smtp> ?memberalihusain_7727-Dec-12 9:38 
I want to send email from my alihusain_77@yahoo.com account to sanabarq2000@gmail.com account. I want to know what I should write in the web.config to handle this using the VB.net coding
AnswerRe: What is the web.config for the <smtp> ?mvpRichard MacCutchan27-Dec-12 22:02 
Lots of suggestions here[^].
One of these days I'm going to think of a really clever signature.

AnswerRe: What is the web.config for the <smtp> ?memberCommDev28-Dec-12 21:38 
Hi,
 
set like this:
 
<system.net >
<mailSettings>
<smtp deliveryMethod="Network" from="someaddress@classifiedspak.com">
<network
host="mail.classifiedspak.com"
userName="someaddress@classifiedspak.com "
password="*************"
port="25" />
</smtp>
</mailSettings>
</system.net>
 
Thanks,
CommDev
Live Support Software for Business Smile | :)
QuestionImage album category wisememberMember 776731127-Dec-12 7:30 
i want to develop a facility for image album on my website
 
1 upload photo category wise
2 view photo category wise
AnswerRe: Image album category wisemvpSandeep Mewara28-Dec-12 21:24 
And the issue is?
 
Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it's not that hard.
2. Formulate what was done by you that looks like an issue/not working.

 
Member 7767311 wrote:
develop a facility for image album on my website

Develop a website that has possibility of uploading images and view uploaded image. There are numerous articles on the same on web.
Sandeep Mewara
Microsoft ASP.NET MVP 2012
 

[My Latest Article(s)]:
How to extend a WPF Textbox to Custom Picker
Server side Delimiters in ASP.NET

QuestionCapsLock detectionmembertpkpradeep27-Dec-12 0:04 
help me int his..,
 

<script type="text/javascript">
function isCapslock(e) {
 
e = (e) ? e : window.event;
 
var charCode = false;
if (e.which) {
charCode = e.which;
} else if (e.keyCode) {
charCode = e.keyCode;
}
 
var shifton = false;
if (e.shiftKey) {
shifton = e.shiftKey;
} else if (e.modifiers) {
shifton = !!(e.modifiers & 4);
}
 
if (charCode >= 97 && charCode <= 122 && shifton) {
return true;
}
 
if (charCode >= 65 && charCode <= 90 && !shifton) {
return true;
}
alert("CpasOn");
//return false;
 
}
 
</script>
 
<asp:TextBox ID="Password" runat="server" TextMode="Password" Width="150px" onkeypress="return isCapslock(this)"
></asp:TextBox>
 

 

if i press caps lock button nor not it gives me the message Capslock is on...,?
AnswerRe: CapsLock detectionmemberAnalogNerd27-Dec-12 3:56 
There's a blog post here ^[^] that claims to detect Caps Lock, but I haven't tried it.
 
Personally I like this solution[^] which just checks if the character entered is in Caps. If it is, and the ShiftKey is pressed, then Caps Lock is probably on
 
    var s = String.fromCharCode(e.which);
     if ( s.toUpperCase() === s && s.toLowerCase() !== s && !e.shiftKey ) {
        alert('caps is on');
    }

AnswerRe: CapsLock detectionmemberCommDev28-Dec-12 21:50 
Hi,
 
there is an article here:
Detect Caps Lock with JavaScript[^]
 
Gook luck!
 
Thanks,
CommDev
Live Support Software for Business Smile | :)
QuestionApplication LayeringmemberOmersayeed26-Dec-12 2:31 
Hello Everybody, I want to develop an asp.net application.
 
I want to layer it in such a way that the data layer, data access layer and Business Logic Layer are designed in such a way that these layers could be used for any application UI such as silver light, windows apps, WPF ,android apps and ipad apps.
 
To achieve this I was planning to develop the BL layer using restful services and WCF.
 
BL layer will be the one interacting with the UI. I have seen lots of debates on this. I feel what I am planning is correct but the application will be huge around 3000 or more web pages and around 1000 table, I want to feel confident I am not going on a wrong track.
 
Any suggestion and advice will be appreciated.
 
Regards
QuestionSyntax error in store procedurememberanubhaw.gupta25-Dec-12 22:06 
here is my piece of code
 
alter procedure mdi_anu
(
@entry_date varchar(20),
@updated_date varchar(20),
@status varchar(20),
@cno varchar(20),
@eno varchar(20))

as

declare @SQL varchar(max)
set @SQL='SELECT * FROM anu123 where 1=1 '

if (@status='ALL')
begin
set @status='ALL'
end

if (@status='A')
begin
set @status='A'
end

if (@status='R')
begin
set @status='R'
end

if (@status='D')
begin
set @status='D'
end

if (@status='P')
begin
set @status='P'
end
 

 



if (@entry_date<>'' and @updated_date<>'')
begin

set @entry_date =CONVERT (datetime, @entry_date, 103)
set @updated_date= CONVERT(datetime, @updated_date, 103)
set @SQL=@SQL+'and entry_date>=''' +@entry_date+'''and updated_date<='''+@updated_date+''''
end

if (@cno<>'')
begin
set @cno=@cno
set @SQL=@SQL+'and cno=''' +@cno
end
 

if (@eno<>'')
begin
set @eno=@eno
set @SQL=@SQL+'and eno=''' +@eno
end
 
exec (@SQL)
End
 

Can anyone tell me,where am wrong? stuck from 2 hr. Saying incorrect syntax near the last end :|
AnswerRe: Syntax error in store procedurememberSravanthid2825-Dec-12 22:21 
U have to write BEGIN Keyword after As Statement
GeneralRe: Syntax error in store procedurememberanubhaw.gupta25-Dec-12 22:40 
Hey i got it. but that's not compulsory i guess. :|

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web01 | 2.6.130619.1 | Last Updated 19 Jun 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid