|
micydon wrote: Wht happen to the dll and also what is this APP_code's purpose.
In VS2005, Dll's won't be created automatically like VS2003. App_Code folder contains the classes that are needed for your site.
micydon wrote: When i debug my application using .NET 2005 the "http://localhost:1088/myproj/login.aspx" I hve created virtual directory but the port no is changing each time i debug the project how can i solve that
earlier i hve to type http://localhost/myproj/login.aspx
Typing http://localhost/myproj/login.aspx is old method. You can do this in VS2005 by creating a new website, don't go for filesystem based application
|
|
|
|
|
Hi All,
I am developing a web base Project named MailProject where I have to read mails form outlook and do some manipulation on return mails. I need to add this project dll to another project of mine.
My problem is that how will I the data of that form (MailProject) in another project??
Please help me...
Thanks in advances...
|
|
|
|
|
ASP.NET 2.0 wrote: I need to add this project dll to another project of mine.
Add reference to the previous project dll in the new project.
ASP.NET 2.0 wrote: My problem is that how will I the data of that form (MailProject) in another project??
What do you mean by this ?
|
|
|
|
|
After adding dll how will I use that form, I mean how will I come to know that form is executing???
|
|
|
|
|
hello everyone,
I have a doubt regarding a WebGrid.
I have WebGrid and i have also a deletebutton in that webgrid.So now i need to delete to a row in that webgrid using Javascript.When deleting only that row need to be deleted but not from the database but just in the webgrid.
plz help me in doing this.This is very urgent for me.
Thank q,
Murali
Murali
|
|
|
|
|
If ur web grid is nothing but GridView then on DataBound Event add this code:
If e.Row.RowType = DataControlRowType.DataRow Or e.Row.RowType = DataControlRowType.Separator Then
Dim cntrl As ImageButton
cntrl = CType(e.Row.FindControl("Delete"), ImageButton)
If Not cntrl Is Nothing Then
cntrl.Attributes.Add("onclick", "if (confirm('Do you want to Delete this record?')== false) return false;")
End If
End If
Hope this helps u???
|
|
|
|
|
Hi,
Try the following javascript code.
function DeleteRow()
{
var dg = document.getElementById("yourwebgridid");
var child = dg.childNodes[0].childNodes[rowindextodelete];
dg.childNodes[0].removeChild(child);
}
Call above function from your html button's click event.
<input type="Button" id="bttn" name="bttn" value="Delete" onclick="DeleteRow();" />
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
i need the source code for creating forum.Can anyone help me for this?..
With Regards
Anu
|
|
|
|
|
|
Hi Anu ,
Its simple like add, modify and delete program.
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
hi
i am developing a wep app in ASP.net(C#) and want to process the credit card on my site through sterlingpayment can any one guide me how to integrate them and what is all process i have to follow if have some example of integration with this specific merchants.
thanks in advance
shezi
|
|
|
|
|
Your credit card service provider will provide all the information. Stick with your provider
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Hi All,
please tell me the difference between POSTand GETmethods
Srilakshmi
|
|
|
|
|
Get it here.[^]
Apurva Kaushal
|
|
|
|
|
if u r using Get method and u r passing some data from one page to another page then data is send through url and anyone can see that data in the address bar.But in case of post method data is divided into small packets and encrpted also and then data is sent .
So Get is not Secure and Post is Secure.
In get u can transfer maximum of 240 characters of data whareas in case of post there is no limitation.
I hope this will help you.
GIRISH
|
|
|
|
|
POST is not secure and not encrypted! It is still sent as plain text in the HTTP request and is easily viewable.
|
|
|
|
|
|
|
hi,
i designed one login page in asp.net with vb.net. i that i want to put one Captcha image verification, i search for it in google,but i cont get the right one, so plz help me
jai prakash
|
|
|
|
|
|
Hi Friends,
I have created a module which will load the directories in the given root directory in a TreeView. When we choose an item it will load the Folders and files in the right side pane (Panel). Everything works fine. For loading the Folders and files in the right pane, I am using LinkButton for each item nested inside a Server-side Table control. I added Click event to that LinkButtion to open the clicked item. But this Click event is not firing, but the page is postbacking. This LinkButtons are generated dynamically, where the ID is assigned dynamically.
Can anyone help me with this problem?
|
|
|
|
|
Can you please send a bit of code, that you have written. Can't guess on the fly exactly where is the problem in your code
Cheers,
|
|
|
|
|
Here is the code,
Protected Sub LoadFileFolders(ByVal FileFolderPath As String, Optional ByVal _FileType As FileType = FileType.Folder)
If _FileType = FileType.File Then
Dim HtmlString As New StringBuilder
HtmlString.Append("<iframe width=""100%"" height=""100%"" frameborder=""0""")
HtmlString.Append(" src=""" & FileFolderPath & """>" & vbCrLf)
HtmlString.Append("</iframe>" & vbCrLf)
Dim LblContent As New Label
LblContent.Text = HtmlString.ToString
PnlFoldersFiles.Controls.Clear()
PnlFoldersFiles.Controls.Add(LblContent)
Else
Dim TblMain As New Table
Dim TrMain As TableRow
Dim TcMain As TableCell
TblMain.CellPadding = 2
TblMain.CellSpacing = 2
TblMain.BorderWidth = 0
Dim _Dir As New IO.DirectoryInfo(FileFolderPath)
Dim _DirectoryInfo() As IO.DirectoryInfo = _Dir.GetDirectories
Dim ICount As Integer = 0
Dim LkbFolder As LinkButton
For Each _D As IO.DirectoryInfo In _DirectoryInfo
LkbFolder = New LinkButton
TrMain = New TableRow
TcMain = New TableCell
TcMain.Text = "<img src=""images/folderClosed.gif"" />"
TrMain.Cells.Add(TcMain)
TcMain = New TableCell
LkbFolder.ID = "Lkb_Folder" & ICount
LkbFolder.Text = _D.Name
TcMain.Controls.Add(LkbFolder)
AddHandler LkbFolder.Click, AddressOf FolderFile_Click
TrMain.Cells.Add(TcMain)
TblMain.Rows.Add(TrMain)
ICount += 1
Next
_Dir = New IO.DirectoryInfo(FileFolderPath)
Dim LkbFile As LinkButton
For Each _File As IO.FileInfo In _Dir.GetFiles
Dim _Ext As String = _File.Extension
Dim FileImage As String = "unknownimg.gif"
Select Case _Ext
Case ".htm", ".html", ".mht"
FileImage = "htmlimg.gif"
Case ".asp"
FileImage = "aspimg.gif"
Case ".aspx"
FileImage = "aspximg.gif"
Case ".resx"
FileImage = "resximg.gif"
Case ".vbproj"
FileImage = "vbprojimg.gif"
Case ".vb"
FileImage = "aspxvbimg.gif"
Case ".asa", ".asax", ".webinfo"
FileImage = "asaimg.gif"
Case ".pdf"
FileImage = "pdfimg.gif"
Case ".config"
FileImage = "configimg.gif"
Case ".vsdisco"
FileImage = "vsdiscoimg.gif"
Case ".sln"
FileImage = "solimg.gif"
Case ".txt"
FileImage = "textimg.gif"
Case ".gif"
FileImage = "gifimg.gif"
Case ".jpg", ".jpeg"
FileImage = "jpgimg.gif"
Case ".dll", ".ocx"
FileImage = "dllimg.gif"
Case ".pdb"
FileImage = "pdbimg.gif"
Case ".mdb"
FileImage = "mdbimg.gif"
Case ".doc"
FileImage = "docimg.gif"
Case ".inc"
FileImage = "incimg.gif"
Case ".xls", ".csv"
FileImage = "excelimg.gif"
Case ".sql"
FileImage = "sqlimg.gif"
Case ".zip"
FileImage = "zipimg.gif"
Case ".exe"
FileImage = "exeimg.gif"
Case ".bmp"
FileImage = "bmpimg.gif"
Case ".js", ".vbs"
FileImage = "scriptimg.gif"
Case ".pps", ".ppt"
FileImage = "pptimg.gif"
End Select
TrMain = New TableRow
TcMain = New TableCell
TcMain.Text = "<img src=""images/" & FileImage & """ />"
TrMain.Cells.Add(TcMain)
LkbFile = New LinkButton
TcMain = New TableCell
LkbFile.Text = _File.Name
LkbFile.ID = "Lkb_File" & ICount
AddHandler LkbFile.Click, AddressOf FolderFile_Click
TcMain.Controls.Add(LkbFile)
TrMain.Cells.Add(TcMain)
TblMain.Rows.Add(TrMain)
ICount += 1
Next
PnlFoldersFiles.Controls.Add(TblMain)
End If
End Sub
Here PnlFoldersFiles is the Right side Pane (Panel)
Additionally I have the Click Event separately. I believe you don't need that event.
|
|
|
|
|
Hi,
You should create an handlere to handle event of linkbutton and assign that handler to the click event of dynamically generated linkbuttons at runtime.
Have a look at following.
The following is the handler to handle command event of your link button.
Command event will fire when u click on the linkbutton.
We consider command event because in this event you can differentiate which linkbutton is clicked and depend on commandname and commandargument you can execute accordingly.
protected void lnk_Command ( object sender, CommandEventArgs e )
{
string strCommand = e.CommandName;
string strArgument = e.CommandArgument;
}
In the following code I m creating a linkbutton dynamically, assigning ID, CommandName, CommandArgument and EventHandler to it.
LinkButton Lnk = new LinkButton();
Lnk.ID = "ID";
Lnk.CommandName = "urcommandName";
Lnk.CommandArgument = "urCommandargument";
Lnk.Command +=new CommandEventHandler(lnk_Command);
This way you can create as many linkbuttons and assign unique commandargument and commandname to each of them.
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Did you said,
Chetan Ranpariya wrote: Lnk.Command +=new CommandEventHandler(lnk_Command);
I am afraid, LinkButton does not have a Property/Method as Command. Its an Event, where we can't assign by direct method.
I have already added the Click Event for that LinkButton using AddHandler method. If you want to know more about the code see that code I posted for the previous reply.
|
|
|
|