No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
34 Posted Topics
In C# use '==' instead of '=' ....simple
Are u binding the Datalist in page load ? If yes then put your binding code in Not IsPostback condition. Or it can be EnableViewState problem.
I guess you r just showing the data in grid.Is it not showing when refreshed.Can u elaborate the problem.
Line No 4 is causing error i guess. Dim gender As Integer = Convert.ToInt32(e.Row.Cells(5).Text) Thats because e.Row.Cells(5).Text will have null value as it is not binded. You can do it in two ways : 1.Insert direct inline code in aspx upon the condition like this : <ItemTemplate> <%# (Convert.ToInt32(Eval("gender"))=="1"?"Male": "Female") …
Hi all, I have a issue in writing excel worksheet through OLEDB/Excel 8.0 provider where an apostrophe is coming in every cell before the value. When the excel worksheet is created through provider,cells are not getting as Text format and remaining as General even though I have denoted it as …
Can anybody tell me why the Application_Start in global.asax in not firing under any conditions.Can any1 still tell me the conditions to fire it
Hi all, I have problem connecting to remote MS Access DB using asp.net. The MS Access DB i have URL , local path and write access. I have used the following connectionstring : [CODE] //con.ConnectionString = "Provider=MS Remote; Remote Server=http://X.X.X.X; Remote Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\\yy\\XXX.mdb;Persist Security Info=False"; [/CODE] Error is : …
Actually dr.read() function moves the pointer of the datareader to the next record and also returns true if it exists.Initially, the reader does not point to anything. It is only after you call dr.read() that is points to the first record and then you can read the data. Without calling …
I guess u have tested the deletion case in debug mode.For that the file remained open for deletion first time and did't close, so the file access error. Do run the code with a fresh file after freshly starting the application. Frankly speaking, i too had similar file denied problems …
Hi buddies, Can anybody help in RBS WorldPay Payment Gateway Integration in Asp.NET. Any Code/DLL/component can be great help. I really can't make up their Documentation. Thanks in advance.
You have to download a free plugin for that. Follow this link : [URL="http://www.fckeditor.net/forums/viewtopic.php?f=5&t=10262"]http://www.fckeditor.net/forums/viewtopic.php?f=5&t=10262[/URL]
Follow this example : [ICODE] <asp:GridView ID="gvStates" AutoGenerateColumns="false" runat="server" OnRowCreated="gvStates_RowCreated"> <Columns> <asp:BoundField HeaderText="State" DataField="Name" /> <asp:TemplateField HeaderText="Cities"> <ItemTemplate> <asp:DropDownList ID="ddlCities" AutoPostBack="true" runat="server" > </asp:DropDownList> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { // Create states array and bind it to Grid ArrayList states = …
There are lots of players in the web. You can try this [URL="http://www.flvplayer4free.com/"]http://www.flvplayer4free.com/[/URL] Please clarify the problem in playing flv files
Do it in Javascript. Function is given below : [ICODE] function checkEmail (emailStr) { var emailPat=/^(.+)@(.+)$/ var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]" var validChars="\[^\\s" + specialChars + "\]" var quotedUser="(\"[^\"]*\")" var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/ var atom=validChars + '+' var word="(" + atom + "|" + quotedUser + ")" var userPat=new RegExp("^" + word + "(\\." + …
Does anybody know to import Gmail contacts. I have downloaded a useful tutorial at : [EMAIL="http://johnvey.com/features/gmailapi/"]http://johnvey.com/features/gmailapi/[/EMAIL] which is the only one available in search engines. But it is not working !!
Hi everyone, hope ur all. After a long time i m posting here. M in a problem abt. dataview.rowfilter. Matter is i have to create datareader from dataset, thats ok. The dataset is being filled up,no probs. After that i m applying rowfilter which is not working : [ICODE] da.Fill(s); …
dear all, can u help me in image uploading withing updatepanel in ajax. i think its not supported. can anyone give any alternate option. thanx
hi everybody, i need to ask here abt a how can i add both numeric paging and prev/next in gridview.
Hi all, i m using gridview which has checkboxes(select row) and need to hold the values during pagination. I think it is not automatically supported in ASP.NET n so has to be done manually.Can anyone supply me the code or the logic. thnx all.
Please let me know how i can insert datagrid values to datatable.
Looks that problem is in the sp. Please show the stored procedure
Firstly upload the video file to a folder in the server by : [CODE=asp]if (flUpload.PostedFile.ContentLength > 0) { String strPath = Server.MapPath("../") + "UploadedFiles/Folder"; flUpload.PostedFile.SaveAs(strPath + "/" + this.flUploadBrief.FileName.ToString()); }[/CODE] where [ICODE]<asp:FileUpload runat="server" ID="flUploadBrief" />[/ICODE] is the FileUpload Control. And save the name of the File in database. Then u …
For storing Image try this : [ICODE] //UPLOAD FILE if (this.flBSmallImage.PostedFile.ContentLength > 0) { if (strOldBSmallImage.Length > 0) { System.IO.File.Delete(Server.MapPath("../") + "UploadedFiles\\ManagementImage\\" + strOldBSmallImage.ToString()); } String strPath = Server.MapPath("../") + "UploadedFiles/ManagementImage"; flBSmallImage.PostedFile.SaveAs(strPath + "/" + strBSmallImage); } [/ICODE] For viewing the Image, bind the Datgrid in backend and in aspx …
Cant comment without viewing the Connect() function. Check whether the function is returning where u have given the Return 1 statement without calling the finally block. You can check whether any Datareaders remains unclosed.
Dear Buddy, building a Media Player is quite a difficult task. You can play the MediaFile in Windows/Real Media Players thats ok. You can take this : [url]http://steveorr.net/articles/StreamingMedia.aspx[/url]
I think datatype conversion problem. Try this : [ICODE]cost1 = Decimal.Parse(Convert.ToString(ddlProducts.SelectedItem.Value))[/ICODE] or [ICODE]cost1 = Decimal.Parse(ddlProducts.SelectedItem.Text)[/ICODE]
Hi all, i m having the following problem. I have a Datagrid within Datalist. I m populating the Datagrid in Datalist ItemDataBound, no problems with that. But in the Datagrid RowdataBound i cant access the Datagrid directly, as because the Datagrid is within Datalist. Morover i cant do findcontrol because …
Try this link : [url]http://www.daniweb.com/forums/thread124187.html[/url]
It needs to use third party websites which allow to send sms by paying. Otherwise by coding u have to link a GSM modem to your server. And sending sms by webservices are restricted to particular networks of the country not to all mobile networks u can send. Try this …
Try this link : [url]http://www.w3schools.com/dotnetmobile/default.asp[/url]
Try this code : Its in C# / Convert it into VB [ICODE] using System.Net.Mail; try { String strFromAddress ="[email protected]"; String strToAddress ="[email protected]"; String strSubject = " FeedBack "; String strMessageBody = ""; String strMailHostIP = "localhost"; strSubject = "Test "; strMessageBody = strMessageBody + " Dear Sir,\n"; strMessageBody = …
I think the problem might be in converting Converting to String [ICODE]Dim Conn As String = Convert.ToString(ConfigurationManager.AppSettings["xyz"]) Dim objConnection As New SqlConnection(Conn) objConnectiopn.Open()[/ICODE] It should work. If it doesn't then check your connection string properties.
I think there is no ready made solution. Try this link [url]http://www.aspnettutorials.com/tutorials/advanced/cut-string-csharp.aspx[/url]
The End.
sebastian3