16,012,843 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Dain Ucak (Top 37 by date)
Dain Ucak
10-Nov-12 4:49am
View
thank you
Dain Ucak
27-Oct-12 7:34am
View
dou you call your Gridview fill method from page load without checking !IsPostBack?
Dain Ucak
18-Oct-12 15:26pm
View
i mean when you want to import anything from html page to anywhere, you need to call your query with all value(which you want to export).
Dain Ucak
8-Oct-12 10:04am
View
you are true. my answer is wrong. sorry. ? for unnamed parameters and for oledb paramters. your answer is correct.
Dain Ucak
5-Oct-12 8:54am
View
and this is about update
http://csharp.net-informations.com/excel/csharp-excel-oledb-update.htm
Dain Ucak
4-Oct-12 4:11am
View
your are taking an exception about file security.
Exception Details: System.UnauthorizedAccessException: Access to the path 'C:\Inetpub\vhosts\gts24x7.in\httpdocs\uploads\fiyat_etiketi.png' is denied.
and read your exceptions detail clearly.
Dain Ucak
3-Oct-12 13:36pm
View
did you check your uploads file write permission?
Dain Ucak
19-Sep-12 4:40am
View
i tried this with master page. i put my cloc_a div to master page and content page for understanding clearly.
http://aciliyetten.com/clock.jpg check this picture.
Dain Ucak
15-Sep-12 7:13am
View
did you update your files write permission
Dain Ucak
15-Sep-12 7:01am
View
why you do this in global.asax?. cant you do this in your page load or master page load. if you havent any special reason for do this in global.asax do this in your page load before loading page.
Dain Ucak
15-Sep-12 6:22am
View
do you use any Validation Controls in page?
Dain Ucak
4-Sep-12 10:53am
View
you welcome
Dain Ucak
30-Jun-12 7:25am
View
if you have a flash file my telling will help you. i couldnt tell you how you will create a flash intro. sorry
Dain Ucak
3-Jun-12 6:30am
View
can you share your html side codes
Dain Ucak
27-May-12 5:28am
View
you can do this. set in javascript innerWidth and innerHeight property to any serverside control, Call this control in codebehind.
i will improve my solution. check it
Dain Ucak
26-May-12 13:35pm
View
do you mean you want to calculate browsers width and height in codebehind of an asp.net page?
Dain Ucak
22-May-12 7:10am
View
did you checked your BudgetMaster.aspx.vb line 12.
Dain Ucak
19-May-12 10:58am
View
yw
Dain Ucak
19-May-12 10:11am
View
Deleted
List<cascadingdropdownnamevalue> countrydetails = new List<cascadingdropdownnamevalue>();
i saw many example like this and i didnt understand here. when you compile your project dont you take any error about here.
i know c# case sensitive and List<cascadingdropdownnamevalue> countrydetails = new List<cascadingdropdownnamevalue>(); this wont work as i know.
List<cascadingdropdownnamevalue> countrydetails = new List<cascadingdropdownnamevalue>(); this is true way what i know about c#
Dain Ucak
18-May-12 12:57pm
View
you revized your codes. i discern after answering sorry. put your contentplaceholder in a div. and call this div in this scope in javascript
you have a body id of div. use it
var printContent = document.getElementById("body");
runat server controls generating different ids for html pages. but contentplaceholder id doesnt generate and id.
Dain Ucak
17-May-12 9:51am
View
cant you call txtusername directly in button1_click. why do you need do this
ContentPlaceHolder con = (ContentPlaceHolder)Master.FindControl("ContentPlaceHolder1");
TextBox tx = (TextBox)con.FindControl("txtusername");
Dain Ucak
17-May-12 9:40am
View
ok now. you mean you want to change any controls property of master page in content page button click? isnt it
Dain Ucak
17-May-12 9:19am
View
now i do this step by step. and it work fine.
i have a textbox in content page and its id txtContent.
i have a textbox in master page and its id txtMaster.
this is master pages html sides
<form id="form1" runat="server">
<asp:TextBox ID="txtMaster" runat="server">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
and this is my content page html side codes
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:TextBox ID="txtContent" runat="server">
and this is master page load event codes
TextBox txtContent = (TextBox)ContentPlaceHolder1.FindControl("txtContent");
txtContent.Text = txtMaster.Text;
forget unload event. tell me from this scenario.
Dain Ucak
17-May-12 8:56am
View
contents pages loading event occuring before master pages loading event.
you can set controls property in master page load event and you can called in content pages unload event this property value. try this
you can call master pages control in content pages unload event
protected void Page_Unload(object sender, EventArgs e)
{
TextBox txtMaster = (TextBox)this.Master.FindControl("txtMaster");
}
Dain Ucak
17-May-12 8:09am
View
if you are in master page codebehind and txtUser is a content page control make this
TextBox txtuser = (TextBox)con.FindControl("txtUser"); correct here
else return me
Dain Ucak
17-May-12 8:05am
View
yes you can use master page. if you have a problem and took any advice about those problems, you need to develop some difference scenario.
for example. you are using master page and you have a server side form tag in this master page. you can close your form tag in your content page and reopen form tag which isnt server side.
look my example. i tried to tell you clearly.
firs this is my master page code between body tag
<body>
<div id="Container" style="width:100%; position:relative;" align="center">
<div style="width:1000px; height:300px;">
<form id="form1" runat="server">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
<!--this form closing tag is contents form which wasnt server side -->
</form>
<%
if(Request.RawUrl.Contains("testA.aspx")){
%>
<!--This div is closing position absolute div which in content page for design your link in the page-->
</div>
<%} %>
</div>
</div>
</body>
now this is my testA.aspx which post to testB.aspx html codes
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</form>
<script type="text/javascript">
function callme(frmname) {
var myForm = document.forms[frmname];
myForm.submit();
}
</script>
<div style="position:absolute; top:50px; left:450px;">
<form id="frm1" method="post" style='margin-top: 0px; margin-bottom: -10px' action="TestB.aspx">
<div id="button2" style="float: left; cursor:pointer !important; cursor:hand !important;" önclick="callme('frm1')">aaa
</div>
and look at testB.aspx
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
i hope this will help you
Dain Ucak
17-May-12 6:40am
View
when you create a master page it create two contentplaceholders. one of them for head tags and other one for bodys. if you want to get any controls of content page like dang.aspx in your master page. TextBox txt = (TextBox)Content1.FindControl("txt"). this is enough for get any controls from content pages. if you didnt solve pls post your master page and content pages code. i will analyze it for you
Dain Ucak
17-May-12 5:15am
View
do you try this in your master page and whats your ContentPlaceHolder Id?
Dain Ucak
16-May-12 13:09pm
View
if you dont use master page make this.
<form id="form1" runat="server">
put your server side tags here
</form>
<form id="frm1" method="post" style="margin-top: 0px; margin-bottom: -10px">
action="Default.aspx">....
Dain Ucak
14-May-12 2:57am
View
hi KNK. you checked this in your css code block. <style type="text/css" media="print">
use for print special css block. if you didnt set your printThis and noPrint css class in this css code block it will effect all the style of html. but you need want to effect this only when user want to print. if you didnt understand me clearly pls send me your master page and content page html codes. i will help you more.
Dain Ucak
11-May-12 5:47am
View
make that
PostBackUrl='<%# Eval("ViewUrl")%>'
bind your column of url to your buttons postbackurl. if you can share your codes i can help you more.
Dain Ucak
11-May-12 5:14am
View
whats your column name in database which stored url code
Dain Ucak
11-May-12 2:44am
View
yw. i hope you solved your problem.
Dain Ucak
10-May-12 4:50am
View
first check master page example
<table style="position:relative; width:100%;">
<tr>
<td align="left" class='noPrint'>
<tag:menu ID="menu1" runat="server" />
</td>
</tr>
<tr>
<td>
<div style="position:relative; width:100%;">
<asp:ContentPlaceHolder ID="cph1" runat="server">
</div>
<div style="position:fixed; right:5px; bottom:0;" class='noPrint'>
<tag:uyari ID="uyari1" runat="server" />
</div>
</td>
</tr>
</table>
i dont want to print them my footer and menu area. i put there noPrint classes.
you must to think your page and your masterpage are together.
Dain Ucak
10-May-12 3:43am
View
ok look that
<table class='printThis'><tr><td>This will print</td></tr>
<tr><td class='noPrint'><img src='' />this wont print</td></tr>
</table>
i hope this will help. if not enough please share your pages html code.
Dain Ucak
9-May-12 8:29am
View
please read solution 4 clearly. i tested it and worked correctly.
Dain Ucak
5-May-12 8:14am
View
i mean check your columns capacity and check your values which you want to send to sql
Show More